package com.yeshi.fanli.entity.bus.user; import java.util.Date; import org.yeshi.utils.mybatis.Column; import org.yeshi.utils.mybatis.Table; /** * 用户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; } }