-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request !774 from 芋道源码/feature/vo-optimize
- Loading branch information
Showing
337 changed files
with
2,447 additions
and
6,200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
...main/java/cn/iocoder/yudao/module/infra/controller/admin/config/vo/ConfigCreateReqVO.java
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
...src/main/java/cn/iocoder/yudao/module/infra/controller/admin/config/vo/ConfigExcelVO.java
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
...main/java/cn/iocoder/yudao/module/infra/controller/admin/config/vo/ConfigExportReqVO.java
This file was deleted.
Oops, something went wrong.
40 changes: 33 additions & 7 deletions
40
.../src/main/java/cn/iocoder/yudao/module/infra/controller/admin/config/vo/ConfigRespVO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,56 @@ | ||
package cn.iocoder.yudao.module.infra.controller.admin.config.vo; | ||
|
||
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat; | ||
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert; | ||
import cn.iocoder.yudao.module.infra.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 lombok.EqualsAndHashCode; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.Size; | ||
import java.time.LocalDateTime; | ||
|
||
@Schema(description = "管理后台 - 参数配置信息 Response VO") | ||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public class ConfigRespVO extends ConfigBaseVO { | ||
@ExcelIgnoreUnannotated | ||
public class ConfigRespVO { | ||
|
||
@Schema(description = "参数配置序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") | ||
@ExcelProperty("参数配置序号") | ||
private Long id; | ||
|
||
@Schema(description = "参数分类", requiredMode = Schema.RequiredMode.REQUIRED, example = "biz") | ||
@ExcelProperty("参数分类") | ||
private String category; | ||
|
||
@Schema(description = "参数名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "数据库名") | ||
@ExcelProperty("参数名称") | ||
private String name; | ||
|
||
@Schema(description = "参数键名", requiredMode = Schema.RequiredMode.REQUIRED, example = "yunai.db.username") | ||
@NotBlank(message = "参数键名长度不能为空") | ||
@Size(max = 100, message = "参数键名长度不能超过100个字符") | ||
@ExcelProperty("参数键名") | ||
private String key; | ||
|
||
@Schema(description = "参数键值", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") | ||
@ExcelProperty("参数键值") | ||
private String value; | ||
|
||
@Schema(description = "参数类型,参见 SysConfigTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") | ||
@ExcelProperty(value = "参数类型", converter = DictConvert.class) | ||
@DictFormat(DictTypeConstants.CONFIG_TYPE) | ||
private Integer type; | ||
|
||
@Schema(description = "是否可见", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") | ||
@ExcelProperty(value = "是否可见", converter = DictConvert.class) | ||
@DictFormat(DictTypeConstants.BOOLEAN_STRING) | ||
private Boolean visible; | ||
|
||
@Schema(description = "备注", example = "备注一下很帅气!") | ||
@ExcelProperty("备注") | ||
private String remark; | ||
|
||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") | ||
@ExcelProperty("创建时间") | ||
private LocalDateTime createTime; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
...main/java/cn/iocoder/yudao/module/infra/controller/admin/config/vo/ConfigUpdateReqVO.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
...ava/cn/iocoder/yudao/module/infra/controller/admin/db/vo/DataSourceConfigCreateReqVO.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.