package cn.iocoder.yudao.module.iot.controller.admin.frpc.vo;

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

import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 代理服务新增/修改 Request VO")
@Data
public class FrpcProxyServerSaveReqVO {

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

    @Schema(description = "代理名称", example = "芋艿")
    private String frpcName;

    @Schema(description = "内网IP")
    private String localIp;

    @Schema(description = "内网端口")
    private Integer localPort;

    @Schema(description = "访问后缀")
    private String suffixPath;

    @Schema(description = "内网状态", example = "1")
    private String localStatus;

    @Schema(description = "代理服务器", example = "30251")
    private Long frpsId;

    @Schema(description = "代理端口")
    private Integer proxyPort;

    @Schema(description = "代理地址")
    private String proxyAddress;

    @Schema(description = "代理状态", example = "2")
    private String proxyStatus;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否启用不能为空")
    private Boolean isEnable;

}