admin
2021-01-15 5405154d6979f1b50ce2d881bb164b1acca80b6d
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
package com.ks.lucky.pojo.DO;
 
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
 
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
 
@Document(collection = "luckyActivityImage")
public class LuckyActivityImage implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    public enum LuckyImageType {
        banner("banner");
 
        private LuckyImageType(String type) {
 
        }
    }
 
    @Id
    private String id;
 
    @NotNull(message = "活动ID不能为空")
    private Long activityId;
    @NotEmpty(message = "链接不能为空")
    private String url;
 
    private Integer weight;
    @NotNull(message = "图片类型不能为空")
    private LuckyImageType type;
 
    private Date createTime;
 
    private Date updatetime;
 
    public Long getActivityId() {
        return activityId;
    }
 
    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }
 
    public Integer getWeight() {
        return weight;
    }
 
    public void setWeight(Integer weight) {
        this.weight = weight;
    }
 
    public String getId() {
        return id;
    }
 
    public void setId(String id) {
        this.id = id;
    }
 
    public String getUrl() {
        return url;
    }
 
    public void setUrl(String url) {
        this.url = url;
    }
 
    public LuckyImageType getType() {
        return type;
    }
 
    public void setType(LuckyImageType type) {
        this.type = type;
    }
 
    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;
    }
}