package com.lesingle.creation.dto.tenant;

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

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;

/**
 * 更新租户 DTO
 */
@Data
@Schema(description = "更新租户请求")
public class UpdateTenantDTO {

    @Schema(description = "租户名称")
    private String name;

    @Schema(description = "租户编码")
    private String code;

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

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

    @Schema(description = "有效状态：1-有效，2-失效", example = "1")
    @Min(value = 1, message = "有效状态最小值为 1")
    @Max(value = 2, message = "有效状态最大值为 2")
    private Integer validState;

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