package com.ks.lucky.pojo.DO;
|
|
import org.springframework.data.mongodb.core.mapping.Document;
|
|
import javax.validation.Valid;
|
import javax.validation.constraints.NotNull;
|
import java.util.Date;
|
|
/**
|
* 赞助商广告
|
*/
|
@Valid
|
@Document(collection = "luckySponsorAd")
|
public class LuckySponsorAd {
|
|
//待审核
|
public final static int STATE_WAIT_VERIFY = 0;
|
//正常状态
|
public final static int STATE_NORMAL = 1;
|
|
//审核未通过
|
public final static int STATE_VERIFY_REJECT = 2;
|
|
//被封禁
|
public final static int STATE_FORBIDDEN = 3;
|
|
public enum SponsorAdType {
|
|
alipayLife("支付宝生活号"), wxXCX("微信小程序");
|
|
private SponsorAdType(String name) {
|
|
}
|
|
}
|
|
|
private String id;
|
@NotNull(message = "请指定广告类型")
|
private SponsorAdType adType;//广告类型
|
@NotNull(message = "请指定赞助商")
|
private Long sponsorId;
|
private Integer state;
|
private String stateDesc;
|
private Date verifyTime;
|
private Date verifySuccessTime;
|
private Date createTime;
|
private Date updateTime;
|
|
|
public SponsorAdType getAdType() {
|
return adType;
|
}
|
|
public void setAdType(SponsorAdType adType) {
|
this.adType = adType;
|
}
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public Long getSponsorId() {
|
return sponsorId;
|
}
|
|
public void setSponsorId(Long sponsorId) {
|
this.sponsorId = sponsorId;
|
}
|
|
public Integer getState() {
|
return state;
|
}
|
|
public void setState(Integer state) {
|
this.state = state;
|
}
|
|
public String getStateDesc() {
|
return stateDesc;
|
}
|
|
public void setStateDesc(String stateDesc) {
|
this.stateDesc = stateDesc;
|
}
|
|
public Date getVerifyTime() {
|
return verifyTime;
|
}
|
|
public void setVerifyTime(Date verifyTime) {
|
this.verifyTime = verifyTime;
|
}
|
|
public Date getVerifySuccessTime() {
|
return verifySuccessTime;
|
}
|
|
public void setVerifySuccessTime(Date verifySuccessTime) {
|
this.verifySuccessTime = verifySuccessTime;
|
}
|
|
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;
|
}
|
}
|