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

Commit d84bfad5 authored by 张国柄's avatar 张国柄

验票API:参数接收类型调整;

parent f808c7a2
...@@ -243,12 +243,11 @@ public class KylinStationController { ...@@ -243,12 +243,11 @@ public class KylinStationController {
@ApiOperation(value = "下载验票数据") @ApiOperation(value = "下载验票数据")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "path", required = true, dataType = "String", name = "type", value = "类型[101-音乐节,102小型演出(livehouse演出),103巡演]", allowableValues = "101,102,103"), @ApiImplicitParam(type = "form", required = true, dataType = "String", name = "performanceId", value = "演出ID[64]"),
@ApiImplicitParam(type = "path", required = true, dataType = "String", name = "performanceId", value = "演出ID[64]"),
}) })
@GetMapping("download/{type}/{performanceId}") @GetMapping("download")
public ResponseDto<List<KylinStationCheckOrderVo>> downloadTicketData(@PathVariable String type, @PathVariable String performanceId) { public ResponseDto<List<KylinStationCheckOrderVo>> downloadTicketData(@RequestParam String performanceId) {
log.info("type:{},performanceId:{}", type, performanceId); log.info("performanceId:{}", performanceId);
String currentUid = CurrentUtil.getCurrentUid(); String currentUid = CurrentUtil.getCurrentUid();
// 查取当前用户下关联演出ID列表 // 查取当前用户下关联演出ID列表
...@@ -302,14 +301,12 @@ public class KylinStationController { ...@@ -302,14 +301,12 @@ public class KylinStationController {
@ApiOperation(value = "刷新验票数据") @ApiOperation(value = "刷新验票数据")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "body", required = true, dataType = "String", name = "type", value = "类型[101-音乐节,102小型演出(livehouse演出),103巡演]", allowableValues = "101,102,103"), @ApiImplicitParam(type = "form", required = true, dataType = "String", name = "performanceId", value = "演出ID[64]"),
@ApiImplicitParam(type = "body", required = true, dataType = "String", name = "performanceId", value = "演出ID[64]"), @ApiImplicitParam(type = "form", required = true, dataType = "String", name = "latestUpdateAt", value = "最近更新时间[yyyy-MM-dd HH:mm:ss]"),
@ApiImplicitParam(type = "body", required = true, dataType = "String", name = "latestUpdateAt", value = "最近更新时间[yyyy-MM-dd HH:mm:ss]"),
}) })
@PostMapping("refresh") @PostMapping("refresh")
public ResponseDto<List<KylinStationCheckOrderVo>> refreshTicketData(@PathVariable String type, public ResponseDto<List<KylinStationCheckOrderVo>> refreshTicketData(@RequestParam String performanceId, @RequestParam String latestUpdateAt) {
@PathVariable String performanceId, @PathVariable String latestUpdateAt) { log.info("refresh performanceId:{},latestUpdateAt:{}", performanceId, latestUpdateAt);
log.info("refresh type:{},performanceId:{},latestUpdateAt:{}", type, performanceId, latestUpdateAt);
String currentUid = CurrentUtil.getCurrentUid(); String currentUid = CurrentUtil.getCurrentUid();
// 查取当前用户下关联演出ID列表 // 查取当前用户下关联演出ID列表
......
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