package cn.iocoder.yudao.module.knowledge.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import cn.iocoder.yudao.module.knowledge.annotation.ExcelOut;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 法律法规表(TLaws)表实体类
 *
 * @author makejava
 * @since 2024-04-12 10:31:34
 */
@Data
public class TLaws extends BaseDO {

    @Schema(description = "主键", example = "1")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "文件的唯一编码", example = "ABC123")
    private String code;

    @Schema(description = "名称", example = "文件名称")
    @ExcelOut(name = "名称", sort = 1)
    private String name;

    @Schema(description = "版本", example = "1.0")
    @ExcelOut(name = "版本号", sort = 2)
    private String version;

    @Schema(description = "文件真实存在的地方", example = "/path/to/file/example.jpg")
    @ExcelOut(name = "文件地址", sort = 4,width = 85,isFileUrl = true)
    private String fileUrl;

    @Schema(description = "文件大小", example = "1024KB")
    @ExcelOut(name = "文件大小", sort = 3)
    private Long fileSize;

    @Schema(description = "文件原名称", example = "example.jpg")
    private String fileName;

    @Schema(description = "归档时间", example = "2024-04-15T12:00:00")
    private Date filingTime;

    @Schema(description = "是否归档", allowableValues = {"0", "1"}, example = "0")
    private Integer isFiling;

    @Schema(description = "预留字段A")
    private String lawsA;

    @Schema(description = "预留字段B")

    private String lawsB;

    @Schema(description = "说明", example = "这是一段说明")
    private String describeInfo;

    @Schema(description = "创建者", example = "John Doe")
    @ExcelOut(name = "创建人", sort = 5)
    private String creator;

    @Schema(description = "创建者id", example = "1001")
    private String creatorId;
    //1:法律2:行政法规3:部门规章4:地方法规5:地方规章
    private String type;


}

