package cn.reghao.tnb.file.app.zoss.model.dto;

import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import lombok.Setter;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;

/**
 * @author reghao
 * @date 2025-10-20 16:42:44
 */
@Setter
@Getter
public class NodeUpdateDto {
    @NotNull
    private Integer userNodeId;
    @Pattern(regexp = "^[a-z0-9]+([\\-\\.]{1}[a-z0-9]+)*\\.[a-z]{2,6}$", message = "域名格式不正确")
    @Size(max = 128, message = "域名长度应小于 128 个字符")
    private String domain;
    @NotBlank
    @Size(max = 5, message = "协议应该是 http 或 https")
    private String protocol;
    private String referer;
    private String secretKey;
}
