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

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

/**
 * App 版本检查 Response VO
 *
 * @author xindazhou
 */
@Schema(description = "App - 版本检查 Response VO")
@Data
public class AppVersionRespVO {

    @Schema(description = "是否有新版本", example = "true")
    private Boolean hasUpdate;

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

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

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

    @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 = "1. 修复了已知问题\n2. 优化了用户体验")
    private String updateLog;

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

}

