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

Commit b20da288 authored by anjiabin's avatar anjiabin

提交chime社交相关

parent 83d1b1ed
......@@ -19,7 +19,7 @@ public class PerformanceDto {
@ApiModelProperty(value = "演出名称")
private String title;
@ApiModelProperty(value = "演出海报")
private String img_poster;
private String imgPoster;
@ApiModelProperty(value = "演出开始时间")
private String timeStart;
@ApiModelProperty(value = "演出结束时间")
......@@ -28,4 +28,14 @@ public class PerformanceDto {
private String cityName;
@ApiModelProperty(value = "在场人数")
private Integer joinUserCount;
private static final PerformanceDto obj = new PerformanceDto();
public static PerformanceDto getNew() {
try {
return (PerformanceDto) obj.clone();
} catch (CloneNotSupportedException e) {
return new PerformanceDto();
}
}
}
package com.liquidnet.service.chime.controller;
import com.liquidnet.commons.lang.util.IDGenerator;
import com.liquidnet.service.base.PagedResult;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.chime.dto.ChimeUserInfoDto;
......@@ -17,6 +18,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
......@@ -38,37 +42,48 @@ public class ChimePerformanceController {
@ApiOperation("已购票的演出")
@ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "userId", value = "用户id", required = true),
@ApiImplicitParam(type = "query", dataType = "int", name = "page", value = "页码",required = true),
@ApiImplicitParam(type = "query", dataType = "int", name = "page", value = "页码"),
@ApiImplicitParam(type = "query", dataType = "int", name = "size", value = "每页数量"),
@ApiImplicitParam(type = "query", dataType = "String", name = "orderBy", value = "排序字段 时间timeStart"),
@ApiImplicitParam(type = "query", dataType = "String", name = "sort", value = "排序方式[DESC ASC]"),
})
public ResponseDto<PerformanceDto> myPerformanceList(
public ResponseDto<List<PerformanceDto>> myPerformanceList(
@RequestParam(defaultValue = "") String userId,
@RequestParam(defaultValue = "1") int page,
@RequestParam(defaultValue = "10") int size,
@RequestParam(defaultValue = "") String orderBy,
@RequestParam(defaultValue = "") String sort
) {
List<PerformanceDto> performanceDtoList = new ArrayList<>();
for(int i=0;i<10;i++){
PerformanceDto dto = PerformanceDto.getNew();
dto.setPerformancesId(IDGenerator.get32UUID());
dto.setTitle("已购票演出00"+(i+1));
dto.setImgPoster("https://img.zhengzai.tv/other/2021/08/04/865b8c442e7c4fb6a9f3d9b17a8e5b80.jpg");
dto.setTimeStart("2021-09-08 12:00:00");
dto.setTimeEnd("2021-10-08 12:00:00");
dto.setCityName("北京");
dto.setJoinUserCount(123+(i*2));
performanceDtoList.add(dto);
}
// HashMap<String, Object> result = kylinPerformancesService.localList(
// days, cityName, type,
// isDiscount, isAdvance, isExclusive,
// orderBy, sort
// );
// return ResponseDto.success(result);
return null;
return ResponseDto.success(performanceDtoList);
}
@GetMapping("localPerformanceList")
@ApiOperation("本地最近演出列表")
@ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "cityName", value = "城市名称", required = true),
@ApiImplicitParam(type = "query", dataType = "int", name = "page", value = "页码",required = true),
@ApiImplicitParam(type = "query", dataType = "int", name = "page", value = "页码"),
@ApiImplicitParam(type = "query", dataType = "int", name = "size", value = "每页数量"),
@ApiImplicitParam(type = "query", dataType = "String", name = "orderBy", value = "排序字段 时间timeStart"),
@ApiImplicitParam(type = "query", dataType = "String", name = "sort", value = "排序方式[DESC ASC]"),
})
public ResponseDto<PerformanceDto> localPerformanceList(
public ResponseDto<List<PerformanceDto>> localPerformanceList(
@RequestParam(defaultValue = "") String cityName,
@RequestParam(defaultValue = "") String userId,
@RequestParam(defaultValue = "1") int page,
......@@ -76,23 +91,29 @@ public class ChimePerformanceController {
@RequestParam(defaultValue = "") String orderBy,
@RequestParam(defaultValue = "") String sort
) {
// HashMap<String, Object> result = kylinPerformancesService.localList(
// days, cityName, type,
// isDiscount, isAdvance, isExclusive,
// orderBy, sort
// );
// return ResponseDto.success(result);
return null;
List<PerformanceDto> performanceDtoList = new ArrayList<>();
for(int i=0;i<10;i++){
PerformanceDto dto = PerformanceDto.getNew();
dto.setPerformancesId(IDGenerator.get32UUID());
dto.setTitle("本地最近演出00"+(i+1));
dto.setImgPoster("https://img.zhengzai.tv/files/2021/03/09/604705d6b1147.jpeg");
dto.setTimeStart("2021-09-08 12:00:00");
dto.setTimeEnd("2021-10-08 12:00:00");
dto.setCityName("北京");
dto.setJoinUserCount(123+(i*2));
performanceDtoList.add(dto);
}
return ResponseDto.success(performanceDtoList);
}
@GetMapping("getUserListByCon")
@ApiOperation("查询用户列表")
@ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "performanceId", value = "演出id", required = true),
@ApiImplicitParam(type = "query", dataType = "String", name = "sex", value = "性别", required = true),
@ApiImplicitParam(type = "query", dataType = "int", name = "pageNum", value = "页码",required = true),
@ApiImplicitParam(type = "query", dataType = "int", name = "pageSize", value = "每页数量",required = true),
@ApiImplicitParam(type = "query", dataType = "String", name = "tags", value = "兴趣标签", required = false),
@ApiImplicitParam(type = "query", dataType = "String", name = "sex", value = "性别"),
@ApiImplicitParam(type = "query", dataType = "int", name = "pageNum", value = "页码"),
@ApiImplicitParam(type = "query", dataType = "int", name = "pageSize", value = "每页数量"),
@ApiImplicitParam(type = "query", dataType = "String", name = "tags", value = "兴趣标签"),
@ApiImplicitParam(type = "query", dataType = "String", name = "orderBy", value = "排序字段 时间timeStart"),
@ApiImplicitParam(type = "query", dataType = "String", name = "sort", value = "排序方式[DESC ASC]"),
})
......
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