parent
8ba3025ddf
commit
b9c84e8840
@ -0,0 +1,85 @@
|
||||
package com.luoo.user.dto.point;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.luoo.user.pojo.LotteryRegion;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Value;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import javax.persistence.Transient;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* DTO for {@link com.luoo.user.pojo.Lottery}
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class LotteryAddDto implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "标题")
|
||||
@NotBlank
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(value = "抽奖类型 1-门票抽奖 2-实物抽奖")
|
||||
@NotNull
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "奖品总数量")
|
||||
private Integer num;
|
||||
|
||||
@ApiModelProperty(value = "可参加人员 1-全部 2-全部会员 3-永久会员 4-贡献者")
|
||||
@NotNull
|
||||
private Integer participant;
|
||||
|
||||
@ApiModelProperty(value = "积分")
|
||||
@NotNull
|
||||
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 = "报名开始时间")
|
||||
@NotNull
|
||||
private LocalDateTime applyStartTime;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "报名结束时间")
|
||||
@NotNull
|
||||
private LocalDateTime applyEndTime;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "抽奖时间")
|
||||
@NotNull
|
||||
private LocalDateTime drawTime;
|
||||
|
||||
@ApiModelProperty(value = "抽奖方式 1-自动抽奖 2-手动抽奖")
|
||||
@NotNull
|
||||
private Integer way;
|
||||
|
||||
@ApiModelProperty(value = "抽奖封面url")
|
||||
@NotBlank
|
||||
private String image;
|
||||
|
||||
@ApiModelProperty(value = "抽奖描述")
|
||||
@NotBlank
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "抽奖地区列表")
|
||||
private List<LotteryRegion> lotteryRegionList;
|
||||
}
|
Loading…
Reference in new issue