refactor: 重构用户相关代码

- 新增字典编码枚举 DictCodeEnum
-移除 GenderEnum 枚举- 更新 NoticePublishStatusEnum 枚举
- 修改 UserConverter 接口
- 重构 UserImportListener 类
- 更新 UserPageVO 数据结构
This commit is contained in:
Ray.Hao
2024-10-31 01:23:39 +08:00
parent e1f61e2d22
commit 308ae7d147
6 changed files with 45 additions and 45 deletions

View File

@@ -0,0 +1,28 @@
package com.youlai.boot.system.enums;
import com.youlai.boot.common.base.IBaseEnum;
import lombok.Getter;
/**
* 字典编码枚举
*
* @author Ray
* @since 2024/10/30
*/
@Getter
public enum DictCodeEnum implements IBaseEnum<String> {
GENDER("gender", "性别"),
NOTICE_TYPE("notice_type", "通知类型"),
NOTICE_LEVEL("notice_level", "通知级别");
private final String value;
private final String label;
DictCodeEnum(String value, String label) {
this.value = value;
this.label = label;
}
}