修复标签管理导出
This commit is contained in:
parent
f6bc0fb349
commit
f696fea69b
@ -16,5 +16,6 @@ public interface DictTypeConstants {
|
||||
String BOOLEAN_STRING = "infra_boolean_string"; // Boolean 是否类型
|
||||
|
||||
String OPERATE_TYPE = "infra_operate_type"; // 操作类型
|
||||
String LABEL_STATUS = "llm_label_status"; // 标签状态
|
||||
|
||||
}
|
||||
|
@ -1,5 +1,8 @@
|
||||
package cn.iocoder.yudao.module.llm.controller.admin.label.vo;
|
||||
|
||||
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
|
||||
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
|
||||
import cn.iocoder.yudao.module.infra.enums.DictTypeConstants;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
@ -27,7 +30,8 @@ public class LabelRespVO {
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "使用状态(0启用 1停用),使用字典(llm_label_status)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@ExcelProperty("使用状态(0启用 1停用),使用字典(llm_label_status)")
|
||||
@ExcelProperty(value = "使用状态",converter = DictConvert.class)
|
||||
@DictFormat(DictTypeConstants.LABEL_STATUS)
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "标签排序")
|
||||
|
Loading…
x
Reference in New Issue
Block a user