package com.cf.imes.module.system.controller.admin.application.vo.application;

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

import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 应用注册表新增/修改 Request VO")
@Data
public class ApplicationSaveReqVO{

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "4109")
    private Long id;

    @Schema(description = "应用标识", example = "okk")
    @NotNull(message = "应用标识不能为空")
    private String appId;

    @Schema(description = "应用密钥", example = "121gfrsg5sb4gs")
    @NotNull(message = "应用密钥不能为空")
    private String appKey;

//    private String appSecret;

    @Schema(description = "服务器IP列表", example = "0.0.0.0")
    @NotNull(message = "服务器IP列表不能为空")
    private String serverIp;

    @Schema(description = "应用简称")
    @NotNull(message = "应用简称不能为空")
    private String code;

    @Schema(description = "应用名")
    @NotNull(message = "应用名不能为空")
    private String name;

    @Schema(description = "应用主体")
    @NotNull(message = "应用主体不能为空")
    private String company;

    @Schema(description = "状态: 0停用，1正常")
    @NotNull(message = "不能为空")
    private Boolean status;

    @Schema(description = "备注")
    private String remark;

}
