package com.railway.business.app.domain;

import com.railway.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

/**
 * apk版本升级表
 *
 * @author zhaomn 2021-12-13
 */
@Data
@ApiModel("apk版本升级表")
@EqualsAndHashCode(callSuper = true)
public class AppUpgrade extends BaseEntity {

  @ApiModelProperty(value = "主键", hidden = true)
  private String id;

  @ApiModelProperty(value = "终端类型")
  private String osType;

  @ApiModelProperty(value = "apk版本")
  @Length(min = 1, max = 64, message = "【apk版本】长度必须介于 {min} 和 {max} 之间")
  private String apkVersion;

  @ApiModelProperty(value = "更新说明")
  private String description;

  @ApiModelProperty(value = "apk下载地址")
  @Length(min = 1, max = 512, message = "【apk下载地址】长度必须介于 {min} 和 {max} 之间")
  private String url;

  @ApiModelProperty(value = "del_flag")
  @Length(min = 1, max = 1, message = "【del_flag】长度必须介于 {min} 和 {max} 之间")
  private String delFlag;

}