From 28cf328a098334b51a3e9d2d56f983fb8c862211 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期六, 23 五月 2020 09:54:38 +0800 Subject: [PATCH] 足迹、收藏订单兼容新需求 --- fanli/src/main/java/com/yeshi/fanli/entity/bus/msg/MsgAccountDetail.java | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 54 insertions(+), 6 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/entity/bus/msg/MsgAccountDetail.java b/fanli/src/main/java/com/yeshi/fanli/entity/bus/msg/MsgAccountDetail.java index 49cb8ea..86b3aae 100644 --- a/fanli/src/main/java/com/yeshi/fanli/entity/bus/msg/MsgAccountDetail.java +++ b/fanli/src/main/java/com/yeshi/fanli/entity/bus/msg/MsgAccountDetail.java @@ -2,6 +2,9 @@ import java.util.Date; +import org.yeshi.utils.mybatis.Column; +import org.yeshi.utils.mybatis.Table; + import com.yeshi.fanli.entity.bus.user.UserInfo; /** @@ -10,28 +13,65 @@ * @author Administrator * */ +@Table("yeshi_ec_msg_account") public class MsgAccountDetail { - public enum MsgTypeAccountEnumType { - bingding("璐﹀彿缁戝畾"), cancelBinding("鍙栨秷缁戝畾"), bingdingChange("缁戝畾鏇存崲"), update("璐﹀彿淇敼"), level("璐﹀彿绛夌骇"), connect("璐﹀彿鍚堝苟"); + public enum MsgTypeAccountTypeEnum { + bingding("璐﹀彿缁戝畾", "http://img.flqapp.com/resource/msg/icon_msg_account.png"), + cancelBinding("鍙栨秷缁戝畾", "http://img.flqapp.com/resource/msg/icon_msg_account.png"), + bingdingChange("缁戝畾鏇存崲", "http://img.flqapp.com/resource/msg/icon_msg_account.png"), + update("璐﹀彿淇敼", "http://img.flqapp.com/resource/msg/icon_msg_account.png"), + level("璐﹀彿绛夌骇", "http://img.flqapp.com/resource/msg/icon_msg_account.png"), + connect("璐﹀彿鍚堝苟", "http://img.flqapp.com/resource/msg/icon_msg_account.png"), + taoBaoAuthFail("璐﹀彿缁戝畾", "http://img.flqapp.com/resource/msg/icon_msg_account.png"), + changeCode("璐﹀彿淇敼", "http://img.flqapp.com/resource/msg/icon_msg_account.png"), + vipApply("璐︽埛鍗囩骇", "http://img.flqapp.com/resource/msg/icon_msg_account.png"), + vipPgrade("绛夌骇鎴愰暱","http://img.flqapp.com/resource/msg/icon_msg_level.png"); + private final String desc; + private final String icon; - private MsgTypeAccountEnumType(String desc) { + private MsgTypeAccountTypeEnum(String desc, String icon) { this.desc = desc; + this.icon = icon; } public String getDesc() { return desc; } + + public String getIcon() { + return icon; + } } + @Column(name = "ma_id") + private Long id; + @Column(name = "ma_uid") private UserInfo user; - private MsgTypeAccountEnumType type;// 绫诲瀷 + @Column(name = "ma_type") + private MsgTypeAccountTypeEnum type;// 绫诲瀷 + @Column(name = "ma_title") private String title;// 浜嬮」 + @Column(name = "ma_content") private String content;// 鐘舵�� + @Column(name = "ma_beizhu") private String beiZhu;// 澶囨敞 + @Column(name = "ma_read") private Boolean read; + @Column(name = "ma_create_time") private Date createTime; + @Column(name = "ma_update_time") private Date updateTime; + + private String extraInfo;// 鏂扮増娑堟伅鍐呭 + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } public Boolean getRead() { return read; @@ -81,11 +121,11 @@ this.content = content; } - public MsgTypeAccountEnumType getType() { + public MsgTypeAccountTypeEnum getType() { return type; } - public void setType(MsgTypeAccountEnumType type) { + public void setType(MsgTypeAccountTypeEnum type) { this.type = type; } @@ -96,4 +136,12 @@ public void setBeiZhu(String beiZhu) { this.beiZhu = beiZhu; } + + public String getExtraInfo() { + return extraInfo; + } + + public void setExtraInfo(String extraInfo) { + this.extraInfo = extraInfo; + } } -- Gitblit v1.8.0