package com.xindazhou.business.controller.admin.version.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 版本管理 Response VO")
@Data
public class VersionRespVO {

    @Schema(description = "版本ID", example = "1")
    private Long id;

    @Schema(description = "平台类型：1-安卓，2-鸿蒙，3-iOS", example = "1")
    private Integer platform;

    @Schema(description = "版本号（内部版本号）", example = "100")
    private Integer versionCode;

    @Schema(description = "版本名称", example = "1.0.0")
    private String versionName;

    @Schema(description = "版本描述", example = "首个正式版本")
    private String versionDesc;

    @Schema(description = "下载地址", example = "https://example.com/app-v1.0.0.apk")
    private String downloadUrl;

    @Schema(description = "包大小（字节）", example = "50000000")
    private Long packageSize;

    @Schema(description = "是否强制更新", example = "false")
    private Boolean forceUpdate;

    @Schema(description = "更新日志", example = "1. 修复了已知问题\n2. 优化了用户体验")
    private String updateLog;

    @Schema(description = "状态：0-启用，1-禁用", example = "0")
    private Integer status;

    @Schema(description = "发布时间")
    private LocalDateTime publishTime;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "创建人")
    private String creator;

    @Schema(description = "更新人")
    private String updater;

}

