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

@@ -23,9 +23,6 @@ import org.mapstruct.Mappings;
@Mapper(componentModel = "spring")
public interface UserConverter {
@Mappings({
@Mapping(target = "genderLabel", expression = "java(com.youlai.boot.common.base.IBaseEnum.getLabelByValue(bo.getGender(), com.youlai.boot.system.enums.GenderEnum.class))")
})
UserPageVO toPageVo(UserBO bo);
Page<UserPageVO> toPageVo(Page<UserBO> bo);