package com.lesingle.modules.sys.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "创建租户请求")
public class CreateTenantDto {

    @NotBlank(message = "租户名称不能为空")
    @Schema(description = "租户名称")
    private String name;

    @NotBlank(message = "租户编码不能为空")
    @Schema(description = "租户编码（唯一，用于访问链接）")
    private String code;

    @Schema(description = "租户域名")
    private String domain;

    @Schema(description = "租户描述")
    private String description;

    @Schema(description = "租户类型：library/kindergarten/school/institution/other")
    private String tenantType;

    @Schema(description = "分配菜单 ID 列表")
    private List<Long> menuIds;

    @Schema(description = "管理员用户名（默认 admin）")
    private String adminUsername;

    @Schema(description = "管理员密码（默认 admin@{tenantCode}）")
    private String adminPassword;
}
