package cn.ey.biz.module.system.api.app.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class AppDTO {

    @ApiModelProperty(value = "编码", required = true)
    @NotBlank(message = "编码不能为空")
    @Size(max = 16, message = "编码标签长度不能超过16个字符")
    private String code;

    @ApiModelProperty(value = "名称")
    @NotBlank(message = "名称不能为空")
    private String name;

    @ApiModelProperty(value = "地址")
    private String url;

    @ApiModelProperty(value = "状态（0正常 1停用）", required = true)
    @NotNull(message = "状态（0正常 1停用）不能为空")
    private Integer status;

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