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

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 代理服务分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class FrpcProxyServerPageReqVO extends PageParam {

    @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 = "是否启用")
    private Boolean isEnable;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}