Feat: haoka init demo
This commit is contained in:
parent
9f8622656a
commit
4fd4b8a9b0
|
@ -0,0 +1,5 @@
|
|||
package cn.iocoder.yudao.module.haoka.enums;
|
||||
|
||||
interface DictTypeConstants {
|
||||
String SYSTEM_USER_SEX = "system_user_sex"; // CRM 客户所属行业
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
package cn.iocoder.yudao.module.haoka.controller.admin.demo.vo;
|
||||
|
||||
import cn.iocoder.yudao.module.system.enums.DictTypeConstants;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
|
@ -28,11 +29,11 @@ public class HaokaDemoRespVO {
|
|||
|
||||
@Schema(description = "性别", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty(value = "性别", converter = DictConvert.class)
|
||||
@DictFormat("system_user_sex") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中
|
||||
@DictFormat(DictTypeConstants.USER_SEX) // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中
|
||||
private Integer agent;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue