package com.zt.plat.module.qms.business.other.controller.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 第三方系统配置新增/修改 Request VO")
@Data
public class OtherSystemConfigSaveReqVO {

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

    @Schema(description = "第三方系统")
    private String otherSystem;

    @Schema(description = "基地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "基地址不能为空")
    private String baseUrl;

    @Schema(description = "账号", example = "7932")
    private String account;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "令牌")
    private String token;

    @Schema(description = "令牌有效时间，单位秒")
    private Integer tokenEffectiveTime;

    @Schema(description = "令牌到期时间")
    private LocalDateTime tokenExpirationTime;

    @Schema(description = "扩展配置")
    private String externalConfig;

    @Schema(description = "是否启用代理,0-否，1-是")
    private Integer isEnableProxy;

    @Schema(description = "代理服务器主机地址")
    private String proxyHost;

    @Schema(description = "代理服务器端口号")
    private Integer proxyPort;

    @Schema(description = "代理服务验证的用户名")
    private String proxyUser;

    @Schema(description = "代理服务验证的密码")
    private String proxyPassword;

    @Schema(description = "所属部门")
    private String systemDepartmentCode;

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

}