| | |
| | | import org.springframework.data.annotation.Transient; |
| | | |
| | | import javax.validation.Valid; |
| | | import javax.validation.constraints.NotEmpty; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | @Valid |
| | | public class LuckyActivityAwards implements Serializable { |
| | | public class LuckyActivityAwards implements Serializable { |
| | | |
| | | //平分 |
| | | public final static int AWARD_WAY_DIVIDE = 1; |
| | |
| | | @NotNull(message = "奖品数量不能为空") |
| | | private Integer count; |
| | | |
| | | @NotEmpty(message = "奖品名称不能为空") |
| | | private String awardName; |
| | | |
| | | @NotNull(message = "中奖方式不能为空") |
| | | private Integer awardWay; |
| | | |
| | | |
| | | private String awardPoster; |
| | | |
| | | |
| | | /** |
| | | * 中奖参数 |
| | |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public String getAwardName() { |
| | | return awardName; |
| | | } |
| | | |
| | | public void setAwardName(String awardName) { |
| | | this.awardName = awardName; |
| | | } |
| | | |
| | | public String getAwardPoster() { |
| | | return awardPoster; |
| | | } |
| | | |
| | | public void setAwardPoster(String awardPoster) { |
| | | this.awardPoster = awardPoster; |
| | | } |
| | | } |