package com.gxwebsoft.common.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 存储类型
 *
 * @author 科技小王子
 * @since 2025-05-16 14:24:28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "SysFileType对象", description = "存储类型")
public class SysFileType implements Serializable {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "0本地存储，1阿里云oss，2腾讯云cos，3七牛云，4其他")
    private Integer type;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "访问域名")
    private String path;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
