package com.reading.platform.dto.request;

import com.fasterxml.jackson.annotation.JsonAlias;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "租户更新请求")
public class TenantUpdateRequest {

    @Schema(description = "租户名称", example = "阳光幼儿园")
    private String name;

    @Schema(description = "联系人", example = "张园长")
    @JsonAlias("contactPerson")
    private String contactName;

    @Schema(description = "联系电话", example = "010-12345678")
    private String contactPhone;

    @Schema(description = "联系邮箱", example = "admin@kindergarten.com")
    private String contactEmail;

    @Schema(description = "地址", example = "北京市朝阳区 XX 路 XX 号")
    private String address;

    @Schema(description = "Logo URL", example = "/logo/school.png")
    private String logoUrl;

    @Schema(description = "状态", example = "active")
    private String status;

    @Schema(description = "过期日期", example = "2025-12-31")
    @JsonAlias("expireDate")
    private LocalDateTime expireAt;

    @Schema(description = "最大学生数", example = "500")
    @JsonAlias("studentQuota")
    private Integer maxStudents;

    @Schema(description = "最大教师数", example = "50")
    @JsonAlias("teacherQuota")
    private Integer maxTeachers;

    @Schema(description = "套餐类型（可选）", example = "standard")
    private String packageType;

    @Schema(description = "开始日期（可选）", example = "2024-01-01")
    private String startDate;

}
