admin
2020-11-27 f6b3ccd276193077e7a0f7553d1a03833543761b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
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;
    }
}