添加字典功能及初始化数据
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
package com.emotion.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.emotion.common.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 字典实体类
|
||||
*
|
||||
* @author huazhongmin
|
||||
* @date 2025-12-22
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("t_dictionary")
|
||||
public class Dictionary extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 字典类型 (如: city, constellation, mbti)
|
||||
*/
|
||||
@TableField("dict_type")
|
||||
private String dictType;
|
||||
|
||||
/**
|
||||
* 字典编码
|
||||
*/
|
||||
@TableField("dict_code")
|
||||
private String dictCode;
|
||||
|
||||
/**
|
||||
* 字典名称
|
||||
*/
|
||||
@TableField("dict_name")
|
||||
private String dictName;
|
||||
|
||||
/**
|
||||
* 字典值
|
||||
*/
|
||||
@TableField("dict_value")
|
||||
private String dictValue;
|
||||
|
||||
/**
|
||||
* 排序顺序
|
||||
*/
|
||||
@TableField("sort_order")
|
||||
private Integer sortOrder;
|
||||
|
||||
/**
|
||||
* 状态: 0-禁用, 1-启用
|
||||
*/
|
||||
@TableField("status")
|
||||
private Integer status;
|
||||
}
|
||||
@@ -49,6 +49,12 @@ public class UserProfile extends BaseEntity {
|
||||
@TableField("zodiac")
|
||||
private String zodiac;
|
||||
|
||||
/**
|
||||
* 职业
|
||||
*/
|
||||
@TableField("profession")
|
||||
private String profession;
|
||||
|
||||
/**
|
||||
* MBTI人格类型
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user