package com.skr.mdm.bean.so.client;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.skr.mdm.bean.util.DateConvertUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

/**
 * @author nfq
 * @date 2020/11/6 16:28
 */
@Data
@Builder
@ApiModel(value = "客户端升级SO")
public class ClientUpgradeSO {

    @ApiModelProperty(value = "客户端升级ID")
    private Integer id;

    @ApiModelProperty(value = "应用名称")
    private String appName;

    @ApiModelProperty(value = "包名")
    private String packageName;

    @ApiModelProperty(value = "版本名称")
    private String versionName;

    @ApiModelProperty(value = "版本号")
    private Integer versionCode;

    @ApiModelProperty(value = "大小")
    private String fileSize;

    @ApiModelProperty(value = "文件地址")
    private String fileUrl;

    @ApiModelProperty(value = "品牌标识")
    private String brand;

    @ApiModelProperty(value = "全局类型（1：全局 2：部门 3：个人）")
    private Integer globalType;

    @ApiModelProperty(value = "状态（0：正常 1：暂停）")
    private Integer isPause;

    @JsonSerialize(using = DateConvertUtil.class)
    private Date sendTime;
}
