parent
2ffef0516f
commit
f98edf5119
@ -0,0 +1,141 @@
|
||||
package com.luoo.user.vo.point;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.luoo.user.pojo.LotteryRegion;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.data.annotation.CreatedDate;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* DTO for {@link com.luoo.user.pojo.Lottery}
|
||||
*/
|
||||
@Data
|
||||
public class LotteryAPPVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -3199469715292060249L;
|
||||
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "抽奖编码")
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty(value = "标题")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(value = "抽奖类型 1-门票抽奖 2-实物抽奖")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "奖品总数量")
|
||||
private Integer num;
|
||||
|
||||
@ApiModelProperty(value = "可参加人员 1-全部 2-全部会员 3-永久会员 4-贡献者")
|
||||
private Integer participant;
|
||||
|
||||
@ApiModelProperty(value = "积分")
|
||||
private Integer point;
|
||||
|
||||
@ApiModelProperty(value = "地区编码")
|
||||
private String regionCode;
|
||||
|
||||
@ApiModelProperty(value = "地区名称")
|
||||
private String regionName;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "报名开始时间")
|
||||
private LocalDateTime applyStartTime;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "报名结束时间")
|
||||
private LocalDateTime applyEndTime;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "抽奖时间")
|
||||
private LocalDateTime drawTime;
|
||||
|
||||
@ApiModelProperty(value = "抽奖方式 1-自动抽奖 2-手动抽奖")
|
||||
private Integer way;
|
||||
|
||||
@ApiModelProperty(value = "抽奖封面url")
|
||||
private String image;
|
||||
|
||||
@ApiModelProperty(value = "抽奖描述")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "抽奖状态 0-编辑中 1-报名中 2-已抽奖 3-已停止")
|
||||
private Integer status;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty("创建时间")
|
||||
@CreatedDate
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "停止原因")
|
||||
private String stopReason;
|
||||
|
||||
@Transient
|
||||
@ApiModelProperty(value = "本人是否参与抽奖 1-已参加 2-未参加")
|
||||
private Integer isParticipate;
|
||||
|
||||
@Transient
|
||||
@ApiModelProperty(value = "参与人数")
|
||||
private Long participateNum;
|
||||
|
||||
|
||||
public LotteryAPPVO() {
|
||||
|
||||
}
|
||||
|
||||
public LotteryAPPVO(String id, String code, String title, Integer type, Integer num, Integer participant, Integer point, String regionCode, String regionName, LocalDateTime applyStartTime, LocalDateTime applyEndTime, LocalDateTime drawTime, Integer way, String image, String description, Integer status, LocalDateTime createTime, String stopReason) {
|
||||
this.id = id;
|
||||
this.code = code;
|
||||
this.title = title;
|
||||
this.type = type;
|
||||
this.num = num;
|
||||
this.participant = participant;
|
||||
this.point = point;
|
||||
this.regionCode = regionCode;
|
||||
this.regionName = regionName;
|
||||
this.applyStartTime = applyStartTime;
|
||||
this.applyEndTime = applyEndTime;
|
||||
this.drawTime = drawTime;
|
||||
this.way = way;
|
||||
this.image = image;
|
||||
this.description = description;
|
||||
this.status = status;
|
||||
this.createTime = createTime;
|
||||
this.stopReason = stopReason;
|
||||
}
|
||||
|
||||
public LotteryAPPVO(String id, String code, String title, Integer type, Integer num, Integer participant, Integer point, String regionCode, String regionName, LocalDateTime applyStartTime, LocalDateTime applyEndTime, LocalDateTime drawTime, Integer way, String image, String description, Integer status, LocalDateTime createTime, String stopReason, Integer isParticipate) {
|
||||
this.id = id;
|
||||
this.code = code;
|
||||
this.title = title;
|
||||
this.type = type;
|
||||
this.num = num;
|
||||
this.participant = participant;
|
||||
this.point = point;
|
||||
this.regionCode = regionCode;
|
||||
this.regionName = regionName;
|
||||
this.applyStartTime = applyStartTime;
|
||||
this.applyEndTime = applyEndTime;
|
||||
this.drawTime = drawTime;
|
||||
this.way = way;
|
||||
this.image = image;
|
||||
this.description = description;
|
||||
this.status = status;
|
||||
this.createTime = createTime;
|
||||
this.stopReason = stopReason;
|
||||
this.isParticipate = isParticipate;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue