All Downloads are FREE. Search and download functionalities are using the official Maven repository.

k.e.book.ddh.entity.CcAttachmentDO Maven / Gradle / Ivy


package k.e.book.ddh.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;
import java.io.Serializable;
import java.util.Date;
/**
 * @author kk
 * @date 2023-05-21 11:01
 */
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("cc_attachment")
@ApiModel(value="CcAttachmentDO", description="CcAttachment")
public class CcAttachmentDO extends Model  {
    private static final long serialVersionUID = 1L;


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


    /**
     * 类别
     */
    @TableField("category")
    private String category;
    /**
     * 管理员ID
     */
    @TableField("admin_id")
    private Integer adminId;
    /**
     * 会员ID
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 物理路径
     */
    @TableField("url")
    private String url;
    /**
     * 宽度
     */
    @TableField("imagewidth")
    private String imagewidth;
    /**
     * 高度
     */
    @TableField("imageheight")
    private String imageheight;
    /**
     * 图片类型
     */
    @TableField("imagetype")
    private String imagetype;
    /**
     * 图片帧数
     */
    @TableField("imageframes")
    private Integer imageframes;
    /**
     * 文件名称
     */
    @TableField("filename")
    private String filename;
    /**
     * 文件大小
     */
    @TableField("filesize")
    private Integer filesize;
    /**
     * mime类型
     */
    @TableField("mimetype")
    private String mimetype;
    /**
     * 透传数据
     */
    @TableField("extparam")
    private String extparam;
    /**
     * 创建日期
     */
    @TableField("createtime")
    private Long createtime;
    /**
     * 更新时间
     */
    @TableField("updatetime")
    private Long updatetime;
    /**
     * 上传时间
     */
    @TableField("uploadtime")
    private Long uploadtime;
    /**
     * 存储位置
     */
    @TableField("storage")
    private String storage;
    /**
     * 文件 sha1编码
     */
    @TableField("sha1")
    private String sha1;

    public static CcAttachmentVO toVO(CcAttachmentDO ccAttachmentDO) {
        if(ccAttachmentDO == null){
            return null;
        }
        CcAttachmentVO ccAttachmentVO = new CcAttachmentVO();
        BeanUtils.copyProperties(ccAttachmentDO, ccAttachmentVO);
        return ccAttachmentVO;
    }

    public static CcAttachmentDO toDO(CcAttachmentAddDTO ccAttachmentAddDTO) {
        if (ccAttachmentAddDTO == null) {
            return null;
        }
        CcAttachmentDO ccAttachmentDO = new CcAttachmentDO();
        BeanUtils.copyProperties(ccAttachmentAddDTO, ccAttachmentDO);
        return ccAttachmentDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy