|
|
@@ -0,0 +1,133 @@
|
|
|
+package com.wx.blink.backend.controller;
|
|
|
+
|
|
|
+import com.wx.blink.backend.domain.dto.*;
|
|
|
+import com.wx.blink.backend.service.*;
|
|
|
+import com.wx.blink.base.common.domain.PageResult;
|
|
|
+import com.wx.blink.base.common.domain.ResponseDTO;
|
|
|
+import com.wx.blink.common.qry.*;
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
+import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import javax.validation.Valid;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@Tag(name = "移动端配置")
|
|
|
+public class BlinkPerformanceController {
|
|
|
+ @Resource
|
|
|
+ private IBlinkPerformanceService service;
|
|
|
+ @Resource
|
|
|
+ private IBlinkPerformanceProjectsService projectsService;
|
|
|
+ @Resource
|
|
|
+ private IBlinkCompanyIntroductionService companyService;
|
|
|
+ @Resource
|
|
|
+ private IBlinkPerformanceCreditService creditService;
|
|
|
+ @Resource
|
|
|
+ private IBlinkHonorConfigService honorService;
|
|
|
+ @Resource
|
|
|
+ private IBlinkSocialWelfareService socialWelfareService;
|
|
|
+
|
|
|
+ @PostMapping("/supports/performance/save")
|
|
|
+ @Operation(summary = "保存业绩案例")
|
|
|
+ public ResponseDTO<String> createPerformance(@RequestBody @Valid BlinkPerformanceDTO dto) {
|
|
|
+ return service.createPerformance(dto);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/supports/performance/{id}/delete")
|
|
|
+ @Operation(summary = "删除业绩案例")
|
|
|
+ public ResponseDTO deletePerformance(@PathVariable String id) {
|
|
|
+ return service.deletePerformance(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "保存业绩项目")
|
|
|
+ @PostMapping("/supports/performance/project/create")
|
|
|
+ public ResponseDTO<String> createPerformanceProject(@RequestBody @Valid BlinkPerformanceProjectsDTO dto) {
|
|
|
+ return projectsService.createPerformanceProject(dto);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "删除业绩项目")
|
|
|
+ @PostMapping("/supports/performance/project/{id}/delete")
|
|
|
+ public ResponseDTO deletePerformanceProject(@PathVariable String id) {
|
|
|
+ return projectsService.deletePerformanceProject(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "保存企业简介")
|
|
|
+ @PostMapping("/supports/company/introduction/save")
|
|
|
+ public ResponseDTO<String> saveCompanyIntroduction(@RequestBody @Valid BlinkCompanyIntroductionDTO dto) {
|
|
|
+ return companyService.saveCompanyIntroduction(dto);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "业绩案例查询")
|
|
|
+ @PostMapping("/supports/performance/query")
|
|
|
+ public ResponseDTO<PageResult<BlinkPerformanceDTO>> queryPerformance(@RequestBody @Valid BlinkPerformanceQry qry) {
|
|
|
+ return ResponseDTO.ok(service.queryPerformance(qry));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "业绩项目列表查询")
|
|
|
+ @PostMapping("/supports/performance/project/query")
|
|
|
+ public ResponseDTO<PageResult<BlinkPerformanceProjectsDTO>> queryPerformanceProject(@RequestBody @Valid BlinkPerformanceProjectsQry qry) {
|
|
|
+ return ResponseDTO.ok(service.queryPerformanceProject(qry));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "添加资质")
|
|
|
+ @PostMapping("/supports/credit/add")
|
|
|
+ public ResponseDTO<String> addPerformanceCredit(@RequestBody @Valid BlinkPerformanceCreditDTO dto) {
|
|
|
+ return creditService.addPerformanceCredit(dto);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "删除资质")
|
|
|
+ @PostMapping("/supports/credit/{id}/delete")
|
|
|
+ public ResponseDTO deletePerformanceCredit(@PathVariable String id) {
|
|
|
+ creditService.deletePerformanceCredit(id);
|
|
|
+ return ResponseDTO.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "查询资质列表")
|
|
|
+ @PostMapping("/supports/credit/query")
|
|
|
+ public ResponseDTO<PageResult<BlinkPerformanceCreditDTO>> queryPerformanceCredit(@RequestBody @Valid BlinkPerformanceCreditQry qry) {
|
|
|
+ return ResponseDTO.ok(creditService.queryPerformanceCredit(qry));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "保存荣誉")
|
|
|
+ @PostMapping("/supports/honor/save")
|
|
|
+ public ResponseDTO<String> savePerformanceHonor(@RequestBody @Valid BlinkHonorConfigDTO dto) {
|
|
|
+ return honorService.savePerformanceHonor(dto);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "删除荣誉")
|
|
|
+ @PostMapping("/supports/honor/{id}/delete")
|
|
|
+ public ResponseDTO deletePerformanceHonor(@PathVariable String id) {
|
|
|
+ honorService.deletePerformanceHonor(id);
|
|
|
+ return ResponseDTO.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "查询荣誉列表")
|
|
|
+ @PostMapping("/supports/honor/query")
|
|
|
+ public ResponseDTO<PageResult<BlinkHonorConfigDTO>> queryPerformanceHonor(@RequestBody @Valid BlinkHonorConfigQry qry) {
|
|
|
+ return ResponseDTO.ok(honorService.queryPerformanceHonor(qry));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "保存社会公益")
|
|
|
+ @PostMapping("/supports/socialWelfare/save")
|
|
|
+ public ResponseDTO<String> savePerformanceSocialWelfare(@RequestBody @Valid BlinkSocialWelfareDTO dto) {
|
|
|
+ return socialWelfareService.savePerformanceSocialWelfare(dto);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "删除社会公益")
|
|
|
+ @PostMapping("/supports/socialWelfare/{id}/delete")
|
|
|
+ public ResponseDTO deletePerformanceSocialWelfare(@PathVariable String id) {
|
|
|
+ socialWelfareService.deletePerformanceSocialWelfare(id);
|
|
|
+ return ResponseDTO.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "查询社会公益列表")
|
|
|
+ @PostMapping("/supports/socialWelfare/query")
|
|
|
+ public ResponseDTO<PageResult<BlinkSocialWelfareDTO>> queryPerformanceSocialWelfare(@RequestBody @Valid BlinkSocialWelfareQry qry) {
|
|
|
+ return ResponseDTO.ok(socialWelfareService.queryPerformanceSocialWelfare(qry));
|
|
|
+ }
|
|
|
+
|
|
|
+}
|