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

Commit 083a5602 authored by jiangxiulong's avatar jiangxiulong

完善演出参数注释

parent a7a65f66
......@@ -23,7 +23,8 @@ public class PerformanceVo {
private String title;
@ApiModelProperty(value = "演出图片")
private String imgPoster;
@ApiModelProperty(value = "演出类型 1音乐节 2演唱会 3小型演出 4展览 6舞台剧 101音乐节 102小型演出(livehouse演出) 103巡演")
@ApiModelProperty(value = "101音乐节 102小型演出(livehouse演出) 103巡演")
// @ApiModelProperty(value = "演出类型 1音乐节 2演唱会 3小型演出 4展览 6舞台剧 101音乐节 102小型演出(livehouse演出) 103巡演")
private int type;
@ApiModelProperty(value = "演出开始时间")
private String timeStart;
......
......@@ -96,6 +96,7 @@ public class KylinPerformancesController {
@GetMapping(value = "list")
@ApiOperation("根据多个演出id获取演出列表-Adam")
@ApiImplicitParam(type = "query", dataType = "String", name = "performancesIds", value = "多演出id", required = true)
public ResponseDto<List<PerformanceVo>> performanceList(@RequestParam String... performancesIds) {
List<PerformanceVo> result = kylinPerformancesService.performanceList(performancesIds);
return ResponseDto.success(result);
......@@ -103,10 +104,15 @@ public class KylinPerformancesController {
@GetMapping("{performancesId}")
@ApiOperation("演出详情")
@ApiImplicitParams({
@ApiImplicitParam(type = "path", dataType = "String", name = "performancesId", value = "演出id", required = true),
@ApiImplicitParam(type = "query", dataType = "double", name = "latitudeFrom", value = "经纬度"),
@ApiImplicitParam(type = "query", dataType = "double", name = "longitudeFrom", value = "经纬度")
})
public ResponseDto<HashMap<String, Object>> detail(
@PathVariable("performancesId") String performancesId,
@RequestParam(value = "latitudeFrom", defaultValue = "0") double latitudeFrom,
@RequestParam(value = "longitudeFrom", defaultValue = "0") double longitudeFrom
@RequestParam(defaultValue = "0") double latitudeFrom,
@RequestParam(defaultValue = "0") double longitudeFrom
) {
HashMap<String, Object> result = kylinPerformancesService.detail(performancesId, latitudeFrom, longitudeFrom);
if (result != null) {
......@@ -118,9 +124,13 @@ public class KylinPerformancesController {
@GetMapping("partner/{performancesId}")
@ApiOperation("场次票种")
@ApiImplicitParams({
@ApiImplicitParam(type = "path", dataType = "String", name = "performancesId", value = "演出id", required = true),
@ApiImplicitParam(type = "query", dataType = "Integer", name = "isAgent", value = "是否分销 1是 0不是 空/不传/0")
})
public ResponseDto<List<TicketTimesVo>> ticketTimesPartner(
@PathVariable("performancesId") String performancesId,
@RequestParam(value = "isAgent", defaultValue = "0") Integer isAgent
@RequestParam(defaultValue = "0") Integer isAgent
) {
List<TicketTimesVo> result = kylinPerformancesService.ticketTimesPartner(performancesId, isAgent);
if (result.size() > 0) {
......
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