7 changed files with 191 additions and 2 deletions
@ -0,0 +1,39 @@ |
|||||
|
package com.bnyer.img.controller; |
||||
|
|
||||
|
import com.bnyer.common.core.domain.R; |
||||
|
import com.bnyer.img.query.UserVipQuery; |
||||
|
import com.bnyer.img.query.UserVipRecordQuery; |
||||
|
import com.bnyer.img.service.UserVipRecordService; |
||||
|
import com.bnyer.img.service.UserVipService; |
||||
|
import com.bnyer.img.vo.UserVipRecordVo; |
||||
|
import com.bnyer.img.vo.UserVipVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.v3.oas.annotations.Operation; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author :WXC |
||||
|
* @Date :2023/05/10 |
||||
|
* @description : |
||||
|
*/ |
||||
|
@Api(value = "用户会员记录相关接口",tags = "用户会员记录相关接口") |
||||
|
@RestController |
||||
|
@RequestMapping("/img/mini/vipRecord") |
||||
|
@Slf4j |
||||
|
public class UserVipRecordController { |
||||
|
|
||||
|
@Resource |
||||
|
private UserVipRecordService userVipRecordService; |
||||
|
|
||||
|
@Operation(summary="获取用户会员记录",description = "获取用户会员记录") |
||||
|
@GetMapping(value = "/queryUserVipRecord") |
||||
|
public R<UserVipRecordVo> queryUserVipRecord(UserVipRecordQuery query){ |
||||
|
return R.ok(userVipRecordService.queryUserVipRecord(query)); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package com.bnyer.img.query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Getter; |
||||
|
import lombok.Setter; |
||||
|
|
||||
|
/** |
||||
|
* @author :WXC |
||||
|
* @Date :2023/03/31 |
||||
|
* @description : |
||||
|
*/ |
||||
|
@Getter |
||||
|
@Setter |
||||
|
@ApiModel("用户会员记录查询请求对象") |
||||
|
public class UserVipRecordQuery { |
||||
|
@ApiModelProperty(value = "id") |
||||
|
private Long id; |
||||
|
|
||||
|
@ApiModelProperty(value = "用户id") |
||||
|
private Long userId; |
||||
|
/** |
||||
|
* 用户客户端类型 |
||||
|
*/ |
||||
|
private Integer userClientType; |
||||
|
} |
||||
@ -0,0 +1,56 @@ |
|||||
|
package com.bnyer.img.vo; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Getter; |
||||
|
import lombok.NoArgsConstructor; |
||||
|
import lombok.Setter; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
|
||||
|
@Getter |
||||
|
@Setter |
||||
|
@NoArgsConstructor |
||||
|
@ApiModel(value = "用户会员记录查询响应对象") |
||||
|
public class UserVipRecordVo { |
||||
|
|
||||
|
@ApiModelProperty(value="id") |
||||
|
private Long id; |
||||
|
|
||||
|
@ApiModelProperty(value="订单号") |
||||
|
private String orderNo; |
||||
|
|
||||
|
@ApiModelProperty(value="用户id") |
||||
|
private Long userId; |
||||
|
|
||||
|
@ApiModelProperty(value="用户手机号") |
||||
|
private String phone; |
||||
|
|
||||
|
@ApiModelProperty(value="vip表id") |
||||
|
private Long vipId; |
||||
|
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
@ApiModelProperty(value="开始时间") |
||||
|
private Date startTime; |
||||
|
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
@ApiModelProperty(value="到期时间") |
||||
|
private Date endTime; |
||||
|
|
||||
|
@ApiModelProperty(value="状态(0->已到期;1->已生效;)") |
||||
|
private Integer status; |
||||
|
|
||||
|
@ApiModelProperty(value="vip名称") |
||||
|
private String vipName; |
||||
|
|
||||
|
@ApiModelProperty(value = "vip类型名称") |
||||
|
private String vipTypeName; |
||||
|
|
||||
|
@ApiModelProperty(value = "用户客户端类型:10用户-抖音 20用户-快手 30用户-微信 40艺术家-微信") |
||||
|
private Integer userClientType; |
||||
|
|
||||
|
@ApiModelProperty(value = "是否开通会员:0 未开通 1已开通") |
||||
|
private String isVip; |
||||
|
|
||||
|
} |
||||
Loading…
Reference in new issue