package cn.iocoder.yudao.module.system.controller.admin.tenant.vo.tenant;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotEmpty;

@Schema(description = "管理后台 - 租户注册 Request VO")
@Data
public class TenantRegisterReqVO {

    @Schema(description = "租户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道")
    @NotNull(message = "租户名不能为空")
    private String name;

    @Schema(description = "联系人", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotNull(message = "联系人不能为空")
    private String contactName;

    @Schema(description = "联系手机", example = "15601691300")
    private String contactMobile;

    @Schema(description = "用户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudao")
    @NotNull(message = "用户账号不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9]{4,30}$", message = "用户账号由 数字、字母 组成")
    @Size(min = 4, max = 30, message = "用户账号长度为 4-30 个字符")
    private String username;

    @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456")
    @NotNull(message = "密码不能为空")
    @Length(min = 6, max = 16, message = "密码长度为 6-16 位")
    private String password;

    @Schema(description = "Turnstile 令牌", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "Turnstile 令牌不能为空")
    private String turnstileToken;

//    @Schema(description = "是否允许登录爬虫客户端", example = "0不允许，1允许")
//    private Byte crawl;
//
//    @Schema(description = "是否允许登录大哥客户端", example = "0不允许，1允许")
//    private Byte bigBrother;
//
//    @Schema(description = "能否登录 AI 聊天工具", example = "0不允许，1允许")
//    private Byte aiChat;
//
//    @Schema(description = "备注", example = "备注")
//    private String remark;
//
//    @Schema(description = "租户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "代理/客户")
//    @NotNull(message = "租户类型不能为空")
//    private String tenantType;

}
