package com.iailab.module.system.controller.admin.tenant.vo.tenant; import com.iailab.framework.excel.core.annotations.DictFormat; import com.iailab.framework.excel.core.convert.DictConvert; import com.iailab.module.system.enums.DictTypeConstants; import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; import com.alibaba.excel.annotation.ExcelProperty; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import javax.validation.constraints.NotNull; import java.time.LocalDateTime; @Schema(description = "管理后台 - 租户 Response VO") @Data @ExcelIgnoreUnannotated public class TenantRespVO { @Schema(description = "租户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") @ExcelProperty("租户编号") private Long id; @Schema(description = "租户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "平台") @ExcelProperty("租户名") private String name; @Schema(description = "联系人", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab") @ExcelProperty("联系人") private String contactName; @Schema(description = "联系手机", example = "15601691300") @ExcelProperty("联系手机") private String contactMobile; @Schema(description = "租户状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") @ExcelProperty(value = "状态", converter = DictConvert.class) @DictFormat(DictTypeConstants.COMMON_STATUS) private Integer status; @Schema(description = "绑定域名", example = "https://www.baidu.com") private String website; @Schema(description = "租户套餐编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") private Long packageId; @Schema(description = "数据源", example = "1024") @NotNull(message = "数据源") private Long dataSourceConfigId; @Schema(description = "过期时间", requiredMode = Schema.RequiredMode.REQUIRED) private LocalDateTime expireTime; @Schema(description = "账号数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") private Integer accountCount; @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) @ExcelProperty("创建时间") private LocalDateTime createTime; }