Material.java 2.93 KB
package com.bs.reception.entity.materials;

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 com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("material")
@Schema(name = "Material", description = "素材实体")
public class Material implements Serializable {

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "素材名称")
    @TableField("material_name")
    private String materialName;

    @Schema(description = "素材编码")
    @TableField("material_code")
    private String materialCode;

    @Schema(description = "业务类型编码")
    @TableField("type_code")
    private String typeCode;

    @Schema(description = "文件夹编码")
    @TableField("folder_code")
    private String folderCode;

    @Schema(description = "素材URL")
    @TableField("material_url")
    private String materialUrl;

    @Schema(description = "素材存储路径")
    @TableField("material_path")
    private String materialPath;

    @Schema(description = "素材类型:1-图片,2-视频,3-文档,4-其他")
    @TableField("material_type")
    private Integer materialType;

    @Schema(description = "文件大小(字节)")
    @TableField("file_size")
    private Long fileSize;

    @Schema(description = "文件扩展名")
    @TableField("file_extension")
    private String fileExtension;

    @Schema(description = "排序")
    @TableField("sort_order")
    private Integer sortOrder;

    @Schema(description = "是否首页展示:0-否,1-是")
    @TableField("show_on_homepage")
    private Integer showOnHomepage;

    @Schema(description = "状态:0-启用,1-停用")
    @TableField("status")
    private Integer status;

    @Schema(description = "创建人")
    @TableField("create_by")
    private String createBy;

    @Schema(description = "创建人ID")
    @TableField("create_by_id")
    private Long createById;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("create_time")
    private Date createTime;

    @Schema(description = "更新人")
    @TableField("update_by")
    private String updateBy;

    @Schema(description = "更新人ID")
    @TableField("update_by_id")
    private Long updateById;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("update_time")
    private Date updateTime;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "删除标记:0-正常,1-删除")
    @TableField("del_flag")
    private Integer delFlag;
}