package com.lesingle.creation.dto.tenant;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.util.List;

/**
 * 创建租户 DTO
 */
@Data
@Schema(description = "创建租户请求")
public class CreateTenantDTO {

    @NotBlank(message = "租户名称不能为空")
    @Schema(description = "租户名称", example = "测试图书馆")
    private String name;

    @NotBlank(message = "租户编码不能为空")
    @Schema(description = "租户编码", example = "library001")
    private String code;

    @Schema(description = "租户域名", example = "library001.example.com")
    private String domain;

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

    @Schema(description = "租户类型", example = "library")
    private String tenantType;

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