Upgrade.java 1.25 KB
package vion.model.monitor;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import org.springframework.web.multipart.MultipartFile;
import vion.dto.BaseDTO;

import java.time.LocalDateTime;

/**
 * 升级包信息
 */
@Getter
@Setter
@TableName(value = "m_upgrade")
public class Upgrade extends BaseDTO {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 升级地址
     */
    @TableField(value = "url")
    private String url;

    /**
     * 版本号
     */
    @TableField(value = "version")
    private String version;

    /**
     * 升级包类型:1:store 2:mall
     */
    @TableField(value = "\"type\"")
    private Short type;

    /**
     * 打包时间,utc时间
     */
    @TableField(value = "build_time")
    private String buildTime;

    /**
     * sha256
     */
    @TableField(value = "sha256")
    private String sha256;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(exist = false)
    public MultipartFile infile;
}