提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.tenant.vo.tenant; |
H |
2 |
|
|
3 |
import com.iailab.framework.excel.core.annotations.DictFormat; |
|
4 |
import com.iailab.framework.excel.core.convert.DictConvert; |
|
5 |
import com.iailab.module.system.enums.DictTypeConstants; |
|
6 |
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
|
7 |
import com.alibaba.excel.annotation.ExcelProperty; |
|
8 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
9 |
import lombok.Data; |
|
10 |
|
c37148
|
11 |
import javax.validation.constraints.NotNull; |
e7c126
|
12 |
import java.time.LocalDateTime; |
H |
13 |
|
|
14 |
@Schema(description = "管理后台 - 租户 Response VO") |
|
15 |
@Data |
|
16 |
@ExcelIgnoreUnannotated |
|
17 |
public class TenantRespVO { |
|
18 |
|
|
19 |
@Schema(description = "租户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
20 |
@ExcelProperty("租户编号") |
|
21 |
private Long id; |
|
22 |
|
|
23 |
@Schema(description = "租户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "平台") |
|
24 |
@ExcelProperty("租户名") |
|
25 |
private String name; |
|
26 |
|
|
27 |
@Schema(description = "联系人", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab") |
|
28 |
@ExcelProperty("联系人") |
|
29 |
private String contactName; |
|
30 |
|
|
31 |
@Schema(description = "联系手机", example = "15601691300") |
|
32 |
@ExcelProperty("联系手机") |
|
33 |
private String contactMobile; |
|
34 |
|
|
35 |
@Schema(description = "租户状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
36 |
@ExcelProperty(value = "状态", converter = DictConvert.class) |
|
37 |
@DictFormat(DictTypeConstants.COMMON_STATUS) |
|
38 |
private Integer status; |
|
39 |
|
|
40 |
@Schema(description = "绑定域名", example = "https://www.baidu.com") |
|
41 |
private String website; |
|
42 |
|
|
43 |
@Schema(description = "租户套餐编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
44 |
private Long packageId; |
|
45 |
|
c37148
|
46 |
@Schema(description = "数据源", example = "1024") |
潘 |
47 |
@NotNull(message = "数据源") |
|
48 |
private Long dataSourceConfigId; |
|
49 |
|
e7c126
|
50 |
@Schema(description = "过期时间", requiredMode = Schema.RequiredMode.REQUIRED) |
H |
51 |
private LocalDateTime expireTime; |
|
52 |
|
|
53 |
@Schema(description = "账号数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
54 |
private Integer accountCount; |
|
55 |
|
|
56 |
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
57 |
@ExcelProperty("创建时间") |
|
58 |
private LocalDateTime createTime; |
|
59 |
|
|
60 |
} |