package com.zbf.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zbf.common.annotation.Excel;
import com.zbf.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 【app版本】对象 app_versions
 *
 * @author tony
 * @date 2024-08-12
 */
@Data
@TableName(resultMap = "com.zbf.system.mapper.AppVersionsMapper.AppVersionsResult")
public class AppVersions extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String version;

    /**
     * 地址
     */
    @Excel(name = "地址")
    private String downloadUrl;

    /**
     * 更新日志
     */
    @Excel(name = "更新日志")
    private String changelog;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date releaseDate;

    /**
     * 历史版本
     */
    @Excel(name = "历史版本")
    private String hversion;
}
