记得上下班打卡 | git大法好,push需谨慎

Commit daa1fcc1 authored by 胡佳晨's avatar 胡佳晨

接口提交

parent 39c933b5
...@@ -17,6 +17,9 @@ import io.swagger.annotations.ApiResponse; ...@@ -17,6 +17,9 @@ import io.swagger.annotations.ApiResponse;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.HashMap;
import java.util.Map;
/** /**
* <p> * <p>
* 巡演 前端控制器 * 巡演 前端控制器
...@@ -51,10 +54,12 @@ public class KylinRoadShowsAdminController { ...@@ -51,10 +54,12 @@ public class KylinRoadShowsAdminController {
@PostMapping(value = "") @PostMapping(value = "")
@ApiOperation(value = "创建") @ApiOperation(value = "创建")
@ApiResponse(code = 200, message = "接口返回对象参数") @ApiResponse(code = 200, message = "接口返回对象参数")
public ResponseDto<String> createRoadShow(@RequestBody CreateRoadShowParam createRoadShowParam) { public ResponseDto<Map<String,String>> createRoadShow(@RequestBody CreateRoadShowParam createRoadShowParam) {
String result = roadShowsService.createRoadShow(createRoadShowParam); String result = roadShowsService.createRoadShow(createRoadShowParam);
if (!result.isEmpty()) { if (!result.isEmpty()) {
return ResponseDto.success(result); Map<String,String> map = new HashMap<>();
map.put("roadShowId",result);
return ResponseDto.success(map);
} else { } else {
return ResponseDto.failure("创建失败"); return ResponseDto.failure("创建失败");
} }
......
...@@ -12,6 +12,9 @@ import io.swagger.annotations.ApiResponse; ...@@ -12,6 +12,9 @@ import io.swagger.annotations.ApiResponse;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.HashMap;
import java.util.Map;
@Api(tags = "第三方-演出") @Api(tags = "第三方-演出")
@RestController @RestController
@RequestMapping("partner/performance") @RequestMapping("partner/performance")
...@@ -34,14 +37,16 @@ public class PerformancePartnerController { ...@@ -34,14 +37,16 @@ public class PerformancePartnerController {
} }
@PostMapping(value = "copy") @PostMapping(value = "copy")
@ApiOperation(value = "演出列表") @ApiOperation(value = "复制演出")
@ApiResponse(code = 200, message = "接口返回对象参数") @ApiResponse(code = 200, message = "接口返回对象参数")
public ResponseDto<String> copyPerformance(@RequestParam("performancesId") String performancesId) { public ResponseDto<Map<String,String>> copyPerformance(@RequestParam("performancesId") String performancesId) {
String result = performancesPartnerService.copyPerformance(performancesId); String result = performancesPartnerService.copyPerformance(performancesId);
if (null == result) { if (null == result) {
return ResponseDto.failure("复制失败"); return ResponseDto.failure("复制失败");
} else { } else {
return ResponseDto.success(result); Map<String,String> map = new HashMap<>();
map.put("performancesId",result);
return ResponseDto.success(map);
} }
} }
...@@ -61,12 +66,14 @@ public class PerformancePartnerController { ...@@ -61,12 +66,14 @@ public class PerformancePartnerController {
@PostMapping(value = "step1") @PostMapping(value = "step1")
@ApiOperation(value = "操作演出第一步") @ApiOperation(value = "操作演出第一步")
@ApiResponse(code = 200, message = "接口返回对象参数") @ApiResponse(code = 200, message = "接口返回对象参数")
public ResponseDto<String> Step1(@RequestBody PerformanceStep1Param performanceStep1Param) { public ResponseDto<Map<String,String>> Step1(@RequestBody PerformanceStep1Param performanceStep1Param) {
String result = performancesPartnerService.step1(performanceStep1Param); String result = performancesPartnerService.step1(performanceStep1Param);
if (result.isEmpty()) { if (result.isEmpty()) {
return ResponseDto.failure("操作失败"); return ResponseDto.failure("操作失败");
} else { } else {
return ResponseDto.success(result); Map<String,String> map = new HashMap<>();
map.put("performancesId",result);
return ResponseDto.success(map);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment