package cn.iocoder.yudao.module.system.controller.admin.tenant.vo.tenant;

import cn.iocoder.yudao.module.system.dal.dataobject.tenant.EnterpriseInfoDO;
import cn.iocoder.yudao.module.system.dal.dataobject.tenant.TenantPackageDO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;

@Schema(description = "管理后台 - 集团租户关联 Response VO")
@Data
@ExcelIgnoreUnannotated
public class GroupTenantInfoVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25411")
    @ExcelProperty("主键ID")
    private Long id;

    @Schema(description = "集团租户ID", example = "17344")
    @ExcelProperty("集团租户ID")
    private Long groupTenantId;

    @Schema(description = "集团名称")
    private String groupTenantName;

    @Schema(description = "关联的租户ID", example = "17344")
    private Long orgTenantId;

    @Schema(description = "关联的租户名称")
    private String tenantName;

    @Schema(description = "租户企业信息")
    private EnterpriseInfoDO enterprise;

    @Schema(description = "套餐信息")
    private List<TenantPackageDO> packages;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private LocalDateTime createTime;

}