package com.gkhy.exam.system.domain; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.time.LocalDateTime; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; /** *
* 内部知识 *
* * @author hh * @since 2025-08-25 15:01:44 */ @Getter @Setter @TableName("internal_knowledge") @ApiModel(value = "InternalKnowledge对象", description = "内部知识") public class InternalKnowledge implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) private Long id; @ApiModelProperty(value ="公司id",required = true) @TableField("company_id") @NotNull(message = "公司id不能为空") private Long companyId; @ApiModelProperty(value ="名称",required = true) @TableField("name") @NotBlank(message = "名称不能为空") private String name; @ApiModelProperty(value ="1、体系2、项目3、其他",required = true) @TableField("knowledge_type") @NotNull(message = "类型不能为空") private Integer knowledgeType; @ApiModelProperty("附件名称") @TableField("file_name") private String fileName; @ApiModelProperty("附件地址") @TableField("file_path") private String filePath; @ApiModelProperty("格式") @TableField("format") private String format; @ApiModelProperty("删除标志(0为删除,1删除,默认0)") @TableField("del_flag") private Integer delFlag; @ApiModelProperty("创建时间") @TableField("create_time") private LocalDateTime createTime; @ApiModelProperty("创建人") @TableField("create_by") private String createBy; @ApiModelProperty("更新时间") @TableField("update_time") private LocalDateTime updateTime; @ApiModelProperty("更新人") @TableField("update_by") private String updateBy; @ApiModelProperty("乐观锁") @TableField("version") private Integer version; }