admin
2019-02-22 e358583d644fa39fc1e93b14b3cafff3644980e4
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
package org.fanli.facade.user.entity.account.user;
 
import java.util.Date;
 
import org.yeshi.utils.mybatis.Column;
import org.yeshi.utils.mybatis.Table;
 
import com.yeshi.fanli.base.entity.user.UserInfo;
 
/**
 * 用户app界面个性化设置
 * @author Administrator
 *
 */
@Table("yeshi_ec_user_custom_settings")
public class UserCustomSettings {
 
    // 消息类型的枚举
    public enum UserSettingTypeEnum {
        cancelNotice("通知免打扰(20:00-8:00)"), noNewsRedDot("不看消息红点提醒"), noBonusCount("不看奖金统计"),
        noShareRecordAndStorage("不看分享记录和选品库"),noInvitationBonus("不看邀请拿奖金");
        
        private final String desc;
 
        private UserSettingTypeEnum(String desc) {
            this.desc = desc;
        }
 
        public String getDesc() {
            return desc;
        }
    }
 
    @Column(name = "ucs_id")
    private Long id;
 
    // 用户id
    @Column(name = "ucs_uid")
    private UserInfo userInfo;
 
    // 类型
    @Column(name = "ucs_type")
    private UserSettingTypeEnum type;
 
    // 状态: 默认0  1选中
    @Column(name = "ucs_state")
    private Integer state;
 
    // 创建时间
    @Column(name = "ucs_create_time")
    private Date createTime;
 
    // 更新时间
    @Column(name = "ucs_update_time")
    private Date updateTime;
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public UserInfo getUserInfo() {
        return userInfo;
    }
 
    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }
 
    public UserSettingTypeEnum getType() {
        return type;
    }
 
    public void setType(UserSettingTypeEnum type) {
        this.type = type;
    }
 
    public Integer getState() {
        return state;
    }
 
    public void setState(Integer state) {
        this.state = state;
    }
 
    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;
    }
    
}