|
@@ -2,16 +2,18 @@ package com.tourism.webadmin.app.website.model;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.*;
|
|
|
import com.tourism.webadmin.upms.model.constant.SysUserStatus;
|
|
|
+import com.tourism.common.core.util.MyCommonUtil;
|
|
|
import com.tourism.common.core.upload.UploadStoreTypeEnum;
|
|
|
import com.tourism.common.core.annotation.*;
|
|
|
import com.tourism.common.core.base.model.BaseModel;
|
|
|
import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
- * 门户网站用户管理实体对象。
|
|
|
+ * 门户用户管理实体对象。
|
|
|
*
|
|
|
* @author 吃饭睡觉
|
|
|
* @date 2024-09-06
|
|
@@ -40,7 +42,7 @@ public class TourUser extends BaseModel {
|
|
|
private String password;
|
|
|
|
|
|
/**
|
|
|
- * 用户显示名称。
|
|
|
+ * 昵称。
|
|
|
*/
|
|
|
@TableField(value = "show_name")
|
|
|
private String showName;
|
|
@@ -48,7 +50,7 @@ public class TourUser extends BaseModel {
|
|
|
/**
|
|
|
* 用户头像的Url。
|
|
|
*/
|
|
|
- @UploadFlagColumn(storeType = UploadStoreTypeEnum.LOCAL_SYSTEM)
|
|
|
+ @UploadFlagColumn(storeType = UploadStoreTypeEnum.HUAWEI_OBS_SYSTEM)
|
|
|
@TableField(value = "head_image_url")
|
|
|
private String headImageUrl;
|
|
|
|
|
@@ -71,15 +73,43 @@ public class TourUser extends BaseModel {
|
|
|
private String mobile;
|
|
|
|
|
|
/**
|
|
|
+ * 性别(1:男 2:女 3:其它)。
|
|
|
+ */
|
|
|
+ @TableField(value = "sex")
|
|
|
+ private String sex;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 生日。
|
|
|
+ */
|
|
|
+ @TableField(value = "birthday")
|
|
|
+ private Date birthday;
|
|
|
+
|
|
|
+ /**
|
|
|
* 逻辑删除标记字段(1: 正常 -1: 已删除)。
|
|
|
*/
|
|
|
@TableLogic
|
|
|
@TableField(value = "deleted_flag")
|
|
|
private Integer deletedFlag;
|
|
|
|
|
|
+ /**
|
|
|
+ * login_name / show_name / email / mobile LIKE搜索字符串。
|
|
|
+ */
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String searchString;
|
|
|
+
|
|
|
+ public void setSearchString(String searchString) {
|
|
|
+ this.searchString = MyCommonUtil.replaceSqlWildcard(searchString);
|
|
|
+ }
|
|
|
+
|
|
|
@RelationConstDict(
|
|
|
masterIdField = "userStatus",
|
|
|
constantDictClass = SysUserStatus.class)
|
|
|
@TableField(exist = false)
|
|
|
private Map<String, Object> userStatusDictMap;
|
|
|
+
|
|
|
+ @RelationGlobalDict(
|
|
|
+ masterIdField = "sex",
|
|
|
+ dictCode = "UserSex")
|
|
|
+ @TableField(exist = false)
|
|
|
+ private Map<String, Object> sexDictMap;
|
|
|
}
|