package com.erp.tenant.dto;

import jakarta.validation.constraints.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 更新租户请求DTO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UpdateTenantRequest {
    
    @Size(max = 100, message = "租户名称不能超过100字符")
    private String name;
    
    @Size(max = 255, message = "域名不能超过255字符")
    private String domain;
    
    private Long packageId;
    
    @Email(message = "管理员邮箱格式不正确")
    @Size(max = 255, message = "管理员邮箱不能超过255字符")
    private String adminEmail;
    
    @Size(max = 20, message = "管理员手机号不能超过20字符")
    private String adminPhone;
    
    private LocalDateTime expireTime;
    
    @Size(max = 500, message = "备注不能超过500字符")
    private String remark;
}
