package com.ks.lucky.pojo.DO;
|
|
import javax.validation.constraints.NotNull;
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
public class LuckySponsorMoneyRecord {
|
|
public enum RecordType {
|
publishActivity("发布活动"),
|
drawnNotReceive("中奖未领取");
|
|
private RecordType(String name) {
|
|
}
|
|
}
|
|
|
private Long id;
|
|
@NotNull(message = "赞助商ID不能为空")
|
private Long sponsorId;
|
@NotNull(message = "记录类型不能为空")
|
private RecordType type;
|
@NotNull(message = "金额不能为空")
|
private BigDecimal money;
|
|
private Long activityId;
|
|
private String extraParams;
|
|
private String remarks;
|
|
private Date createTime;
|
|
private Date updateTime;
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Long getSponsorId() {
|
return sponsorId;
|
}
|
|
public void setSponsorId(Long sponsorId) {
|
this.sponsorId = sponsorId;
|
}
|
|
public RecordType getType() {
|
return type;
|
}
|
|
public void setType(RecordType type) {
|
this.type = type;
|
}
|
|
public BigDecimal getMoney() {
|
return money;
|
}
|
|
public void setMoney(BigDecimal money) {
|
this.money = money;
|
}
|
|
public Long getActivityId() {
|
return activityId;
|
}
|
|
public void setActivityId(Long activityId) {
|
this.activityId = activityId;
|
}
|
|
public String getExtraParams() {
|
return extraParams;
|
}
|
|
public void setExtraParams(String extraParams) {
|
this.extraParams = extraParams == null ? null : extraParams.trim();
|
}
|
|
public String getRemarks() {
|
return remarks;
|
}
|
|
public void setRemarks(String remarks) {
|
this.remarks = remarks == null ? null : remarks.trim();
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public static class DrawnInfo {
|
private Long id;
|
|
public DrawnInfo(Long id) {
|
this.id = id;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
}
|
}
|