package org.dromara.app.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.app.domain.AppVersion;

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

@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = AppVersion.class)
public class AppVersionVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    @ExcelProperty(value = "平台 android/ios")
    private String platform;

    @ExcelProperty(value = "最新版本号")
    private String latestVersion;

    @ExcelProperty(value = "版本序号，用于排序取最新版本")
    private Integer versionCode;

    @ExcelProperty(value = "是否强制更新 0否 1是")
    private String forceUpdate;

    @ExcelProperty(value = "下载地址")
    private String downloadUrl;

    @ExcelProperty(value = "更新说明")
    private String releaseNotes;

    @ExcelProperty(value = "状态 0停用 1启用")
    private String status;

    @ExcelProperty(value = "备注")
    private String remark;

    @ExcelProperty(value = "创建时间")
    private Date createTime;
}
