package com.iailab.module.knowledge.dto; import com.iailab.framework.common.validation.group.AddGroup; import com.iailab.framework.common.validation.group.UpdateGroup; import com.iailab.framework.excel.core.annotations.DictFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import javax.validation.constraints.NotNull; import javax.validation.constraints.Null; import java.io.Serializable; import java.util.Date; /** * @author PanZhibao * @Description * @createTime 2023年12月26日 08:39:00 */ @Data @Schema(name = "知识详情") public class KnowledgeDetDTO implements Serializable { private static final long serialVersionUID = 1L; @Schema(name = "id") @Null(message="{id.null}", groups = AddGroup.class) @NotNull(message="{id.require}", groups = UpdateGroup.class) private String id; @Schema(name = "树形图节点id") private String treeId; @Schema(name = "类型") private String typeId; @DictFormat("knowledge-type") @Schema(name = "类型") private String typeName; @Schema(name = "标题") private String title; @Schema(name = "关键词") private String keyWords; @Schema(name = "技术分类") private String skillTypeId; @Schema(name = "网址") private String website; @Schema(name = "摘要") private String content; @Schema(name = "文件名称") private String fileName; @Schema(name = "文件后缀") private String filePostfix; @Schema(name = "文件地址") private String url; @Schema(name = "创建时间") private Date createDate; }