Commit 12d6c14b1cf3846f04dc1396ea7695121b9c4c57
Committed by
Gitee
!469 修复 vue3 代码生成 api 模版错误 && 修复过期属性
Merge pull request !469 from xingyu/fix/vue3_codegen
Showing
352 changed files
with
1434 additions
and
1340 deletions
README.md
| @@ -249,7 +249,7 @@ ps:核心功能已经实现,正在对接微信小程序中... | @@ -249,7 +249,7 @@ ps:核心功能已经实现,正在对接微信小程序中... | ||
| 249 | 249 | ||
| 250 | | 框架 | 说明 | 版本 | 学习指南 | | 250 | | 框架 | 说明 | 版本 | 学习指南 | |
| 251 | |---------------------------------------------------------------------------------------------|------------------|-------------|----------------------------------------------------------------| | 251 | |---------------------------------------------------------------------------------------------|------------------|-------------|----------------------------------------------------------------| |
| 252 | -| [Spring Boot](https://spring.io/projects/spring-boot) | 应用开发框架 | 2.7.10 | [文档](https://github.com/YunaiV/SpringBoot-Labs) | | 252 | +| [Spring Boot](https://spring.io/projects/spring-boot) | 应用开发框架 | 2.7.11 | [文档](https://github.com/YunaiV/SpringBoot-Labs) | |
| 253 | | [MySQL](https://www.mysql.com/cn/) | 数据库服务器 | 5.7 / 8.0+ | | | 253 | | [MySQL](https://www.mysql.com/cn/) | 数据库服务器 | 5.7 / 8.0+ | | |
| 254 | | [Druid](https://github.com/alibaba/druid) | JDBC 连接池、监控组件 | 1.2.16 | [文档](http://www.iocoder.cn/Spring-Boot/datasource-pool/?yudao) | | 254 | | [Druid](https://github.com/alibaba/druid) | JDBC 连接池、监控组件 | 1.2.16 | [文档](http://www.iocoder.cn/Spring-Boot/datasource-pool/?yudao) | |
| 255 | | [MyBatis Plus](https://mp.baomidou.com/) | MyBatis 增强工具包 | 3.5.3.1 | [文档](http://www.iocoder.cn/Spring-Boot/MyBatis/?yudao) | | 255 | | [MyBatis Plus](https://mp.baomidou.com/) | MyBatis 增强工具包 | 3.5.3.1 | [文档](http://www.iocoder.cn/Spring-Boot/MyBatis/?yudao) | |
| @@ -266,7 +266,7 @@ ps:核心功能已经实现,正在对接微信小程序中... | @@ -266,7 +266,7 @@ ps:核心功能已经实现,正在对接微信小程序中... | ||
| 266 | | [SkyWalking](https://skywalking.apache.org/) | 分布式应用追踪系统 | 8.12.0 | [文档](http://www.iocoder.cn/Spring-Boot/SkyWalking/?yudao) | | 266 | | [SkyWalking](https://skywalking.apache.org/) | 分布式应用追踪系统 | 8.12.0 | [文档](http://www.iocoder.cn/Spring-Boot/SkyWalking/?yudao) | |
| 267 | | [Spring Boot Admin](https://github.com/codecentric/spring-boot-admin) | Spring Boot 监控平台 | 2.7.10 | [文档](http://www.iocoder.cn/Spring-Boot/Admin/?yudao) | | 267 | | [Spring Boot Admin](https://github.com/codecentric/spring-boot-admin) | Spring Boot 监控平台 | 2.7.10 | [文档](http://www.iocoder.cn/Spring-Boot/Admin/?yudao) | |
| 268 | | [Jackson](https://github.com/FasterXML/jackson) | JSON 工具库 | 2.13.3 | | | 268 | | [Jackson](https://github.com/FasterXML/jackson) | JSON 工具库 | 2.13.3 | | |
| 269 | -| [MapStruct](https://mapstruct.org/) | Java Bean 转换 | 1.5.3.Final | [文档](http://www.iocoder.cn/Spring-Boot/MapStruct/?yudao) | | 269 | +| [MapStruct](https://mapstruct.org/) | Java Bean 转换 | 1.5.5.Final | [文档](http://www.iocoder.cn/Spring-Boot/MapStruct/?yudao) | |
| 270 | | [Lombok](https://projectlombok.org/) | 消除冗长的 Java 代码 | 1.18.26 | [文档](http://www.iocoder.cn/Spring-Boot/Lombok/?yudao) | | 270 | | [Lombok](https://projectlombok.org/) | 消除冗长的 Java 代码 | 1.18.26 | [文档](http://www.iocoder.cn/Spring-Boot/Lombok/?yudao) | |
| 271 | | [JUnit](https://junit.org/junit5/) | Java 单元测试框架 | 5.8.2 | - | | 271 | | [JUnit](https://junit.org/junit5/) | Java 单元测试框架 | 5.8.2 | - | |
| 272 | | [Mockito](https://github.com/mockito/mockito) | Java Mock 框架 | 4.8.0 | - | | 272 | | [Mockito](https://github.com/mockito/mockito) | Java Mock 框架 | 4.8.0 | - | |
pom.xml
| @@ -39,8 +39,8 @@ | @@ -39,8 +39,8 @@ | ||
| 39 | <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version> | 39 | <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version> |
| 40 | <!-- 看看咋放到 bom 里 --> | 40 | <!-- 看看咋放到 bom 里 --> |
| 41 | <lombok.version>1.18.26</lombok.version> | 41 | <lombok.version>1.18.26</lombok.version> |
| 42 | - <spring.boot.version>2.7.10</spring.boot.version> | ||
| 43 | - <mapstruct.version>1.5.3.Final</mapstruct.version> | 42 | + <spring.boot.version>2.7.11</spring.boot.version> |
| 43 | + <mapstruct.version>1.5.5.Final</mapstruct.version> | ||
| 44 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | 44 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 45 | </properties> | 45 | </properties> |
| 46 | 46 |
yudao-dependencies/pom.xml
| @@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
| 16 | <properties> | 16 | <properties> |
| 17 | <revision>1.7.2-snapshot</revision> | 17 | <revision>1.7.2-snapshot</revision> |
| 18 | <!-- 统一依赖管理 --> | 18 | <!-- 统一依赖管理 --> |
| 19 | - <spring.boot.version>2.7.10</spring.boot.version> | 19 | + <spring.boot.version>2.7.11</spring.boot.version> |
| 20 | <!-- Web 相关 --> | 20 | <!-- Web 相关 --> |
| 21 | <springdoc.version>1.6.15</springdoc.version> | 21 | <springdoc.version>1.6.15</springdoc.version> |
| 22 | <knife4j.version>4.1.0</knife4j.version> | 22 | <knife4j.version>4.1.0</knife4j.version> |
| @@ -46,9 +46,9 @@ | @@ -46,9 +46,9 @@ | ||
| 46 | <captcha-plus.version>1.0.2</captcha-plus.version> | 46 | <captcha-plus.version>1.0.2</captcha-plus.version> |
| 47 | <jsoup.version>1.15.4</jsoup.version> | 47 | <jsoup.version>1.15.4</jsoup.version> |
| 48 | <lombok.version>1.18.26</lombok.version> | 48 | <lombok.version>1.18.26</lombok.version> |
| 49 | - <mapstruct.version>1.5.3.Final</mapstruct.version> | ||
| 50 | - <hutool.version>5.8.15</hutool.version> | ||
| 51 | - <easyexcel.verion>3.2.1</easyexcel.verion> | 49 | + <mapstruct.version>1.5.5.Final</mapstruct.version> |
| 50 | + <hutool.version>5.8.18</hutool.version> | ||
| 51 | + <easyexcel.verion>3.3.0</easyexcel.verion> | ||
| 52 | <velocity.version>2.3</velocity.version> | 52 | <velocity.version>2.3</velocity.version> |
| 53 | <screw.version>1.0.5</screw.version> | 53 | <screw.version>1.0.5</screw.version> |
| 54 | <fastjson.version>1.2.83</fastjson.version> | 54 | <fastjson.version>1.2.83</fastjson.version> |
yudao-example/yudao-sso-demo-by-code/pom.xml
| @@ -21,7 +21,7 @@ | @@ -21,7 +21,7 @@ | ||
| 21 | <maven.compiler.target>8</maven.compiler.target> | 21 | <maven.compiler.target>8</maven.compiler.target> |
| 22 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | 22 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 23 | <!-- 统一依赖管理 --> | 23 | <!-- 统一依赖管理 --> |
| 24 | - <spring.boot.version>2.7.10</spring.boot.version> | 24 | + <spring.boot.version>2.7.11</spring.boot.version> |
| 25 | </properties> | 25 | </properties> |
| 26 | 26 | ||
| 27 | <dependencyManagement> | 27 | <dependencyManagement> |
| @@ -52,7 +52,7 @@ | @@ -52,7 +52,7 @@ | ||
| 52 | <dependency> | 52 | <dependency> |
| 53 | <groupId>cn.hutool</groupId> | 53 | <groupId>cn.hutool</groupId> |
| 54 | <artifactId>hutool-all</artifactId> | 54 | <artifactId>hutool-all</artifactId> |
| 55 | - <version>5.8.15</version> | 55 | + <version>5.8.18</version> |
| 56 | </dependency> | 56 | </dependency> |
| 57 | 57 | ||
| 58 | <dependency> | 58 | <dependency> |
yudao-example/yudao-sso-demo-by-password/pom.xml
| @@ -21,7 +21,7 @@ | @@ -21,7 +21,7 @@ | ||
| 21 | <maven.compiler.target>8</maven.compiler.target> | 21 | <maven.compiler.target>8</maven.compiler.target> |
| 22 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | 22 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 23 | <!-- 统一依赖管理 --> | 23 | <!-- 统一依赖管理 --> |
| 24 | - <spring.boot.version>2.7.10</spring.boot.version> | 24 | + <spring.boot.version>2.7.11</spring.boot.version> |
| 25 | </properties> | 25 | </properties> |
| 26 | 26 | ||
| 27 | <dependencyManagement> | 27 | <dependencyManagement> |
| @@ -52,7 +52,7 @@ | @@ -52,7 +52,7 @@ | ||
| 52 | <dependency> | 52 | <dependency> |
| 53 | <groupId>cn.hutool</groupId> | 53 | <groupId>cn.hutool</groupId> |
| 54 | <artifactId>hutool-all</artifactId> | 54 | <artifactId>hutool-all</artifactId> |
| 55 | - <version>5.8.15</version> | 55 | + <version>5.8.18</version> |
| 56 | </dependency> | 56 | </dependency> |
| 57 | 57 | ||
| 58 | <dependency> | 58 | <dependency> |
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/pojo/PageParam.java
| @@ -15,12 +15,12 @@ public class PageParam implements Serializable { | @@ -15,12 +15,12 @@ public class PageParam implements Serializable { | ||
| 15 | private static final Integer PAGE_NO = 1; | 15 | private static final Integer PAGE_NO = 1; |
| 16 | private static final Integer PAGE_SIZE = 10; | 16 | private static final Integer PAGE_SIZE = 10; |
| 17 | 17 | ||
| 18 | - @Schema(description = "页码,从 1 开始", required = true,example = "1") | 18 | + @Schema(description = "页码,从 1 开始", requiredMode = Schema.RequiredMode.REQUIRED,example = "1") |
| 19 | @NotNull(message = "页码不能为空") | 19 | @NotNull(message = "页码不能为空") |
| 20 | @Min(value = 1, message = "页码最小值为 1") | 20 | @Min(value = 1, message = "页码最小值为 1") |
| 21 | private Integer pageNo = PAGE_NO; | 21 | private Integer pageNo = PAGE_NO; |
| 22 | 22 | ||
| 23 | - @Schema(description = "每页条数,最大值为 100", required = true, example = "10") | 23 | + @Schema(description = "每页条数,最大值为 100", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 24 | @NotNull(message = "每页条数不能为空") | 24 | @NotNull(message = "每页条数不能为空") |
| 25 | @Min(value = 1, message = "每页条数最小值为 1") | 25 | @Min(value = 1, message = "每页条数最小值为 1") |
| 26 | @Max(value = 100, message = "每页条数最大值为 100") | 26 | @Max(value = 100, message = "每页条数最大值为 100") |
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/pojo/PageResult.java
| @@ -11,10 +11,10 @@ import java.util.List; | @@ -11,10 +11,10 @@ import java.util.List; | ||
| 11 | @Data | 11 | @Data |
| 12 | public final class PageResult<T> implements Serializable { | 12 | public final class PageResult<T> implements Serializable { |
| 13 | 13 | ||
| 14 | - @Schema(description = "数据", required = true) | 14 | + @Schema(description = "数据", requiredMode = Schema.RequiredMode.REQUIRED) |
| 15 | private List<T> list; | 15 | private List<T> list; |
| 16 | 16 | ||
| 17 | - @Schema(description = "总量", required = true) | 17 | + @Schema(description = "总量", requiredMode = Schema.RequiredMode.REQUIRED) |
| 18 | private Long total; | 18 | private Long total; |
| 19 | 19 | ||
| 20 | public PageResult() { | 20 | public PageResult() { |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/form/BpmFormBaseVO.java
| @@ -10,11 +10,11 @@ import javax.validation.constraints.*; | @@ -10,11 +10,11 @@ import javax.validation.constraints.*; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class BpmFormBaseVO { | 11 | public class BpmFormBaseVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "表单名称", required = true, example = "芋道") | 13 | + @Schema(description = "表单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 14 | @NotNull(message = "表单名称不能为空") | 14 | @NotNull(message = "表单名称不能为空") |
| 15 | private String name; | 15 | private String name; |
| 16 | 16 | ||
| 17 | - @Schema(description = "表单状态-参见 CommonStatusEnum 枚举", required = true, example = "1") | 17 | + @Schema(description = "表单状态-参见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 18 | @NotNull(message = "表单状态不能为空") | 18 | @NotNull(message = "表单状态不能为空") |
| 19 | private Integer status; | 19 | private Integer status; |
| 20 | 20 |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/form/BpmFormCreateReqVO.java
| @@ -11,11 +11,11 @@ import java.util.List; | @@ -11,11 +11,11 @@ import java.util.List; | ||
| 11 | @ToString(callSuper = true) | 11 | @ToString(callSuper = true) |
| 12 | public class BpmFormCreateReqVO extends BpmFormBaseVO { | 12 | public class BpmFormCreateReqVO extends BpmFormBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "表单的配置-JSON 字符串", required = true) | 14 | + @Schema(description = "表单的配置-JSON 字符串", requiredMode = Schema.RequiredMode.REQUIRED) |
| 15 | @NotNull(message = "表单的配置不能为空") | 15 | @NotNull(message = "表单的配置不能为空") |
| 16 | private String conf; | 16 | private String conf; |
| 17 | 17 | ||
| 18 | - @Schema(description = "表单项的数组-JSON 字符串的数组", required = true) | 18 | + @Schema(description = "表单项的数组-JSON 字符串的数组", requiredMode = Schema.RequiredMode.REQUIRED) |
| 19 | @NotNull(message = "表单项的数组不能为空") | 19 | @NotNull(message = "表单项的数组不能为空") |
| 20 | private List<String> fields; | 20 | private List<String> fields; |
| 21 | 21 |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/form/BpmFormRespVO.java
| @@ -14,18 +14,18 @@ import java.util.List; | @@ -14,18 +14,18 @@ import java.util.List; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class BpmFormRespVO extends BpmFormBaseVO { | 15 | public class BpmFormRespVO extends BpmFormBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "表单编号", required = true, example = "1024") | 17 | + @Schema(description = "表单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 | ||
| 20 | - @Schema(description = "表单的配置-JSON 字符串", required = true) | 20 | + @Schema(description = "表单的配置-JSON 字符串", requiredMode = Schema.RequiredMode.REQUIRED) |
| 21 | @NotNull(message = "表单的配置不能为空") | 21 | @NotNull(message = "表单的配置不能为空") |
| 22 | private String conf; | 22 | private String conf; |
| 23 | 23 | ||
| 24 | - @Schema(description = "表单项的数组-JSON 字符串的数组", required = true) | 24 | + @Schema(description = "表单项的数组-JSON 字符串的数组", requiredMode = Schema.RequiredMode.REQUIRED) |
| 25 | @NotNull(message = "表单项的数组不能为空") | 25 | @NotNull(message = "表单项的数组不能为空") |
| 26 | private List<String> fields; | 26 | private List<String> fields; |
| 27 | 27 | ||
| 28 | - @Schema(description = "创建时间", required = true) | 28 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 29 | private LocalDateTime createTime; | 29 | private LocalDateTime createTime; |
| 30 | 30 | ||
| 31 | } | 31 | } |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/form/BpmFormSimpleRespVO.java
| @@ -7,10 +7,10 @@ import lombok.Data; | @@ -7,10 +7,10 @@ import lombok.Data; | ||
| 7 | @Data | 7 | @Data |
| 8 | public class BpmFormSimpleRespVO { | 8 | public class BpmFormSimpleRespVO { |
| 9 | 9 | ||
| 10 | - @Schema(description = "表单编号", required = true, example = "1024") | 10 | + @Schema(description = "表单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 11 | private Long id; | 11 | private Long id; |
| 12 | 12 | ||
| 13 | - @Schema(description = "表单名称", required = true, example = "芋道") | 13 | + @Schema(description = "表单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 14 | private String name; | 14 | private String name; |
| 15 | 15 | ||
| 16 | } | 16 | } |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/form/BpmFormUpdateReqVO.java
| @@ -10,15 +10,15 @@ import java.util.List; | @@ -10,15 +10,15 @@ import java.util.List; | ||
| 10 | @ToString(callSuper = true) | 10 | @ToString(callSuper = true) |
| 11 | public class BpmFormUpdateReqVO extends BpmFormBaseVO { | 11 | public class BpmFormUpdateReqVO extends BpmFormBaseVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "表单编号", required = true, example = "1024") | 13 | + @Schema(description = "表单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 14 | @NotNull(message = "表单编号不能为空") | 14 | @NotNull(message = "表单编号不能为空") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "表单的配置-JSON 字符串", required = true) | 17 | + @Schema(description = "表单的配置-JSON 字符串", requiredMode = Schema.RequiredMode.REQUIRED) |
| 18 | @NotNull(message = "表单的配置不能为空") | 18 | @NotNull(message = "表单的配置不能为空") |
| 19 | private String conf; | 19 | private String conf; |
| 20 | 20 | ||
| 21 | - @Schema(description = "表单项的数组-JSON 字符串的数组", required = true) | 21 | + @Schema(description = "表单项的数组-JSON 字符串的数组", requiredMode = Schema.RequiredMode.REQUIRED) |
| 22 | @NotNull(message = "表单项的数组不能为空") | 22 | @NotNull(message = "表单项的数组不能为空") |
| 23 | private List<String> fields; | 23 | private List<String> fields; |
| 24 | 24 |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/group/BpmUserGroupBaseVO.java
| 1 | package cn.iocoder.yudao.module.bpm.controller.admin.definition.vo.group; | 1 | package cn.iocoder.yudao.module.bpm.controller.admin.definition.vo.group; |
| 2 | + | ||
| 2 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 3 | -import lombok.*; | ||
| 4 | -import java.util.*; | ||
| 5 | -import javax.validation.constraints.*; | 4 | +import lombok.Data; |
| 5 | + | ||
| 6 | +import javax.validation.constraints.NotNull; | ||
| 7 | +import java.util.Set; | ||
| 6 | 8 | ||
| 7 | /** | 9 | /** |
| 8 | * 用户组 Base VO,提供给添加、修改、详细的子 VO 使用 | 10 | * 用户组 Base VO,提供给添加、修改、详细的子 VO 使用 |
| @@ -11,19 +13,19 @@ import javax.validation.constraints.*; | @@ -11,19 +13,19 @@ import javax.validation.constraints.*; | ||
| 11 | @Data | 13 | @Data |
| 12 | public class BpmUserGroupBaseVO { | 14 | public class BpmUserGroupBaseVO { |
| 13 | 15 | ||
| 14 | - @Schema(description = "组名", required = true, example = "芋道") | 16 | + @Schema(description = "组名", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 15 | @NotNull(message = "组名不能为空") | 17 | @NotNull(message = "组名不能为空") |
| 16 | private String name; | 18 | private String name; |
| 17 | 19 | ||
| 18 | - @Schema(description = "描述", required = true, example = "芋道源码") | 20 | + @Schema(description = "描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码") |
| 19 | @NotNull(message = "描述不能为空") | 21 | @NotNull(message = "描述不能为空") |
| 20 | private String description; | 22 | private String description; |
| 21 | 23 | ||
| 22 | - @Schema(description = "成员编号数组", required = true, example = "1,2,3") | 24 | + @Schema(description = "成员编号数组", requiredMode = Schema.RequiredMode.REQUIRED, example = "1,2,3") |
| 23 | @NotNull(message = "成员编号数组不能为空") | 25 | @NotNull(message = "成员编号数组不能为空") |
| 24 | private Set<Long> memberUserIds; | 26 | private Set<Long> memberUserIds; |
| 25 | 27 | ||
| 26 | - @Schema(description = "状态", required = true, example = "1") | 28 | + @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 27 | @NotNull(message = "状态不能为空") | 29 | @NotNull(message = "状态不能为空") |
| 28 | private Integer status; | 30 | private Integer status; |
| 29 | 31 |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/group/BpmUserGroupRespVO.java
| 1 | package cn.iocoder.yudao.module.bpm.controller.admin.definition.vo.group; | 1 | package cn.iocoder.yudao.module.bpm.controller.admin.definition.vo.group; |
| 2 | + | ||
| 2 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 3 | import lombok.*; | 4 | import lombok.*; |
| 4 | 5 | ||
| 5 | import java.time.LocalDateTime; | 6 | import java.time.LocalDateTime; |
| 6 | 7 | ||
| 7 | - | ||
| 8 | @Schema(description = "管理后台 - 用户组 Response VO") | 8 | @Schema(description = "管理后台 - 用户组 Response VO") |
| 9 | @Data | 9 | @Data |
| 10 | @EqualsAndHashCode(callSuper = true) | 10 | @EqualsAndHashCode(callSuper = true) |
| 11 | @ToString(callSuper = true) | 11 | @ToString(callSuper = true) |
| 12 | public class BpmUserGroupRespVO extends BpmUserGroupBaseVO { | 12 | public class BpmUserGroupRespVO extends BpmUserGroupBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "编号", required = true, example = "1024") | 14 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "创建时间", required = true) | 17 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 18 | private LocalDateTime createTime; | 18 | private LocalDateTime createTime; |
| 19 | 19 | ||
| 20 | } | 20 | } |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/group/BpmUserGroupSimpleRespVO.java
| @@ -11,10 +11,10 @@ import lombok.NoArgsConstructor; | @@ -11,10 +11,10 @@ import lombok.NoArgsConstructor; | ||
| 11 | @AllArgsConstructor | 11 | @AllArgsConstructor |
| 12 | public class BpmUserGroupSimpleRespVO { | 12 | public class BpmUserGroupSimpleRespVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "用户组编号", required = true, example = "1024") | 14 | + @Schema(description = "用户组编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "用户组名字", required = true, example = "芋道") | 17 | + @Schema(description = "用户组名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 18 | private String name; | 18 | private String name; |
| 19 | 19 | ||
| 20 | } | 20 | } |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/group/BpmUserGroupUpdateReqVO.java
| 1 | package cn.iocoder.yudao.module.bpm.controller.admin.definition.vo.group; | 1 | package cn.iocoder.yudao.module.bpm.controller.admin.definition.vo.group; |
| 2 | + | ||
| 2 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 3 | import lombok.*; | 4 | import lombok.*; |
| 4 | import javax.validation.constraints.*; | 5 | import javax.validation.constraints.*; |
| @@ -9,7 +10,7 @@ import javax.validation.constraints.*; | @@ -9,7 +10,7 @@ import javax.validation.constraints.*; | ||
| 9 | @ToString(callSuper = true) | 10 | @ToString(callSuper = true) |
| 10 | public class BpmUserGroupUpdateReqVO extends BpmUserGroupBaseVO { | 11 | public class BpmUserGroupUpdateReqVO extends BpmUserGroupBaseVO { |
| 11 | 12 | ||
| 12 | - @Schema(description = "编号", required = true, example = "1024") | 13 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 13 | @NotNull(message = "编号不能为空") | 14 | @NotNull(message = "编号不能为空") |
| 14 | private Long id; | 15 | private Long id; |
| 15 | 16 |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/model/BpmModeImportReqVO.java
| @@ -14,7 +14,7 @@ import javax.validation.constraints.NotNull; | @@ -14,7 +14,7 @@ import javax.validation.constraints.NotNull; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class BpmModeImportReqVO extends BpmModelCreateReqVO { | 15 | public class BpmModeImportReqVO extends BpmModelCreateReqVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "BPMN 文件", required = true) | 17 | + @Schema(description = "BPMN 文件", requiredMode = Schema.RequiredMode.REQUIRED) |
| 18 | @NotNull(message = "BPMN 文件不能为空") | 18 | @NotNull(message = "BPMN 文件不能为空") |
| 19 | private MultipartFile bpmnFile; | 19 | private MultipartFile bpmnFile; |
| 20 | 20 |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/model/BpmModelBaseVO.java
| @@ -11,11 +11,11 @@ import javax.validation.constraints.NotEmpty; | @@ -11,11 +11,11 @@ import javax.validation.constraints.NotEmpty; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class BpmModelBaseVO { | 12 | public class BpmModelBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "流程标识", required = true, example = "process_yudao") | 14 | + @Schema(description = "流程标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "process_yudao") |
| 15 | @NotEmpty(message = "流程标识不能为空") | 15 | @NotEmpty(message = "流程标识不能为空") |
| 16 | private String key; | 16 | private String key; |
| 17 | 17 | ||
| 18 | - @Schema(description = "流程名称", required = true, example = "芋道") | 18 | + @Schema(description = "流程名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 19 | @NotEmpty(message = "流程名称不能为空") | 19 | @NotEmpty(message = "流程名称不能为空") |
| 20 | private String name; | 20 | private String name; |
| 21 | 21 |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/model/BpmModelCreateReqVO.java
| @@ -11,11 +11,11 @@ import javax.validation.constraints.NotEmpty; | @@ -11,11 +11,11 @@ import javax.validation.constraints.NotEmpty; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class BpmModelCreateReqVO { | 12 | public class BpmModelCreateReqVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "流程标识", required = true, example = "process_yudao") | 14 | + @Schema(description = "流程标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "process_yudao") |
| 15 | @NotEmpty(message = "流程标识不能为空") | 15 | @NotEmpty(message = "流程标识不能为空") |
| 16 | private String key; | 16 | private String key; |
| 17 | 17 | ||
| 18 | - @Schema(description = "流程名称", required = true, example = "芋道") | 18 | + @Schema(description = "流程名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 19 | @NotEmpty(message = "流程名称不能为空") | 19 | @NotEmpty(message = "流程名称不能为空") |
| 20 | private String name; | 20 | private String name; |
| 21 | 21 |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/model/BpmModelPageItemRespVO.java
| @@ -13,13 +13,13 @@ import java.time.LocalDateTime; | @@ -13,13 +13,13 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class BpmModelPageItemRespVO extends BpmModelBaseVO { | 14 | public class BpmModelPageItemRespVO extends BpmModelBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1024") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private String id; | 17 | private String id; |
| 18 | 18 | ||
| 19 | @Schema(description = "表单名字", example = "请假表单") | 19 | @Schema(description = "表单名字", example = "请假表单") |
| 20 | private String formName; | 20 | private String formName; |
| 21 | 21 | ||
| 22 | - @Schema(description = "创建时间", required = true) | 22 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 23 | private LocalDateTime createTime; | 23 | private LocalDateTime createTime; |
| 24 | 24 | ||
| 25 | /** | 25 | /** |
| @@ -31,16 +31,16 @@ public class BpmModelPageItemRespVO extends BpmModelBaseVO { | @@ -31,16 +31,16 @@ public class BpmModelPageItemRespVO extends BpmModelBaseVO { | ||
| 31 | @Data | 31 | @Data |
| 32 | public static class ProcessDefinition { | 32 | public static class ProcessDefinition { |
| 33 | 33 | ||
| 34 | - @Schema(description = "编号", required = true, example = "1024") | 34 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 35 | private String id; | 35 | private String id; |
| 36 | 36 | ||
| 37 | - @Schema(description = "版本", required = true, example = "1") | 37 | + @Schema(description = "版本", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 38 | private Integer version; | 38 | private Integer version; |
| 39 | 39 | ||
| 40 | - @Schema(description = "部署时间", required = true) | 40 | + @Schema(description = "部署时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 41 | private LocalDateTime deploymentTime; | 41 | private LocalDateTime deploymentTime; |
| 42 | 42 | ||
| 43 | - @Schema(description = "中断状态-参见 SuspensionState 枚举", required = true, example = "1") | 43 | + @Schema(description = "中断状态-参见 SuspensionState 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 44 | private Integer suspensionState; | 44 | private Integer suspensionState; |
| 45 | 45 | ||
| 46 | } | 46 | } |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/model/BpmModelRespVO.java
| @@ -13,13 +13,13 @@ import java.time.LocalDateTime; | @@ -13,13 +13,13 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class BpmModelRespVO extends BpmModelBaseVO { | 14 | public class BpmModelRespVO extends BpmModelBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1024") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private String id; | 17 | private String id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "BPMN XML", required = true) | 19 | + @Schema(description = "BPMN XML", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private String bpmnXml; | 20 | private String bpmnXml; |
| 21 | 21 | ||
| 22 | - @Schema(description = "创建时间", required = true) | 22 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 23 | private LocalDateTime createTime; | 23 | private LocalDateTime createTime; |
| 24 | 24 | ||
| 25 | } | 25 | } |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/model/BpmModelUpdateReqVO.java
| @@ -9,7 +9,7 @@ import javax.validation.constraints.NotEmpty; | @@ -9,7 +9,7 @@ import javax.validation.constraints.NotEmpty; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class BpmModelUpdateReqVO { | 10 | public class BpmModelUpdateReqVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "编号", required = true, example = "1024") | 12 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 13 | @NotEmpty(message = "编号不能为空") | 13 | @NotEmpty(message = "编号不能为空") |
| 14 | private String id; | 14 | private String id; |
| 15 | 15 | ||
| @@ -22,7 +22,7 @@ public class BpmModelUpdateReqVO { | @@ -22,7 +22,7 @@ public class BpmModelUpdateReqVO { | ||
| 22 | @Schema(description = "流程分类-参见 bpm_model_category 数据字典", example = "1") | 22 | @Schema(description = "流程分类-参见 bpm_model_category 数据字典", example = "1") |
| 23 | private String category; | 23 | private String category; |
| 24 | 24 | ||
| 25 | - @Schema(description = "BPMN XML", required = true) | 25 | + @Schema(description = "BPMN XML", requiredMode = Schema.RequiredMode.REQUIRED) |
| 26 | private String bpmnXml; | 26 | private String bpmnXml; |
| 27 | 27 | ||
| 28 | @Schema(description = "表单类型-参见 bpm_model_form_type 数据字典", example = "1") | 28 | @Schema(description = "表单类型-参见 bpm_model_form_type 数据字典", example = "1") |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/model/BpmModelUpdateStateReqVO.java
| @@ -9,11 +9,11 @@ import javax.validation.constraints.NotNull; | @@ -9,11 +9,11 @@ import javax.validation.constraints.NotNull; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class BpmModelUpdateStateReqVO { | 10 | public class BpmModelUpdateStateReqVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "编号", required = true, example = "1024") | 12 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 13 | @NotNull(message = "编号不能为空") | 13 | @NotNull(message = "编号不能为空") |
| 14 | private String id; | 14 | private String id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "状态-见 SuspensionState 枚举", required = true, example = "1") | 16 | + @Schema(description = "状态-见 SuspensionState 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | @NotNull(message = "状态不能为空") | 17 | @NotNull(message = "状态不能为空") |
| 18 | private Integer state; | 18 | private Integer state; |
| 19 | 19 |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/process/BpmProcessDefinitionPageItemRespVO.java
| @@ -16,7 +16,7 @@ public class BpmProcessDefinitionPageItemRespVO extends BpmProcessDefinitionResp | @@ -16,7 +16,7 @@ public class BpmProcessDefinitionPageItemRespVO extends BpmProcessDefinitionResp | ||
| 16 | @Schema(description = "表单名字", example = "请假表单") | 16 | @Schema(description = "表单名字", example = "请假表单") |
| 17 | private String formName; | 17 | private String formName; |
| 18 | 18 | ||
| 19 | - @Schema(description = "部署时间", required = true) | 19 | + @Schema(description = "部署时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private LocalDateTime deploymentTime; | 20 | private LocalDateTime deploymentTime; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/process/BpmProcessDefinitionRespVO.java
| @@ -4,20 +4,19 @@ import io.swagger.v3.oas.annotations.media.Schema; | @@ -4,20 +4,19 @@ import io.swagger.v3.oas.annotations.media.Schema; | ||
| 4 | import lombok.Data; | 4 | import lombok.Data; |
| 5 | 5 | ||
| 6 | import javax.validation.constraints.NotEmpty; | 6 | import javax.validation.constraints.NotEmpty; |
| 7 | -import javax.validation.constraints.NotNull; | ||
| 8 | import java.util.List; | 7 | import java.util.List; |
| 9 | 8 | ||
| 10 | @Schema(description = "管理后台 - 流程定义 Response VO") | 9 | @Schema(description = "管理后台 - 流程定义 Response VO") |
| 11 | @Data | 10 | @Data |
| 12 | public class BpmProcessDefinitionRespVO { | 11 | public class BpmProcessDefinitionRespVO { |
| 13 | 12 | ||
| 14 | - @Schema(description = "编号", required = true, example = "1024") | 13 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | private String id; | 14 | private String id; |
| 16 | 15 | ||
| 17 | - @Schema(description = "版本", required = true, example = "1") | 16 | + @Schema(description = "版本", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 18 | private Integer version; | 17 | private Integer version; |
| 19 | 18 | ||
| 20 | - @Schema(description = "流程名称", required = true, example = "芋道") | 19 | + @Schema(description = "流程名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 21 | @NotEmpty(message = "流程名称不能为空") | 20 | @NotEmpty(message = "流程名称不能为空") |
| 22 | private String name; | 21 | private String name; |
| 23 | 22 | ||
| @@ -32,9 +31,9 @@ public class BpmProcessDefinitionRespVO { | @@ -32,9 +31,9 @@ public class BpmProcessDefinitionRespVO { | ||
| 32 | private Integer formType; | 31 | private Integer formType; |
| 33 | @Schema(description = "表单编号-在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", example = "1024") | 32 | @Schema(description = "表单编号-在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", example = "1024") |
| 34 | private Long formId; | 33 | private Long formId; |
| 35 | - @Schema(description = "表单的配置-JSON 字符串。在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", required = true) | 34 | + @Schema(description = "表单的配置-JSON 字符串。在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", requiredMode = Schema.RequiredMode.REQUIRED) |
| 36 | private String formConf; | 35 | private String formConf; |
| 37 | - @Schema(description = "表单项的数组-JSON 字符串的数组。在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", required = true) | 36 | + @Schema(description = "表单项的数组-JSON 字符串的数组。在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", requiredMode = Schema.RequiredMode.REQUIRED) |
| 38 | private List<String> formFields; | 37 | private List<String> formFields; |
| 39 | @Schema(description = "自定义表单的提交路径,使用 Vue 的路由地址-在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", | 38 | @Schema(description = "自定义表单的提交路径,使用 Vue 的路由地址-在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", |
| 40 | example = "/bpm/oa/leave/create") | 39 | example = "/bpm/oa/leave/create") |
| @@ -43,7 +42,7 @@ public class BpmProcessDefinitionRespVO { | @@ -43,7 +42,7 @@ public class BpmProcessDefinitionRespVO { | ||
| 43 | example = "/bpm/oa/leave/view") | 42 | example = "/bpm/oa/leave/view") |
| 44 | private String formCustomViewPath; | 43 | private String formCustomViewPath; |
| 45 | 44 | ||
| 46 | - @Schema(description = "中断状态-参见 SuspensionState 枚举", required = true, example = "1") | 45 | + @Schema(description = "中断状态-参见 SuspensionState 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 47 | private Integer suspensionState; | 46 | private Integer suspensionState; |
| 48 | 47 | ||
| 49 | } | 48 | } |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/rule/BpmTaskAssignRuleBaseVO.java
| 1 | package cn.iocoder.yudao.module.bpm.controller.admin.definition.vo.rule; | 1 | package cn.iocoder.yudao.module.bpm.controller.admin.definition.vo.rule; |
| 2 | + | ||
| 2 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 3 | import lombok.Data; | 4 | import lombok.Data; |
| 4 | 5 | ||
| 5 | -import javax.validation.constraints.NotEmpty; | ||
| 6 | import javax.validation.constraints.NotNull; | 6 | import javax.validation.constraints.NotNull; |
| 7 | import java.util.Set; | 7 | import java.util.Set; |
| 8 | 8 | ||
| @@ -13,11 +13,11 @@ import java.util.Set; | @@ -13,11 +13,11 @@ import java.util.Set; | ||
| 13 | @Data | 13 | @Data |
| 14 | public class BpmTaskAssignRuleBaseVO { | 14 | public class BpmTaskAssignRuleBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "规则类型", required = true, example = "bpm_task_assign_rule_type") | 16 | + @Schema(description = "规则类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "bpm_task_assign_rule_type") |
| 17 | @NotNull(message = "规则类型不能为空") | 17 | @NotNull(message = "规则类型不能为空") |
| 18 | private Integer type; | 18 | private Integer type; |
| 19 | 19 | ||
| 20 | - @Schema(description = "规则值数组", required = true, example = "1,2,3") | 20 | + @Schema(description = "规则值数组", requiredMode = Schema.RequiredMode.REQUIRED, example = "1,2,3") |
| 21 | @NotNull(message = "规则值数组不能为空") | 21 | @NotNull(message = "规则值数组不能为空") |
| 22 | private Set<Long> options; | 22 | private Set<Long> options; |
| 23 | 23 |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/rule/BpmTaskAssignRuleCreateReqVO.java
| @@ -13,11 +13,11 @@ import javax.validation.constraints.NotEmpty; | @@ -13,11 +13,11 @@ import javax.validation.constraints.NotEmpty; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class BpmTaskAssignRuleCreateReqVO extends BpmTaskAssignRuleBaseVO { | 14 | public class BpmTaskAssignRuleCreateReqVO extends BpmTaskAssignRuleBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "流程模型的编号", required = true, example = "1024") | 16 | + @Schema(description = "流程模型的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotEmpty(message = "流程模型的编号不能为空") | 17 | @NotEmpty(message = "流程模型的编号不能为空") |
| 18 | private String modelId; | 18 | private String modelId; |
| 19 | 19 | ||
| 20 | - @Schema(description = "流程任务定义的编号", required = true, example = "2048") | 20 | + @Schema(description = "流程任务定义的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 21 | @NotEmpty(message = "流程任务定义的编号不能为空") | 21 | @NotEmpty(message = "流程任务定义的编号不能为空") |
| 22 | private String taskDefinitionKey; | 22 | private String taskDefinitionKey; |
| 23 | 23 |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/rule/BpmTaskAssignRuleRespVO.java
| @@ -11,18 +11,18 @@ import lombok.ToString; | @@ -11,18 +11,18 @@ import lombok.ToString; | ||
| 11 | @ToString(callSuper = true) | 11 | @ToString(callSuper = true) |
| 12 | public class BpmTaskAssignRuleRespVO extends BpmTaskAssignRuleBaseVO { | 12 | public class BpmTaskAssignRuleRespVO extends BpmTaskAssignRuleBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "任务分配规则的编号", required = true, example = "1024") | 14 | + @Schema(description = "任务分配规则的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "流程模型的编号", required = true, example = "2048") | 17 | + @Schema(description = "流程模型的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 18 | private String modelId; | 18 | private String modelId; |
| 19 | 19 | ||
| 20 | - @Schema(description = "流程定义的编号", required = true, example = "4096") | 20 | + @Schema(description = "流程定义的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "4096") |
| 21 | private String processDefinitionId; | 21 | private String processDefinitionId; |
| 22 | 22 | ||
| 23 | - @Schema(description = "流程任务定义的编号", required = true, example = "2048") | 23 | + @Schema(description = "流程任务定义的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 24 | private String taskDefinitionKey; | 24 | private String taskDefinitionKey; |
| 25 | - @Schema(description = "流程任务定义的名字", required = true, example = "关注芋道") | 25 | + @Schema(description = "流程任务定义的名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "关注芋道") |
| 26 | private String taskDefinitionName; | 26 | private String taskDefinitionName; |
| 27 | 27 | ||
| 28 | } | 28 | } |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/rule/BpmTaskAssignRuleUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class BpmTaskAssignRuleUpdateReqVO extends BpmTaskAssignRuleBaseVO { | 14 | public class BpmTaskAssignRuleUpdateReqVO extends BpmTaskAssignRuleBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "任务分配规则的编号", required = true, example = "1024") | 16 | + @Schema(description = "任务分配规则的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "任务分配规则的编号不能为空") | 17 | @NotNull(message = "任务分配规则的编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/oa/vo/BpmOALeaveBaseVO.java
| 1 | package cn.iocoder.yudao.module.bpm.controller.admin.oa.vo; | 1 | package cn.iocoder.yudao.module.bpm.controller.admin.oa.vo; |
| 2 | + | ||
| 2 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 3 | import lombok.*; | 4 | import lombok.*; |
| 4 | import java.time.LocalDateTime; | 5 | import java.time.LocalDateTime; |
| @@ -14,19 +15,19 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | @@ -14,19 +15,19 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | ||
| 14 | @Data | 15 | @Data |
| 15 | public class BpmOALeaveBaseVO { | 16 | public class BpmOALeaveBaseVO { |
| 16 | 17 | ||
| 17 | - @Schema(description = "请假的开始时间", required = true) | 18 | + @Schema(description = "请假的开始时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 18 | @NotNull(message = "开始时间不能为空") | 19 | @NotNull(message = "开始时间不能为空") |
| 19 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 20 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
| 20 | private LocalDateTime startTime; | 21 | private LocalDateTime startTime; |
| 21 | - @Schema(description = "请假的结束时间", required = true) | 22 | + @Schema(description = "请假的结束时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 22 | @NotNull(message = "结束时间不能为空") | 23 | @NotNull(message = "结束时间不能为空") |
| 23 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 24 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
| 24 | private LocalDateTime endTime; | 25 | private LocalDateTime endTime; |
| 25 | 26 | ||
| 26 | - @Schema(description = "请假类型-参见 bpm_oa_type 枚举", required = true, example = "1") | 27 | + @Schema(description = "请假类型-参见 bpm_oa_type 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 27 | private Integer type; | 28 | private Integer type; |
| 28 | 29 | ||
| 29 | - @Schema(description = "原因", required = true, example = "阅读芋道源码") | 30 | + @Schema(description = "原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "阅读芋道源码") |
| 30 | private String reason; | 31 | private String reason; |
| 31 | 32 | ||
| 32 | } | 33 | } |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/oa/vo/BpmOALeaveRespVO.java
| 1 | package cn.iocoder.yudao.module.bpm.controller.admin.oa.vo; | 1 | package cn.iocoder.yudao.module.bpm.controller.admin.oa.vo; |
| 2 | + | ||
| 2 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 3 | import lombok.*; | 4 | import lombok.*; |
| 4 | import org.springframework.format.annotation.DateTimeFormat; | 5 | import org.springframework.format.annotation.DateTimeFormat; |
| @@ -14,13 +15,13 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | @@ -14,13 +15,13 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | ||
| 14 | @ToString(callSuper = true) | 15 | @ToString(callSuper = true) |
| 15 | public class BpmOALeaveRespVO extends BpmOALeaveBaseVO { | 16 | public class BpmOALeaveRespVO extends BpmOALeaveBaseVO { |
| 16 | 17 | ||
| 17 | - @Schema(description = "请假表单主键", required = true, example = "1024") | 18 | + @Schema(description = "请假表单主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 18 | private Long id; | 19 | private Long id; |
| 19 | 20 | ||
| 20 | - @Schema(description = "状态-参见 bpm_process_instance_result 枚举", required = true, example = "1") | 21 | + @Schema(description = "状态-参见 bpm_process_instance_result 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 21 | private Integer result; | 22 | private Integer result; |
| 22 | 23 | ||
| 23 | - @Schema(description = "申请时间", required = true) | 24 | + @Schema(description = "申请时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 24 | @NotNull(message = "申请时间不能为空") | 25 | @NotNull(message = "申请时间不能为空") |
| 25 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 26 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
| 26 | private LocalDateTime createTime; | 27 | private LocalDateTime createTime; |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/task/vo/activity/BpmActivityRespVO.java
| @@ -9,14 +9,14 @@ import java.time.LocalDateTime; | @@ -9,14 +9,14 @@ import java.time.LocalDateTime; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class BpmActivityRespVO { | 10 | public class BpmActivityRespVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "流程活动的标识", required = true, example = "1024") | 12 | + @Schema(description = "流程活动的标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 13 | private String key; | 13 | private String key; |
| 14 | - @Schema(description = "流程活动的类型", required = true, example = "StartEvent") | 14 | + @Schema(description = "流程活动的类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "StartEvent") |
| 15 | private String type; | 15 | private String type; |
| 16 | 16 | ||
| 17 | - @Schema(description = "流程活动的开始时间", required = true) | 17 | + @Schema(description = "流程活动的开始时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 18 | private LocalDateTime startTime; | 18 | private LocalDateTime startTime; |
| 19 | - @Schema(description = "流程活动的结束时间", required = true) | 19 | + @Schema(description = "流程活动的结束时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private LocalDateTime endTime; | 20 | private LocalDateTime endTime; |
| 21 | 21 | ||
| 22 | @Schema(description = "关联的流程任务的编号-关联的流程任务,只有 UserTask 等类型才有", example = "2048") | 22 | @Schema(description = "关联的流程任务的编号-关联的流程任务,只有 UserTask 等类型才有", example = "2048") |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/task/vo/instance/BpmProcessInstanceCancelReqVO.java
| @@ -4,18 +4,16 @@ import io.swagger.v3.oas.annotations.media.Schema; | @@ -4,18 +4,16 @@ import io.swagger.v3.oas.annotations.media.Schema; | ||
| 4 | import lombok.Data; | 4 | import lombok.Data; |
| 5 | 5 | ||
| 6 | import javax.validation.constraints.NotEmpty; | 6 | import javax.validation.constraints.NotEmpty; |
| 7 | -import javax.validation.constraints.NotNull; | ||
| 8 | -import java.util.Map; | ||
| 9 | 7 | ||
| 10 | @Schema(description = "管理后台 - 流程实例的取消 Request VO") | 8 | @Schema(description = "管理后台 - 流程实例的取消 Request VO") |
| 11 | @Data | 9 | @Data |
| 12 | public class BpmProcessInstanceCancelReqVO { | 10 | public class BpmProcessInstanceCancelReqVO { |
| 13 | 11 | ||
| 14 | - @Schema(description = "流程实例的编号", required = true, example = "1024") | 12 | + @Schema(description = "流程实例的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | @NotEmpty(message = "流程实例的编号不能为空") | 13 | @NotEmpty(message = "流程实例的编号不能为空") |
| 16 | private String id; | 14 | private String id; |
| 17 | 15 | ||
| 18 | - @Schema(description = "取消原因", required = true, example = "不请假了!") | 16 | + @Schema(description = "取消原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "不请假了!") |
| 19 | @NotEmpty(message = "取消原因不能为空") | 17 | @NotEmpty(message = "取消原因不能为空") |
| 20 | private String reason; | 18 | private String reason; |
| 21 | 19 |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/task/vo/instance/BpmProcessInstanceCreateReqVO.java
| @@ -10,7 +10,7 @@ import java.util.Map; | @@ -10,7 +10,7 @@ import java.util.Map; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class BpmProcessInstanceCreateReqVO { | 11 | public class BpmProcessInstanceCreateReqVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "流程定义的编号", required = true, example = "1024") | 13 | + @Schema(description = "流程定义的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 14 | @NotEmpty(message = "流程定义编号不能为空") | 14 | @NotEmpty(message = "流程定义编号不能为空") |
| 15 | private String processDefinitionId; | 15 | private String processDefinitionId; |
| 16 | 16 |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/task/vo/instance/BpmProcessInstancePageItemRespVO.java
| @@ -10,28 +10,28 @@ import java.util.List; | @@ -10,28 +10,28 @@ import java.util.List; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class BpmProcessInstancePageItemRespVO { | 11 | public class BpmProcessInstancePageItemRespVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "流程实例的编号", required = true, example = "1024") | 13 | + @Schema(description = "流程实例的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 14 | private String id; | 14 | private String id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "流程名称", required = true, example = "芋道") | 16 | + @Schema(description = "流程名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 17 | private String name; | 17 | private String name; |
| 18 | 18 | ||
| 19 | - @Schema(description = "流程定义的编号", required = true, example = "2048") | 19 | + @Schema(description = "流程定义的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 20 | private String processDefinitionId; | 20 | private String processDefinitionId; |
| 21 | 21 | ||
| 22 | - @Schema(description = "流程分类-参见 bpm_model_category 数据字典", required = true, example = "1") | 22 | + @Schema(description = "流程分类-参见 bpm_model_category 数据字典", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 23 | private String category; | 23 | private String category; |
| 24 | 24 | ||
| 25 | - @Schema(description = "流程实例的状态-参见 bpm_process_instance_status", required = true, example = "1") | 25 | + @Schema(description = "流程实例的状态-参见 bpm_process_instance_status", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 26 | private Integer status; | 26 | private Integer status; |
| 27 | 27 | ||
| 28 | - @Schema(description = "流程实例的结果-参见 bpm_process_instance_result", required = true, example = "2") | 28 | + @Schema(description = "流程实例的结果-参见 bpm_process_instance_result", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
| 29 | private Integer result; | 29 | private Integer result; |
| 30 | 30 | ||
| 31 | - @Schema(description = "提交时间", required = true) | 31 | + @Schema(description = "提交时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 32 | private LocalDateTime createTime; | 32 | private LocalDateTime createTime; |
| 33 | 33 | ||
| 34 | - @Schema(description = "结束时间", required = true) | 34 | + @Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 35 | private LocalDateTime endTime; | 35 | private LocalDateTime endTime; |
| 36 | 36 | ||
| 37 | /** | 37 | /** |
| @@ -43,10 +43,10 @@ public class BpmProcessInstancePageItemRespVO { | @@ -43,10 +43,10 @@ public class BpmProcessInstancePageItemRespVO { | ||
| 43 | @Data | 43 | @Data |
| 44 | public static class Task { | 44 | public static class Task { |
| 45 | 45 | ||
| 46 | - @Schema(description = "流程任务的编号", required = true, example = "1024") | 46 | + @Schema(description = "流程任务的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 47 | private String id; | 47 | private String id; |
| 48 | 48 | ||
| 49 | - @Schema(description = "任务名称", required = true, example = "芋道") | 49 | + @Schema(description = "任务名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 50 | private String name; | 50 | private String name; |
| 51 | 51 | ||
| 52 | } | 52 | } |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/task/vo/instance/BpmProcessInstanceRespVO.java
| @@ -11,28 +11,28 @@ import java.util.Map; | @@ -11,28 +11,28 @@ import java.util.Map; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class BpmProcessInstanceRespVO { | 12 | public class BpmProcessInstanceRespVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "流程实例的编号", required = true, example = "1024") | 14 | + @Schema(description = "流程实例的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | private String id; | 15 | private String id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "流程名称", required = true, example = "芋道") | 17 | + @Schema(description = "流程名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 18 | private String name; | 18 | private String name; |
| 19 | 19 | ||
| 20 | - @Schema(description = "流程分类-参见 bpm_model_category 数据字典", required = true, example = "1") | 20 | + @Schema(description = "流程分类-参见 bpm_model_category 数据字典", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 21 | private String category; | 21 | private String category; |
| 22 | 22 | ||
| 23 | - @Schema(description = "流程实例的状态-参见 bpm_process_instance_status", required = true, example = "1") | 23 | + @Schema(description = "流程实例的状态-参见 bpm_process_instance_status", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 24 | private Integer status; | 24 | private Integer status; |
| 25 | 25 | ||
| 26 | - @Schema(description = "流程实例的结果-参见 bpm_process_instance_result", required = true, example = "2") | 26 | + @Schema(description = "流程实例的结果-参见 bpm_process_instance_result", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
| 27 | private Integer result; | 27 | private Integer result; |
| 28 | 28 | ||
| 29 | - @Schema(description = "提交时间", required = true) | 29 | + @Schema(description = "提交时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 30 | private LocalDateTime createTime; | 30 | private LocalDateTime createTime; |
| 31 | 31 | ||
| 32 | - @Schema(description = "结束时间", required = true) | 32 | + @Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 33 | private LocalDateTime endTime; | 33 | private LocalDateTime endTime; |
| 34 | 34 | ||
| 35 | - @Schema(description = "提交的表单值", required = true) | 35 | + @Schema(description = "提交的表单值", requiredMode = Schema.RequiredMode.REQUIRED) |
| 36 | private Map<String, Object> formVariables; | 36 | private Map<String, Object> formVariables; |
| 37 | 37 | ||
| 38 | @Schema(description = "业务的唯一标识-例如说,请假申请的编号", example = "1") | 38 | @Schema(description = "业务的唯一标识-例如说,请假申请的编号", example = "1") |
| @@ -52,14 +52,14 @@ public class BpmProcessInstanceRespVO { | @@ -52,14 +52,14 @@ public class BpmProcessInstanceRespVO { | ||
| 52 | @Data | 52 | @Data |
| 53 | public static class User { | 53 | public static class User { |
| 54 | 54 | ||
| 55 | - @Schema(description = "用户编号", required = true, example = "1") | 55 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 56 | private Long id; | 56 | private Long id; |
| 57 | - @Schema(description = "用户昵称", required = true, example = "芋艿") | 57 | + @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿") |
| 58 | private String nickname; | 58 | private String nickname; |
| 59 | 59 | ||
| 60 | - @Schema(description = "部门编号", required = true, example = "1") | 60 | + @Schema(description = "部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 61 | private Long deptId; | 61 | private Long deptId; |
| 62 | - @Schema(description = "部门名称", required = true, example = "研发部") | 62 | + @Schema(description = "部门名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "研发部") |
| 63 | private String deptName; | 63 | private String deptName; |
| 64 | 64 | ||
| 65 | } | 65 | } |
| @@ -68,16 +68,16 @@ public class BpmProcessInstanceRespVO { | @@ -68,16 +68,16 @@ public class BpmProcessInstanceRespVO { | ||
| 68 | @Data | 68 | @Data |
| 69 | public static class ProcessDefinition { | 69 | public static class ProcessDefinition { |
| 70 | 70 | ||
| 71 | - @Schema(description = "编号", required = true, example = "1024") | 71 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 72 | private String id; | 72 | private String id; |
| 73 | 73 | ||
| 74 | @Schema(description = "表单类型-参见 bpm_model_form_type 数据字典", example = "1") | 74 | @Schema(description = "表单类型-参见 bpm_model_form_type 数据字典", example = "1") |
| 75 | private Integer formType; | 75 | private Integer formType; |
| 76 | @Schema(description = "表单编号-在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", example = "1024") | 76 | @Schema(description = "表单编号-在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", example = "1024") |
| 77 | private Long formId; | 77 | private Long formId; |
| 78 | - @Schema(description = "表单的配置-JSON 字符串。在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", required = true) | 78 | + @Schema(description = "表单的配置-JSON 字符串。在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", requiredMode = Schema.RequiredMode.REQUIRED) |
| 79 | private String formConf; | 79 | private String formConf; |
| 80 | - @Schema(description = "表单项的数组-JSON 字符串的数组。在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", required = true) | 80 | + @Schema(description = "表单项的数组-JSON 字符串的数组。在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", requiredMode = Schema.RequiredMode.REQUIRED) |
| 81 | private List<String> formFields; | 81 | private List<String> formFields; |
| 82 | @Schema(description = "自定义表单的提交路径,使用 Vue 的路由地址-在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", | 82 | @Schema(description = "自定义表单的提交路径,使用 Vue 的路由地址-在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", |
| 83 | example = "/bpm/oa/leave/create") | 83 | example = "/bpm/oa/leave/create") |
| @@ -86,7 +86,7 @@ public class BpmProcessInstanceRespVO { | @@ -86,7 +86,7 @@ public class BpmProcessInstanceRespVO { | ||
| 86 | example = "/bpm/oa/leave/view") | 86 | example = "/bpm/oa/leave/view") |
| 87 | private String formCustomViewPath; | 87 | private String formCustomViewPath; |
| 88 | 88 | ||
| 89 | - @Schema(description = "BPMN XML", required = true) | 89 | + @Schema(description = "BPMN XML", requiredMode = Schema.RequiredMode.REQUIRED) |
| 90 | private String bpmnXml; | 90 | private String bpmnXml; |
| 91 | 91 | ||
| 92 | } | 92 | } |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/task/vo/task/BpmTaskApproveReqVO.java
| @@ -9,11 +9,11 @@ import javax.validation.constraints.NotEmpty; | @@ -9,11 +9,11 @@ import javax.validation.constraints.NotEmpty; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class BpmTaskApproveReqVO { | 10 | public class BpmTaskApproveReqVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "任务编号", required = true, example = "1024") | 12 | + @Schema(description = "任务编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 13 | @NotEmpty(message = "任务编号不能为空") | 13 | @NotEmpty(message = "任务编号不能为空") |
| 14 | private String id; | 14 | private String id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "审批意见", required = true, example = "不错不错!") | 16 | + @Schema(description = "审批意见", requiredMode = Schema.RequiredMode.REQUIRED, example = "不错不错!") |
| 17 | @NotEmpty(message = "审批意见不能为空") | 17 | @NotEmpty(message = "审批意见不能为空") |
| 18 | private String reason; | 18 | private String reason; |
| 19 | 19 |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/task/vo/task/BpmTaskDonePageItemRespVO.java
| @@ -13,14 +13,14 @@ import java.time.LocalDateTime; | @@ -13,14 +13,14 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class BpmTaskDonePageItemRespVO extends BpmTaskTodoPageItemRespVO { | 14 | public class BpmTaskDonePageItemRespVO extends BpmTaskTodoPageItemRespVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "结束时间", required = true) | 16 | + @Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 17 | private LocalDateTime endTime; | 17 | private LocalDateTime endTime; |
| 18 | - @Schema(description = "持续时间", required = true, example = "1000") | 18 | + @Schema(description = "持续时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "1000") |
| 19 | private Long durationInMillis; | 19 | private Long durationInMillis; |
| 20 | 20 | ||
| 21 | - @Schema(description = "任务结果-参见 bpm_process_instance_result", required = true, example = "2") | 21 | + @Schema(description = "任务结果-参见 bpm_process_instance_result", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
| 22 | private Integer result; | 22 | private Integer result; |
| 23 | - @Schema(description = "审批建议", required = true, example = "不请假了!") | 23 | + @Schema(description = "审批建议", requiredMode = Schema.RequiredMode.REQUIRED, example = "不请假了!") |
| 24 | private String reason; | 24 | private String reason; |
| 25 | 25 | ||
| 26 | } | 26 | } |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/task/vo/task/BpmTaskRejectReqVO.java
| @@ -9,11 +9,11 @@ import javax.validation.constraints.NotEmpty; | @@ -9,11 +9,11 @@ import javax.validation.constraints.NotEmpty; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class BpmTaskRejectReqVO { | 10 | public class BpmTaskRejectReqVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "任务编号", required = true, example = "1024") | 12 | + @Schema(description = "任务编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 13 | @NotEmpty(message = "任务编号不能为空") | 13 | @NotEmpty(message = "任务编号不能为空") |
| 14 | private String id; | 14 | private String id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "审批意见", required = true, example = "不错不错!") | 16 | + @Schema(description = "审批意见", requiredMode = Schema.RequiredMode.REQUIRED, example = "不错不错!") |
| 17 | @NotEmpty(message = "审批意见不能为空") | 17 | @NotEmpty(message = "审批意见不能为空") |
| 18 | private String reason; | 18 | private String reason; |
| 19 | 19 |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/task/vo/task/BpmTaskRespVO.java
| @@ -11,7 +11,7 @@ import lombok.ToString; | @@ -11,7 +11,7 @@ import lombok.ToString; | ||
| 11 | @ToString(callSuper = true) | 11 | @ToString(callSuper = true) |
| 12 | public class BpmTaskRespVO extends BpmTaskDonePageItemRespVO { | 12 | public class BpmTaskRespVO extends BpmTaskDonePageItemRespVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "任务定义的标识", required = true, example = "user-001") | 14 | + @Schema(description = "任务定义的标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "user-001") |
| 15 | private String definitionKey; | 15 | private String definitionKey; |
| 16 | 16 | ||
| 17 | /** | 17 | /** |
| @@ -23,14 +23,14 @@ public class BpmTaskRespVO extends BpmTaskDonePageItemRespVO { | @@ -23,14 +23,14 @@ public class BpmTaskRespVO extends BpmTaskDonePageItemRespVO { | ||
| 23 | @Data | 23 | @Data |
| 24 | public static class User { | 24 | public static class User { |
| 25 | 25 | ||
| 26 | - @Schema(description = "用户编号", required = true, example = "1") | 26 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 27 | private Long id; | 27 | private Long id; |
| 28 | - @Schema(description = "用户昵称", required = true, example = "芋艿") | 28 | + @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿") |
| 29 | private String nickname; | 29 | private String nickname; |
| 30 | 30 | ||
| 31 | - @Schema(description = "部门编号", required = true, example = "1") | 31 | + @Schema(description = "部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 32 | private Long deptId; | 32 | private Long deptId; |
| 33 | - @Schema(description = "部门名称", required = true, example = "研发部") | 33 | + @Schema(description = "部门名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "研发部") |
| 34 | private String deptName; | 34 | private String deptName; |
| 35 | 35 | ||
| 36 | } | 36 | } |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/task/vo/task/BpmTaskTodoPageItemRespVO.java
| @@ -9,19 +9,19 @@ import java.time.LocalDateTime; | @@ -9,19 +9,19 @@ import java.time.LocalDateTime; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class BpmTaskTodoPageItemRespVO { | 10 | public class BpmTaskTodoPageItemRespVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "任务编号", required = true, example = "1024") | 12 | + @Schema(description = "任务编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 13 | private String id; | 13 | private String id; |
| 14 | 14 | ||
| 15 | - @Schema(description = "任务名字", required = true, example = "芋道") | 15 | + @Schema(description = "任务名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 16 | private String name; | 16 | private String name; |
| 17 | 17 | ||
| 18 | - @Schema(description = "接收时间", required = true) | 18 | + @Schema(description = "接收时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 19 | private LocalDateTime claimTime; | 19 | private LocalDateTime claimTime; |
| 20 | 20 | ||
| 21 | - @Schema(description = "创建时间", required = true) | 21 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 22 | private LocalDateTime createTime; | 22 | private LocalDateTime createTime; |
| 23 | 23 | ||
| 24 | - @Schema(description = "激活状态-参见 SuspensionState 枚举", required = true, example = "1") | 24 | + @Schema(description = "激活状态-参见 SuspensionState 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 25 | private Integer suspensionState; | 25 | private Integer suspensionState; |
| 26 | 26 | ||
| 27 | /** | 27 | /** |
| @@ -33,19 +33,19 @@ public class BpmTaskTodoPageItemRespVO { | @@ -33,19 +33,19 @@ public class BpmTaskTodoPageItemRespVO { | ||
| 33 | @Schema(description = "流程实例") | 33 | @Schema(description = "流程实例") |
| 34 | public static class ProcessInstance { | 34 | public static class ProcessInstance { |
| 35 | 35 | ||
| 36 | - @Schema(description = "流程实例编号", required = true, example = "1024") | 36 | + @Schema(description = "流程实例编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 37 | private String id; | 37 | private String id; |
| 38 | 38 | ||
| 39 | - @Schema(description = "流程实例名称", required = true, example = "芋道") | 39 | + @Schema(description = "流程实例名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 40 | private String name; | 40 | private String name; |
| 41 | 41 | ||
| 42 | - @Schema(description = "发起人的用户编号", required = true, example = "1024") | 42 | + @Schema(description = "发起人的用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 43 | private Long startUserId; | 43 | private Long startUserId; |
| 44 | 44 | ||
| 45 | - @Schema(description = "发起人的用户昵称", required = true, example = "芋艿") | 45 | + @Schema(description = "发起人的用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿") |
| 46 | private String startUserNickname; | 46 | private String startUserNickname; |
| 47 | 47 | ||
| 48 | - @Schema(description = "流程定义的编号", required = true, example = "2048") | 48 | + @Schema(description = "流程定义的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 49 | private String processDefinitionId; | 49 | private String processDefinitionId; |
| 50 | 50 | ||
| 51 | } | 51 | } |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/task/vo/task/BpmTaskUpdateAssigneeReqVO.java
| @@ -2,9 +2,6 @@ package cn.iocoder.yudao.module.bpm.controller.admin.task.vo.task; | @@ -2,9 +2,6 @@ package cn.iocoder.yudao.module.bpm.controller.admin.task.vo.task; | ||
| 2 | 2 | ||
| 3 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 4 | import lombok.Data; | 4 | import lombok.Data; |
| 5 | -import lombok.EqualsAndHashCode; | ||
| 6 | -import lombok.ToString; | ||
| 7 | -import net.bytebuddy.implementation.bind.annotation.Empty; | ||
| 8 | 5 | ||
| 9 | import javax.validation.constraints.NotEmpty; | 6 | import javax.validation.constraints.NotEmpty; |
| 10 | import javax.validation.constraints.NotNull; | 7 | import javax.validation.constraints.NotNull; |
| @@ -13,11 +10,11 @@ import javax.validation.constraints.NotNull; | @@ -13,11 +10,11 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @Data | 10 | @Data |
| 14 | public class BpmTaskUpdateAssigneeReqVO { | 11 | public class BpmTaskUpdateAssigneeReqVO { |
| 15 | 12 | ||
| 16 | - @Schema(description = "任务编号", required = true, example = "1024") | 13 | + @Schema(description = "任务编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotEmpty(message = "任务编号不能为空") | 14 | @NotEmpty(message = "任务编号不能为空") |
| 18 | private String id; | 15 | private String id; |
| 19 | 16 | ||
| 20 | - @Schema(description = "新审批人的用户编号", required = true, example = "2048") | 17 | + @Schema(description = "新审批人的用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 21 | @NotNull(message = "新审批人的用户编号不能为空") | 18 | @NotNull(message = "新审批人的用户编号不能为空") |
| 22 | private Long assigneeUserId; | 19 | private Long assigneeUserId; |
| 23 | 20 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/codegen/vo/CodegenCreateListReqVO.java
| @@ -10,11 +10,11 @@ import java.util.List; | @@ -10,11 +10,11 @@ import java.util.List; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class CodegenCreateListReqVO { | 11 | public class CodegenCreateListReqVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "数据源配置的编号", required = true, example = "1") | 13 | + @Schema(description = "数据源配置的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 14 | @NotNull(message = "数据源配置的编号不能为空") | 14 | @NotNull(message = "数据源配置的编号不能为空") |
| 15 | private Long dataSourceConfigId; | 15 | private Long dataSourceConfigId; |
| 16 | 16 | ||
| 17 | - @Schema(description = "表名数组", required = true, example = "[1, 2, 3]") | 17 | + @Schema(description = "表名数组", requiredMode = Schema.RequiredMode.REQUIRED, example = "[1, 2, 3]") |
| 18 | @NotNull(message = "表名数组不能为空") | 18 | @NotNull(message = "表名数组不能为空") |
| 19 | private List<String> tableNames; | 19 | private List<String> tableNames; |
| 20 | 20 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/codegen/vo/CodegenPreviewRespVO.java
| @@ -7,10 +7,10 @@ import lombok.Data; | @@ -7,10 +7,10 @@ import lombok.Data; | ||
| 7 | @Data | 7 | @Data |
| 8 | public class CodegenPreviewRespVO { | 8 | public class CodegenPreviewRespVO { |
| 9 | 9 | ||
| 10 | - @Schema(description = "文件路径", required = true, example = "java/cn/iocoder/yudao/adminserver/modules/system/controller/test/SysTestDemoController.java") | 10 | + @Schema(description = "文件路径", requiredMode = Schema.RequiredMode.REQUIRED, example = "java/cn/iocoder/yudao/adminserver/modules/system/controller/test/SysTestDemoController.java") |
| 11 | private String filePath; | 11 | private String filePath; |
| 12 | 12 | ||
| 13 | - @Schema(description = "代码", required = true, example = "Hello World") | 13 | + @Schema(description = "代码", requiredMode = Schema.RequiredMode.REQUIRED, example = "Hello World") |
| 14 | private String code; | 14 | private String code; |
| 15 | 15 | ||
| 16 | } | 16 | } |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/codegen/vo/CodegenUpdateReqVO.java
| @@ -33,7 +33,7 @@ public class CodegenUpdateReqVO { | @@ -33,7 +33,7 @@ public class CodegenUpdateReqVO { | ||
| 33 | @Valid | 33 | @Valid |
| 34 | public static class Table extends CodegenTableBaseVO { | 34 | public static class Table extends CodegenTableBaseVO { |
| 35 | 35 | ||
| 36 | - @Schema(description = "编号", required = true, example = "1") | 36 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 37 | private Long id; | 37 | private Long id; |
| 38 | 38 | ||
| 39 | @AssertTrue(message = "上级菜单不能为空,请前往 [修改生成配置 -> 生成信息] 界面,设置“上级菜单”字段") | 39 | @AssertTrue(message = "上级菜单不能为空,请前往 [修改生成配置 -> 生成信息] 界面,设置“上级菜单”字段") |
| @@ -51,7 +51,7 @@ public class CodegenUpdateReqVO { | @@ -51,7 +51,7 @@ public class CodegenUpdateReqVO { | ||
| 51 | @ToString(callSuper = true) | 51 | @ToString(callSuper = true) |
| 52 | public static class Column extends CodegenColumnBaseVO { | 52 | public static class Column extends CodegenColumnBaseVO { |
| 53 | 53 | ||
| 54 | - @Schema(description = "编号", required = true, example = "1") | 54 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 55 | private Long id; | 55 | private Long id; |
| 56 | 56 | ||
| 57 | } | 57 | } |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/codegen/vo/column/CodegenColumnBaseVO.java
| 1 | package cn.iocoder.yudao.module.infra.controller.admin.codegen.vo.column; | 1 | package cn.iocoder.yudao.module.infra.controller.admin.codegen.vo.column; |
| 2 | + | ||
| 2 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 3 | import lombok.Data; | 4 | import lombok.Data; |
| 4 | 5 | ||
| @@ -11,43 +12,43 @@ import javax.validation.constraints.NotNull; | @@ -11,43 +12,43 @@ import javax.validation.constraints.NotNull; | ||
| 11 | @Data | 12 | @Data |
| 12 | public class CodegenColumnBaseVO { | 13 | public class CodegenColumnBaseVO { |
| 13 | 14 | ||
| 14 | - @Schema(description = "表编号", required = true, example = "1") | 15 | + @Schema(description = "表编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 15 | @NotNull(message = "表编号不能为空") | 16 | @NotNull(message = "表编号不能为空") |
| 16 | private Long tableId; | 17 | private Long tableId; |
| 17 | 18 | ||
| 18 | - @Schema(description = "字段名", required = true, example = "user_age") | 19 | + @Schema(description = "字段名", requiredMode = Schema.RequiredMode.REQUIRED, example = "user_age") |
| 19 | @NotNull(message = "字段名不能为空") | 20 | @NotNull(message = "字段名不能为空") |
| 20 | private String columnName; | 21 | private String columnName; |
| 21 | 22 | ||
| 22 | - @Schema(description = "字段类型", required = true, example = "int(11)") | 23 | + @Schema(description = "字段类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "int(11)") |
| 23 | @NotNull(message = "字段类型不能为空") | 24 | @NotNull(message = "字段类型不能为空") |
| 24 | private String dataType; | 25 | private String dataType; |
| 25 | 26 | ||
| 26 | - @Schema(description = "字段描述", required = true, example = "年龄") | 27 | + @Schema(description = "字段描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "年龄") |
| 27 | @NotNull(message = "字段描述不能为空") | 28 | @NotNull(message = "字段描述不能为空") |
| 28 | private String columnComment; | 29 | private String columnComment; |
| 29 | 30 | ||
| 30 | - @Schema(description = "是否允许为空", required = true, example = "true") | 31 | + @Schema(description = "是否允许为空", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 31 | @NotNull(message = "是否允许为空不能为空") | 32 | @NotNull(message = "是否允许为空不能为空") |
| 32 | private Boolean nullable; | 33 | private Boolean nullable; |
| 33 | 34 | ||
| 34 | - @Schema(description = "是否主键", required = true, example = "false") | 35 | + @Schema(description = "是否主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "false") |
| 35 | @NotNull(message = "是否主键不能为空") | 36 | @NotNull(message = "是否主键不能为空") |
| 36 | private Boolean primaryKey; | 37 | private Boolean primaryKey; |
| 37 | 38 | ||
| 38 | - @Schema(description = "是否自增", required = true, example = "true") | 39 | + @Schema(description = "是否自增", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 39 | @NotNull(message = "是否自增不能为空") | 40 | @NotNull(message = "是否自增不能为空") |
| 40 | private String autoIncrement; | 41 | private String autoIncrement; |
| 41 | 42 | ||
| 42 | - @Schema(description = "排序", required = true, example = "10") | 43 | + @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 43 | @NotNull(message = "排序不能为空") | 44 | @NotNull(message = "排序不能为空") |
| 44 | private Integer ordinalPosition; | 45 | private Integer ordinalPosition; |
| 45 | 46 | ||
| 46 | - @Schema(description = "Java 属性类型", required = true, example = "userAge") | 47 | + @Schema(description = "Java 属性类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "userAge") |
| 47 | @NotNull(message = "Java 属性类型不能为空") | 48 | @NotNull(message = "Java 属性类型不能为空") |
| 48 | private String javaType; | 49 | private String javaType; |
| 49 | 50 | ||
| 50 | - @Schema(description = "Java 属性名", required = true, example = "Integer") | 51 | + @Schema(description = "Java 属性名", requiredMode = Schema.RequiredMode.REQUIRED, example = "Integer") |
| 51 | @NotNull(message = "Java 属性名不能为空") | 52 | @NotNull(message = "Java 属性名不能为空") |
| 52 | private String javaField; | 53 | private String javaField; |
| 53 | 54 | ||
| @@ -57,27 +58,27 @@ public class CodegenColumnBaseVO { | @@ -57,27 +58,27 @@ public class CodegenColumnBaseVO { | ||
| 57 | @Schema(description = "数据示例", example = "1024") | 58 | @Schema(description = "数据示例", example = "1024") |
| 58 | private String example; | 59 | private String example; |
| 59 | 60 | ||
| 60 | - @Schema(description = "是否为 Create 创建操作的字段", required = true, example = "true") | 61 | + @Schema(description = "是否为 Create 创建操作的字段", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 61 | @NotNull(message = "是否为 Create 创建操作的字段不能为空") | 62 | @NotNull(message = "是否为 Create 创建操作的字段不能为空") |
| 62 | private Boolean createOperation; | 63 | private Boolean createOperation; |
| 63 | 64 | ||
| 64 | - @Schema(description = "是否为 Update 更新操作的字段", required = true, example = "false") | 65 | + @Schema(description = "是否为 Update 更新操作的字段", requiredMode = Schema.RequiredMode.REQUIRED, example = "false") |
| 65 | @NotNull(message = "是否为 Update 更新操作的字段不能为空") | 66 | @NotNull(message = "是否为 Update 更新操作的字段不能为空") |
| 66 | private Boolean updateOperation; | 67 | private Boolean updateOperation; |
| 67 | 68 | ||
| 68 | - @Schema(description = "是否为 List 查询操作的字段", required = true, example = "true") | 69 | + @Schema(description = "是否为 List 查询操作的字段", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 69 | @NotNull(message = "是否为 List 查询操作的字段不能为空") | 70 | @NotNull(message = "是否为 List 查询操作的字段不能为空") |
| 70 | private Boolean listOperation; | 71 | private Boolean listOperation; |
| 71 | 72 | ||
| 72 | - @Schema(description = "List 查询操作的条件类型,参见 CodegenColumnListConditionEnum 枚举", required = true, example = "LIKE") | 73 | + @Schema(description = "List 查询操作的条件类型,参见 CodegenColumnListConditionEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "LIKE") |
| 73 | @NotNull(message = "List 查询操作的条件类型不能为空") | 74 | @NotNull(message = "List 查询操作的条件类型不能为空") |
| 74 | private String listOperationCondition; | 75 | private String listOperationCondition; |
| 75 | 76 | ||
| 76 | - @Schema(description = "是否为 List 查询操作的返回字段", required = true, example = "true") | 77 | + @Schema(description = "是否为 List 查询操作的返回字段", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 77 | @NotNull(message = "是否为 List 查询操作的返回字段不能为空") | 78 | @NotNull(message = "是否为 List 查询操作的返回字段不能为空") |
| 78 | private Boolean listOperationResult; | 79 | private Boolean listOperationResult; |
| 79 | 80 | ||
| 80 | - @Schema(description = "显示类型", required = true, example = "input") | 81 | + @Schema(description = "显示类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "input") |
| 81 | @NotNull(message = "显示类型不能为空") | 82 | @NotNull(message = "显示类型不能为空") |
| 82 | private String htmlType; | 83 | private String htmlType; |
| 83 | 84 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/codegen/vo/column/CodegenColumnRespVO.java
| @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class CodegenColumnRespVO extends CodegenColumnBaseVO { | 14 | public class CodegenColumnRespVO extends CodegenColumnBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "创建时间", required = true) | 19 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private LocalDateTime createTime; | 20 | private LocalDateTime createTime; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/codegen/vo/table/CodegenTableBaseVO.java
| 1 | package cn.iocoder.yudao.module.infra.controller.admin.codegen.vo.table; | 1 | package cn.iocoder.yudao.module.infra.controller.admin.codegen.vo.table; |
| 2 | + | ||
| 2 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 3 | import lombok.Data; | 4 | import lombok.Data; |
| 4 | 5 | ||
| 5 | import javax.validation.constraints.NotNull; | 6 | import javax.validation.constraints.NotNull; |
| 6 | 7 | ||
| 7 | /** | 8 | /** |
| 8 | - * 代码生成 Base VO,提供给添加、修改、详细的子 VO 使用 | ||
| 9 | - * 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成 | ||
| 10 | - */ | 9 | + * 代码生成 Base VO,提供给添加、修改、详细的子 VO 使用 |
| 10 | + * 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成 | ||
| 11 | + */ | ||
| 11 | @Data | 12 | @Data |
| 12 | public class CodegenTableBaseVO { | 13 | public class CodegenTableBaseVO { |
| 13 | 14 | ||
| 14 | - @Schema(description = "生成场景,参见 CodegenSceneEnum 枚举", required = true, example = "1") | 15 | + @Schema(description = "生成场景,参见 CodegenSceneEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 15 | @NotNull(message = "导入类型不能为空") | 16 | @NotNull(message = "导入类型不能为空") |
| 16 | private Integer scene; | 17 | private Integer scene; |
| 17 | 18 | ||
| 18 | - @Schema(description = "表名称", required = true, example = "yudao") | 19 | + @Schema(description = "表名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudao") |
| 19 | @NotNull(message = "表名称不能为空") | 20 | @NotNull(message = "表名称不能为空") |
| 20 | private String tableName; | 21 | private String tableName; |
| 21 | 22 | ||
| 22 | - @Schema(description = "表描述", required = true, example = "芋道") | 23 | + @Schema(description = "表描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 23 | @NotNull(message = "表描述不能为空") | 24 | @NotNull(message = "表描述不能为空") |
| 24 | private String tableComment; | 25 | private String tableComment; |
| 25 | 26 | ||
| 26 | @Schema(description = "备注", example = "我是备注") | 27 | @Schema(description = "备注", example = "我是备注") |
| 27 | private String remark; | 28 | private String remark; |
| 28 | 29 | ||
| 29 | - @Schema(description = "模块名", required = true, example = "system") | 30 | + @Schema(description = "模块名", requiredMode = Schema.RequiredMode.REQUIRED, example = "system") |
| 30 | @NotNull(message = "模块名不能为空") | 31 | @NotNull(message = "模块名不能为空") |
| 31 | private String moduleName; | 32 | private String moduleName; |
| 32 | 33 | ||
| 33 | - @Schema(description = "业务名", required = true, example = "codegen") | 34 | + @Schema(description = "业务名", requiredMode = Schema.RequiredMode.REQUIRED, example = "codegen") |
| 34 | @NotNull(message = "业务名不能为空") | 35 | @NotNull(message = "业务名不能为空") |
| 35 | private String businessName; | 36 | private String businessName; |
| 36 | 37 | ||
| 37 | - @Schema(description = "类名称", required = true, example = "CodegenTable") | 38 | + @Schema(description = "类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "CodegenTable") |
| 38 | @NotNull(message = "类名称不能为空") | 39 | @NotNull(message = "类名称不能为空") |
| 39 | private String className; | 40 | private String className; |
| 40 | 41 | ||
| 41 | - @Schema(description = "类描述", required = true, example = "代码生成器的表定义") | 42 | + @Schema(description = "类描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "代码生成器的表定义") |
| 42 | @NotNull(message = "类描述不能为空") | 43 | @NotNull(message = "类描述不能为空") |
| 43 | private String classComment; | 44 | private String classComment; |
| 44 | 45 | ||
| 45 | - @Schema(description = "作者", required = true, example = "芋道源码") | 46 | + @Schema(description = "作者", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码") |
| 46 | @NotNull(message = "作者不能为空") | 47 | @NotNull(message = "作者不能为空") |
| 47 | private String author; | 48 | private String author; |
| 48 | 49 | ||
| 49 | - @Schema(description = "模板类型,参见 CodegenTemplateTypeEnum 枚举", required = true, example = "1") | 50 | + @Schema(description = "模板类型,参见 CodegenTemplateTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 50 | @NotNull(message = "模板类型不能为空") | 51 | @NotNull(message = "模板类型不能为空") |
| 51 | private Integer templateType; | 52 | private Integer templateType; |
| 52 | 53 | ||
| 53 | - @Schema(description = "前端类型,参见 CodegenFrontTypeEnum 枚举", required = true, example = "20") | 54 | + @Schema(description = "前端类型,参见 CodegenFrontTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "20") |
| 54 | @NotNull(message = "前端类型不能为空") | 55 | @NotNull(message = "前端类型不能为空") |
| 55 | private Integer frontType; | 56 | private Integer frontType; |
| 56 | 57 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/codegen/vo/table/CodegenTableRespVO.java
| @@ -13,16 +13,16 @@ import java.time.LocalDateTime; | @@ -13,16 +13,16 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class CodegenTableRespVO extends CodegenTableBaseVO { | 14 | public class CodegenTableRespVO extends CodegenTableBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "主键编号", required = true, example = "1024") | 19 | + @Schema(description = "主键编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 20 | private Integer dataSourceConfigId; | 20 | private Integer dataSourceConfigId; |
| 21 | 21 | ||
| 22 | - @Schema(description = "创建时间", required = true) | 22 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 23 | private LocalDateTime createTime; | 23 | private LocalDateTime createTime; |
| 24 | 24 | ||
| 25 | - @Schema(description = "更新时间", required = true) | 25 | + @Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 26 | private LocalDateTime updateTime; | 26 | private LocalDateTime updateTime; |
| 27 | 27 | ||
| 28 | } | 28 | } |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/codegen/vo/table/DatabaseTableRespVO.java
| @@ -7,10 +7,10 @@ import lombok.Data; | @@ -7,10 +7,10 @@ import lombok.Data; | ||
| 7 | @Data | 7 | @Data |
| 8 | public class DatabaseTableRespVO { | 8 | public class DatabaseTableRespVO { |
| 9 | 9 | ||
| 10 | - @Schema(description = "表名称", required = true, example = "yuanma") | 10 | + @Schema(description = "表名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "yuanma") |
| 11 | private String name; | 11 | private String name; |
| 12 | 12 | ||
| 13 | - @Schema(description = "表描述", required = true, example = "芋道源码") | 13 | + @Schema(description = "表描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码") |
| 14 | private String comment; | 14 | private String comment; |
| 15 | 15 | ||
| 16 | } | 16 | } |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/config/vo/ConfigBaseVO.java
| 1 | package cn.iocoder.yudao.module.infra.controller.admin.config.vo; | 1 | package cn.iocoder.yudao.module.infra.controller.admin.config.vo; |
| 2 | + | ||
| 2 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 3 | import lombok.Data; | 4 | import lombok.Data; |
| 4 | 5 | ||
| @@ -14,22 +15,22 @@ import javax.validation.constraints.Size; | @@ -14,22 +15,22 @@ import javax.validation.constraints.Size; | ||
| 14 | @Data | 15 | @Data |
| 15 | public class ConfigBaseVO { | 16 | public class ConfigBaseVO { |
| 16 | 17 | ||
| 17 | - @Schema(description = "参数分组", required = true, example = "biz") | 18 | + @Schema(description = "参数分组", requiredMode = Schema.RequiredMode.REQUIRED, example = "biz") |
| 18 | @NotEmpty(message = "参数分组不能为空") | 19 | @NotEmpty(message = "参数分组不能为空") |
| 19 | @Size(max = 50, message = "参数名称不能超过50个字符") | 20 | @Size(max = 50, message = "参数名称不能超过50个字符") |
| 20 | private String category; | 21 | private String category; |
| 21 | 22 | ||
| 22 | - @Schema(description = "参数名称", required = true, example = "数据库名") | 23 | + @Schema(description = "参数名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "数据库名") |
| 23 | @NotBlank(message = "参数名称不能为空") | 24 | @NotBlank(message = "参数名称不能为空") |
| 24 | @Size(max = 100, message = "参数名称不能超过100个字符") | 25 | @Size(max = 100, message = "参数名称不能超过100个字符") |
| 25 | private String name; | 26 | private String name; |
| 26 | 27 | ||
| 27 | - @Schema(description = "参数键值", required = true, example = "1024") | 28 | + @Schema(description = "参数键值", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 28 | @NotBlank(message = "参数键值不能为空") | 29 | @NotBlank(message = "参数键值不能为空") |
| 29 | @Size(max = 500, message = "参数键值长度不能超过500个字符") | 30 | @Size(max = 500, message = "参数键值长度不能超过500个字符") |
| 30 | private String value; | 31 | private String value; |
| 31 | 32 | ||
| 32 | - @Schema(description = "是否可见", required = true, example = "true") | 33 | + @Schema(description = "是否可见", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 33 | @NotNull(message = "是否可见不能为空") | 34 | @NotNull(message = "是否可见不能为空") |
| 34 | private Boolean visible; | 35 | private Boolean visible; |
| 35 | 36 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/config/vo/ConfigCreateReqVO.java
| @@ -12,7 +12,7 @@ import javax.validation.constraints.Size; | @@ -12,7 +12,7 @@ import javax.validation.constraints.Size; | ||
| 12 | @EqualsAndHashCode(callSuper = true) | 12 | @EqualsAndHashCode(callSuper = true) |
| 13 | public class ConfigCreateReqVO extends ConfigBaseVO { | 13 | public class ConfigCreateReqVO extends ConfigBaseVO { |
| 14 | 14 | ||
| 15 | - @Schema(description = "参数键名", required = true, example = "yunai.db.username") | 15 | + @Schema(description = "参数键名", requiredMode = Schema.RequiredMode.REQUIRED, example = "yunai.db.username") |
| 16 | @NotBlank(message = "参数键名长度不能为空") | 16 | @NotBlank(message = "参数键名长度不能为空") |
| 17 | @Size(max = 100, message = "参数键名长度不能超过100个字符") | 17 | @Size(max = 100, message = "参数键名长度不能超过100个字符") |
| 18 | private String key; | 18 | private String key; |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/config/vo/ConfigRespVO.java
| @@ -13,18 +13,18 @@ import java.time.LocalDateTime; | @@ -13,18 +13,18 @@ import java.time.LocalDateTime; | ||
| 13 | @EqualsAndHashCode(callSuper = true) | 13 | @EqualsAndHashCode(callSuper = true) |
| 14 | public class ConfigRespVO extends ConfigBaseVO { | 14 | public class ConfigRespVO extends ConfigBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "参数配置序号", required = true, example = "1024") | 16 | + @Schema(description = "参数配置序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "参数键名", required = true, example = "yunai.db.username") | 19 | + @Schema(description = "参数键名", requiredMode = Schema.RequiredMode.REQUIRED, example = "yunai.db.username") |
| 20 | @NotBlank(message = "参数键名长度不能为空") | 20 | @NotBlank(message = "参数键名长度不能为空") |
| 21 | @Size(max = 100, message = "参数键名长度不能超过100个字符") | 21 | @Size(max = 100, message = "参数键名长度不能超过100个字符") |
| 22 | private String key; | 22 | private String key; |
| 23 | 23 | ||
| 24 | - @Schema(description = "参数类型,参见 SysConfigTypeEnum 枚举", required = true, example = "1") | 24 | + @Schema(description = "参数类型,参见 SysConfigTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 25 | private Integer type; | 25 | private Integer type; |
| 26 | 26 | ||
| 27 | - @Schema(description = "创建时间", required = true, example = "时间戳格式") | 27 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
| 28 | private LocalDateTime createTime; | 28 | private LocalDateTime createTime; |
| 29 | 29 | ||
| 30 | } | 30 | } |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/config/vo/ConfigUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class ConfigUpdateReqVO extends ConfigBaseVO { | 14 | public class ConfigUpdateReqVO extends ConfigBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "参数配置序号", required = true, example = "1024") | 16 | + @Schema(description = "参数配置序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "参数配置编号不能为空") | 17 | @NotNull(message = "参数配置编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/db/vo/DataSourceConfigBaseVO.java
| @@ -10,15 +10,15 @@ import javax.validation.constraints.*; | @@ -10,15 +10,15 @@ import javax.validation.constraints.*; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class DataSourceConfigBaseVO { | 11 | public class DataSourceConfigBaseVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "数据源名称", required = true, example = "test") | 13 | + @Schema(description = "数据源名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "test") |
| 14 | @NotNull(message = "数据源名称不能为空") | 14 | @NotNull(message = "数据源名称不能为空") |
| 15 | private String name; | 15 | private String name; |
| 16 | 16 | ||
| 17 | - @Schema(description = "数据源连接", required = true, example = "jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro") | 17 | + @Schema(description = "数据源连接", requiredMode = Schema.RequiredMode.REQUIRED, example = "jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro") |
| 18 | @NotNull(message = "数据源连接不能为空") | 18 | @NotNull(message = "数据源连接不能为空") |
| 19 | private String url; | 19 | private String url; |
| 20 | 20 | ||
| 21 | - @Schema(description = "用户名", required = true, example = "root") | 21 | + @Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "root") |
| 22 | @NotNull(message = "用户名不能为空") | 22 | @NotNull(message = "用户名不能为空") |
| 23 | private String username; | 23 | private String username; |
| 24 | 24 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/db/vo/DataSourceConfigCreateReqVO.java
| 1 | package cn.iocoder.yudao.module.infra.controller.admin.db.vo; | 1 | package cn.iocoder.yudao.module.infra.controller.admin.db.vo; |
| 2 | + | ||
| 2 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 3 | import lombok.*; | 4 | import lombok.*; |
| 4 | import javax.validation.constraints.*; | 5 | import javax.validation.constraints.*; |
| @@ -9,7 +10,7 @@ import javax.validation.constraints.*; | @@ -9,7 +10,7 @@ import javax.validation.constraints.*; | ||
| 9 | @ToString(callSuper = true) | 10 | @ToString(callSuper = true) |
| 10 | public class DataSourceConfigCreateReqVO extends DataSourceConfigBaseVO { | 11 | public class DataSourceConfigCreateReqVO extends DataSourceConfigBaseVO { |
| 11 | 12 | ||
| 12 | - @Schema(description = "密码", required = true, example = "123456") | 13 | + @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456") |
| 13 | @NotNull(message = "密码不能为空") | 14 | @NotNull(message = "密码不能为空") |
| 14 | private String password; | 15 | private String password; |
| 15 | 16 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/db/vo/DataSourceConfigRespVO.java
| 1 | package cn.iocoder.yudao.module.infra.controller.admin.db.vo; | 1 | package cn.iocoder.yudao.module.infra.controller.admin.db.vo; |
| 2 | + | ||
| 2 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 3 | import lombok.*; | 4 | import lombok.*; |
| 4 | 5 | ||
| @@ -10,10 +11,10 @@ import java.time.LocalDateTime; | @@ -10,10 +11,10 @@ import java.time.LocalDateTime; | ||
| 10 | @ToString(callSuper = true) | 11 | @ToString(callSuper = true) |
| 11 | public class DataSourceConfigRespVO extends DataSourceConfigBaseVO { | 12 | public class DataSourceConfigRespVO extends DataSourceConfigBaseVO { |
| 12 | 13 | ||
| 13 | - @Schema(description = "主键编号", required = true, example = "1024") | 14 | + @Schema(description = "主键编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 14 | private Integer id; | 15 | private Integer id; |
| 15 | 16 | ||
| 16 | - @Schema(description = "创建时间", required = true) | 17 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 17 | private LocalDateTime createTime; | 18 | private LocalDateTime createTime; |
| 18 | 19 | ||
| 19 | } | 20 | } |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/db/vo/DataSourceConfigUpdateReqVO.java
| 1 | package cn.iocoder.yudao.module.infra.controller.admin.db.vo; | 1 | package cn.iocoder.yudao.module.infra.controller.admin.db.vo; |
| 2 | + | ||
| 2 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 3 | import lombok.*; | 4 | import lombok.*; |
| 4 | import javax.validation.constraints.*; | 5 | import javax.validation.constraints.*; |
| @@ -9,11 +10,11 @@ import javax.validation.constraints.*; | @@ -9,11 +10,11 @@ import javax.validation.constraints.*; | ||
| 9 | @ToString(callSuper = true) | 10 | @ToString(callSuper = true) |
| 10 | public class DataSourceConfigUpdateReqVO extends DataSourceConfigBaseVO { | 11 | public class DataSourceConfigUpdateReqVO extends DataSourceConfigBaseVO { |
| 11 | 12 | ||
| 12 | - @Schema(description = "主键编号", required = true, example = "1024") | 13 | + @Schema(description = "主键编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 13 | @NotNull(message = "主键编号不能为空") | 14 | @NotNull(message = "主键编号不能为空") |
| 14 | private Long id; | 15 | private Long id; |
| 15 | 16 | ||
| 16 | - @Schema(description = "密码", required = true, example = "123456") | 17 | + @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456") |
| 17 | @NotNull(message = "密码不能为空") | 18 | @NotNull(message = "密码不能为空") |
| 18 | private String password; | 19 | private String password; |
| 19 | 20 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/file/vo/config/FileConfigBaseVO.java
| 1 | package cn.iocoder.yudao.module.infra.controller.admin.file.vo.config; | 1 | package cn.iocoder.yudao.module.infra.controller.admin.file.vo.config; |
| 2 | + | ||
| 2 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 3 | import lombok.Data; | 4 | import lombok.Data; |
| 4 | 5 | ||
| @@ -11,7 +12,7 @@ import javax.validation.constraints.NotNull; | @@ -11,7 +12,7 @@ import javax.validation.constraints.NotNull; | ||
| 11 | @Data | 12 | @Data |
| 12 | public class FileConfigBaseVO { | 13 | public class FileConfigBaseVO { |
| 13 | 14 | ||
| 14 | - @Schema(description = "配置名", required = true, example = "S3 - 阿里云") | 15 | + @Schema(description = "配置名", requiredMode = Schema.RequiredMode.REQUIRED, example = "S3 - 阿里云") |
| 15 | @NotNull(message = "配置名不能为空") | 16 | @NotNull(message = "配置名不能为空") |
| 16 | private String name; | 17 | private String name; |
| 17 | 18 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/file/vo/config/FileConfigCreateReqVO.java
| @@ -14,11 +14,11 @@ import java.util.Map; | @@ -14,11 +14,11 @@ import java.util.Map; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class FileConfigCreateReqVO extends FileConfigBaseVO { | 15 | public class FileConfigCreateReqVO extends FileConfigBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "存储器,参见 FileStorageEnum 枚举类参见 FileStorageEnum 枚举类", required = true, example = "1") | 17 | + @Schema(description = "存储器,参见 FileStorageEnum 枚举类参见 FileStorageEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 18 | @NotNull(message = "存储器不能为空") | 18 | @NotNull(message = "存储器不能为空") |
| 19 | private Integer storage; | 19 | private Integer storage; |
| 20 | 20 | ||
| 21 | - @Schema(description = "存储配置,配置是动态参数,所以使用 Map 接收", required = true) | 21 | + @Schema(description = "存储配置,配置是动态参数,所以使用 Map 接收", requiredMode = Schema.RequiredMode.REQUIRED) |
| 22 | @NotNull(message = "存储配置不能为空") | 22 | @NotNull(message = "存储配置不能为空") |
| 23 | private Map<String, Object> config; | 23 | private Map<String, Object> config; |
| 24 | 24 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/file/vo/config/FileConfigRespVO.java
| @@ -15,21 +15,21 @@ import java.time.LocalDateTime; | @@ -15,21 +15,21 @@ import java.time.LocalDateTime; | ||
| 15 | @ToString(callSuper = true) | 15 | @ToString(callSuper = true) |
| 16 | public class FileConfigRespVO extends FileConfigBaseVO { | 16 | public class FileConfigRespVO extends FileConfigBaseVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "编号", required = true, example = "1") | 18 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 19 | private Long id; | 19 | private Long id; |
| 20 | 20 | ||
| 21 | - @Schema(description = "存储器,参见 FileStorageEnum 枚举类", required = true, example = "1") | 21 | + @Schema(description = "存储器,参见 FileStorageEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 22 | @NotNull(message = "存储器不能为空") | 22 | @NotNull(message = "存储器不能为空") |
| 23 | private Integer storage; | 23 | private Integer storage; |
| 24 | 24 | ||
| 25 | - @Schema(description = "是否为主配置", required = true, example = "true") | 25 | + @Schema(description = "是否为主配置", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 26 | @NotNull(message = "是否为主配置不能为空") | 26 | @NotNull(message = "是否为主配置不能为空") |
| 27 | private Boolean master; | 27 | private Boolean master; |
| 28 | 28 | ||
| 29 | - @Schema(description = "存储配置", required = true) | 29 | + @Schema(description = "存储配置", requiredMode = Schema.RequiredMode.REQUIRED) |
| 30 | private FileClientConfig config; | 30 | private FileClientConfig config; |
| 31 | 31 | ||
| 32 | - @Schema(description = "创建时间", required = true) | 32 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 33 | private LocalDateTime createTime; | 33 | private LocalDateTime createTime; |
| 34 | 34 | ||
| 35 | } | 35 | } |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/file/vo/config/FileConfigUpdateReqVO.java
| @@ -14,11 +14,11 @@ import java.util.Map; | @@ -14,11 +14,11 @@ import java.util.Map; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class FileConfigUpdateReqVO extends FileConfigBaseVO { | 15 | public class FileConfigUpdateReqVO extends FileConfigBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "编号", required = true, example = "1") | 17 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 18 | @NotNull(message = "编号不能为空") | 18 | @NotNull(message = "编号不能为空") |
| 19 | private Long id; | 19 | private Long id; |
| 20 | 20 | ||
| 21 | - @Schema(description = "存储配置,配置是动态参数,所以使用 Map 接收", required = true) | 21 | + @Schema(description = "存储配置,配置是动态参数,所以使用 Map 接收", requiredMode = Schema.RequiredMode.REQUIRED) |
| 22 | @NotNull(message = "存储配置不能为空") | 22 | @NotNull(message = "存储配置不能为空") |
| 23 | private Map<String, Object> config; | 23 | private Map<String, Object> config; |
| 24 | 24 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/file/vo/file/FileRespVO.java
| @@ -9,28 +9,28 @@ import java.time.LocalDateTime; | @@ -9,28 +9,28 @@ import java.time.LocalDateTime; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class FileRespVO { | 10 | public class FileRespVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "文件编号", required = true, example = "1024") | 12 | + @Schema(description = "文件编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 13 | private Long id; | 13 | private Long id; |
| 14 | 14 | ||
| 15 | - @Schema(description = "配置编号", required = true, example = "11") | 15 | + @Schema(description = "配置编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "11") |
| 16 | private Long configId; | 16 | private Long configId; |
| 17 | 17 | ||
| 18 | - @Schema(description = "文件路径", required = true, example = "yudao.jpg") | 18 | + @Schema(description = "文件路径", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudao.jpg") |
| 19 | private String path; | 19 | private String path; |
| 20 | 20 | ||
| 21 | - @Schema(description = "原文件名", required = true, example = "yudao.jpg") | 21 | + @Schema(description = "原文件名", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudao.jpg") |
| 22 | private String name; | 22 | private String name; |
| 23 | 23 | ||
| 24 | - @Schema(description = "文件 URL", required = true, example = "https://www.iocoder.cn/yudao.jpg") | 24 | + @Schema(description = "文件 URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/yudao.jpg") |
| 25 | private String url; | 25 | private String url; |
| 26 | 26 | ||
| 27 | @Schema(description = "文件MIME类型", example = "application/octet-stream") | 27 | @Schema(description = "文件MIME类型", example = "application/octet-stream") |
| 28 | private String type; | 28 | private String type; |
| 29 | 29 | ||
| 30 | - @Schema(description = "文件大小", example = "2048", required = true) | 30 | + @Schema(description = "文件大小", example = "2048", requiredMode = Schema.RequiredMode.REQUIRED) |
| 31 | private Integer size; | 31 | private Integer size; |
| 32 | 32 | ||
| 33 | - @Schema(description = "创建时间", required = true) | 33 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 34 | private LocalDateTime createTime; | 34 | private LocalDateTime createTime; |
| 35 | 35 | ||
| 36 | } | 36 | } |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/file/vo/file/FileUploadReqVO.java
| @@ -10,7 +10,7 @@ import javax.validation.constraints.NotNull; | @@ -10,7 +10,7 @@ import javax.validation.constraints.NotNull; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class FileUploadReqVO { | 11 | public class FileUploadReqVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "文件附件", required = true) | 13 | + @Schema(description = "文件附件", requiredMode = Schema.RequiredMode.REQUIRED) |
| 14 | @NotNull(message = "文件附件不能为空") | 14 | @NotNull(message = "文件附件不能为空") |
| 15 | private MultipartFile file; | 15 | private MultipartFile file; |
| 16 | 16 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/JobBaseVO.java
| 1 | package cn.iocoder.yudao.module.infra.controller.admin.job.vo.job; | 1 | package cn.iocoder.yudao.module.infra.controller.admin.job.vo.job; |
| 2 | + | ||
| 2 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 3 | import lombok.Data; | 4 | import lombok.Data; |
| 4 | 5 | ||
| @@ -11,22 +12,22 @@ import javax.validation.constraints.NotNull; | @@ -11,22 +12,22 @@ import javax.validation.constraints.NotNull; | ||
| 11 | @Data | 12 | @Data |
| 12 | public class JobBaseVO { | 13 | public class JobBaseVO { |
| 13 | 14 | ||
| 14 | - @Schema(description = "任务名称", required = true, example = "测试任务") | 15 | + @Schema(description = "任务名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "测试任务") |
| 15 | @NotNull(message = "任务名称不能为空") | 16 | @NotNull(message = "任务名称不能为空") |
| 16 | private String name; | 17 | private String name; |
| 17 | 18 | ||
| 18 | @Schema(description = "处理器的参数", example = "yudao") | 19 | @Schema(description = "处理器的参数", example = "yudao") |
| 19 | private String handlerParam; | 20 | private String handlerParam; |
| 20 | 21 | ||
| 21 | - @Schema(description = "CRON 表达式", required = true, example = "0/10 * * * * ? *") | 22 | + @Schema(description = "CRON 表达式", requiredMode = Schema.RequiredMode.REQUIRED, example = "0/10 * * * * ? *") |
| 22 | @NotNull(message = "CRON 表达式不能为空") | 23 | @NotNull(message = "CRON 表达式不能为空") |
| 23 | private String cronExpression; | 24 | private String cronExpression; |
| 24 | 25 | ||
| 25 | - @Schema(description = "重试次数", required = true, example = "3") | 26 | + @Schema(description = "重试次数", requiredMode = Schema.RequiredMode.REQUIRED, example = "3") |
| 26 | @NotNull(message = "重试次数不能为空") | 27 | @NotNull(message = "重试次数不能为空") |
| 27 | private Integer retryCount; | 28 | private Integer retryCount; |
| 28 | 29 | ||
| 29 | - @Schema(description = "重试间隔", required = true, example = "1000") | 30 | + @Schema(description = "重试间隔", requiredMode = Schema.RequiredMode.REQUIRED, example = "1000") |
| 30 | @NotNull(message = "重试间隔不能为空") | 31 | @NotNull(message = "重试间隔不能为空") |
| 31 | private Integer retryInterval; | 32 | private Integer retryInterval; |
| 32 | 33 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/JobCreateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class JobCreateReqVO extends JobBaseVO { | 14 | public class JobCreateReqVO extends JobBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "处理器的名字", required = true, example = "sysUserSessionTimeoutJob") | 16 | + @Schema(description = "处理器的名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "sysUserSessionTimeoutJob") |
| 17 | @NotNull(message = "处理器的名字不能为空") | 17 | @NotNull(message = "处理器的名字不能为空") |
| 18 | private String handlerName; | 18 | private String handlerName; |
| 19 | 19 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/JobRespVO.java
| @@ -14,17 +14,17 @@ import java.time.LocalDateTime; | @@ -14,17 +14,17 @@ import java.time.LocalDateTime; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class JobRespVO extends JobBaseVO { | 15 | public class JobRespVO extends JobBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "任务编号", required = true, example = "1024") | 17 | + @Schema(description = "任务编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 | ||
| 20 | - @Schema(description = "任务状态", required = true, example = "1") | 20 | + @Schema(description = "任务状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 21 | private Integer status; | 21 | private Integer status; |
| 22 | 22 | ||
| 23 | - @Schema(description = "处理器的名字", required = true, example = "sysUserSessionTimeoutJob") | 23 | + @Schema(description = "处理器的名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "sysUserSessionTimeoutJob") |
| 24 | @NotNull(message = "处理器的名字不能为空") | 24 | @NotNull(message = "处理器的名字不能为空") |
| 25 | private String handlerName; | 25 | private String handlerName; |
| 26 | 26 | ||
| 27 | - @Schema(description = "创建时间", required = true) | 27 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 28 | private LocalDateTime createTime; | 28 | private LocalDateTime createTime; |
| 29 | 29 | ||
| 30 | } | 30 | } |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/JobUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class JobUpdateReqVO extends JobBaseVO { | 14 | public class JobUpdateReqVO extends JobBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "任务编号", required = true, example = "1024") | 16 | + @Schema(description = "任务编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "任务编号不能为空") | 17 | @NotNull(message = "任务编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/log/JobLogBaseVO.java
| 1 | package cn.iocoder.yudao.module.infra.controller.admin.job.vo.log; | 1 | package cn.iocoder.yudao.module.infra.controller.admin.job.vo.log; |
| 2 | + | ||
| 2 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 3 | import lombok.Data; | 4 | import lombok.Data; |
| 4 | import org.springframework.format.annotation.DateTimeFormat; | 5 | import org.springframework.format.annotation.DateTimeFormat; |
| @@ -15,22 +16,22 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | @@ -15,22 +16,22 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | ||
| 15 | @Data | 16 | @Data |
| 16 | public class JobLogBaseVO { | 17 | public class JobLogBaseVO { |
| 17 | 18 | ||
| 18 | - @Schema(description = "任务编号", required = true, example = "1024") | 19 | + @Schema(description = "任务编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 19 | @NotNull(message = "任务编号不能为空") | 20 | @NotNull(message = "任务编号不能为空") |
| 20 | private Long jobId; | 21 | private Long jobId; |
| 21 | 22 | ||
| 22 | - @Schema(description = "处理器的名字", required = true, example = "sysUserSessionTimeoutJob") | 23 | + @Schema(description = "处理器的名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "sysUserSessionTimeoutJob") |
| 23 | @NotNull(message = "处理器的名字不能为空") | 24 | @NotNull(message = "处理器的名字不能为空") |
| 24 | private String handlerName; | 25 | private String handlerName; |
| 25 | 26 | ||
| 26 | @Schema(description = "处理器的参数", example = "yudao") | 27 | @Schema(description = "处理器的参数", example = "yudao") |
| 27 | private String handlerParam; | 28 | private String handlerParam; |
| 28 | 29 | ||
| 29 | - @Schema(description = "第几次执行", required = true, example = "1") | 30 | + @Schema(description = "第几次执行", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 30 | @NotNull(message = "第几次执行不能为空") | 31 | @NotNull(message = "第几次执行不能为空") |
| 31 | private Integer executeIndex; | 32 | private Integer executeIndex; |
| 32 | 33 | ||
| 33 | - @Schema(description = "开始执行时间", required = true) | 34 | + @Schema(description = "开始执行时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 34 | @NotNull(message = "开始执行时间不能为空") | 35 | @NotNull(message = "开始执行时间不能为空") |
| 35 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 36 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
| 36 | private LocalDateTime beginTime; | 37 | private LocalDateTime beginTime; |
| @@ -42,7 +43,7 @@ public class JobLogBaseVO { | @@ -42,7 +43,7 @@ public class JobLogBaseVO { | ||
| 42 | @Schema(description = "执行时长", example = "123") | 43 | @Schema(description = "执行时长", example = "123") |
| 43 | private Integer duration; | 44 | private Integer duration; |
| 44 | 45 | ||
| 45 | - @Schema(description = "任务状态,参见 JobLogStatusEnum 枚举", required = true, example = "1") | 46 | + @Schema(description = "任务状态,参见 JobLogStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 46 | @NotNull(message = "任务状态不能为空") | 47 | @NotNull(message = "任务状态不能为空") |
| 47 | private Integer status; | 48 | private Integer status; |
| 48 | 49 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/log/JobLogRespVO.java
| @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class JobLogRespVO extends JobLogBaseVO { | 14 | public class JobLogRespVO extends JobLogBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "日志编号", required = true, example = "1024") | 16 | + @Schema(description = "日志编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "创建时间", required = true) | 19 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private LocalDateTime createTime; | 20 | private LocalDateTime createTime; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apiaccesslog/ApiAccessLogBaseVO.java
| 1 | package cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog; | 1 | package cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog; |
| 2 | + | ||
| 2 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 3 | import lombok.Data; | 4 | import lombok.Data; |
| 4 | import org.springframework.format.annotation.DateTimeFormat; | 5 | import org.springframework.format.annotation.DateTimeFormat; |
| @@ -15,56 +16,56 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | @@ -15,56 +16,56 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | ||
| 15 | @Data | 16 | @Data |
| 16 | public class ApiAccessLogBaseVO { | 17 | public class ApiAccessLogBaseVO { |
| 17 | 18 | ||
| 18 | - @Schema(description = "链路追踪编号", required = true, example = "66600cb6-7852-11eb-9439-0242ac130002") | 19 | + @Schema(description = "链路追踪编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "66600cb6-7852-11eb-9439-0242ac130002") |
| 19 | @NotNull(message = "链路追踪编号不能为空") | 20 | @NotNull(message = "链路追踪编号不能为空") |
| 20 | private String traceId; | 21 | private String traceId; |
| 21 | 22 | ||
| 22 | - @Schema(description = "用户编号", required = true, example = "666") | 23 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "666") |
| 23 | @NotNull(message = "用户编号不能为空") | 24 | @NotNull(message = "用户编号不能为空") |
| 24 | private Long userId; | 25 | private Long userId; |
| 25 | 26 | ||
| 26 | - @Schema(description = "用户类型,参见 UserTypeEnum 枚举", required = true, example = "2") | 27 | + @Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
| 27 | @NotNull(message = "用户类型不能为空") | 28 | @NotNull(message = "用户类型不能为空") |
| 28 | private Integer userType; | 29 | private Integer userType; |
| 29 | 30 | ||
| 30 | - @Schema(description = "应用名", required = true, example = "dashboard") | 31 | + @Schema(description = "应用名", requiredMode = Schema.RequiredMode.REQUIRED, example = "dashboard") |
| 31 | @NotNull(message = "应用名不能为空") | 32 | @NotNull(message = "应用名不能为空") |
| 32 | private String applicationName; | 33 | private String applicationName; |
| 33 | 34 | ||
| 34 | - @Schema(description = "请求方法名", required = true, example = "GET") | 35 | + @Schema(description = "请求方法名", requiredMode = Schema.RequiredMode.REQUIRED, example = "GET") |
| 35 | @NotNull(message = "请求方法名不能为空") | 36 | @NotNull(message = "请求方法名不能为空") |
| 36 | private String requestMethod; | 37 | private String requestMethod; |
| 37 | 38 | ||
| 38 | - @Schema(description = "请求地址", required = true, example = "/xxx/yyy") | 39 | + @Schema(description = "请求地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "/xxx/yyy") |
| 39 | @NotNull(message = "请求地址不能为空") | 40 | @NotNull(message = "请求地址不能为空") |
| 40 | private String requestUrl; | 41 | private String requestUrl; |
| 41 | 42 | ||
| 42 | @Schema(description = "请求参数") | 43 | @Schema(description = "请求参数") |
| 43 | private String requestParams; | 44 | private String requestParams; |
| 44 | 45 | ||
| 45 | - @Schema(description = "用户 IP", required = true, example = "127.0.0.1") | 46 | + @Schema(description = "用户 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "127.0.0.1") |
| 46 | @NotNull(message = "用户 IP不能为空") | 47 | @NotNull(message = "用户 IP不能为空") |
| 47 | private String userIp; | 48 | private String userIp; |
| 48 | 49 | ||
| 49 | - @Schema(description = "浏览器 UA", required = true, example = "Mozilla/5.0") | 50 | + @Schema(description = "浏览器 UA", requiredMode = Schema.RequiredMode.REQUIRED, example = "Mozilla/5.0") |
| 50 | @NotNull(message = "浏览器 UA不能为空") | 51 | @NotNull(message = "浏览器 UA不能为空") |
| 51 | private String userAgent; | 52 | private String userAgent; |
| 52 | 53 | ||
| 53 | - @Schema(description = "开始请求时间", required = true) | 54 | + @Schema(description = "开始请求时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 54 | @NotNull(message = "开始请求时间不能为空") | 55 | @NotNull(message = "开始请求时间不能为空") |
| 55 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 56 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
| 56 | private LocalDateTime beginTime; | 57 | private LocalDateTime beginTime; |
| 57 | 58 | ||
| 58 | - @Schema(description = "结束请求时间", required = true) | 59 | + @Schema(description = "结束请求时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 59 | @NotNull(message = "结束请求时间不能为空") | 60 | @NotNull(message = "结束请求时间不能为空") |
| 60 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 61 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
| 61 | private LocalDateTime endTime; | 62 | private LocalDateTime endTime; |
| 62 | 63 | ||
| 63 | - @Schema(description = "执行时长", required = true, example = "100") | 64 | + @Schema(description = "执行时长", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 64 | @NotNull(message = "执行时长不能为空") | 65 | @NotNull(message = "执行时长不能为空") |
| 65 | private Integer duration; | 66 | private Integer duration; |
| 66 | 67 | ||
| 67 | - @Schema(description = "结果码", required = true, example = "0") | 68 | + @Schema(description = "结果码", requiredMode = Schema.RequiredMode.REQUIRED, example = "0") |
| 68 | @NotNull(message = "结果码不能为空") | 69 | @NotNull(message = "结果码不能为空") |
| 69 | private Integer resultCode; | 70 | private Integer resultCode; |
| 70 | 71 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apiaccesslog/ApiAccessLogRespVO.java
| @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class ApiAccessLogRespVO extends ApiAccessLogBaseVO { | 14 | public class ApiAccessLogRespVO extends ApiAccessLogBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "日志主键", required = true, example = "1024") | 16 | + @Schema(description = "日志主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "创建时间", required = true) | 19 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private LocalDateTime createTime; | 20 | private LocalDateTime createTime; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apierrorlog/ApiErrorLogBaseVO.java
| @@ -15,80 +15,80 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | @@ -15,80 +15,80 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | ||
| 15 | @Data | 15 | @Data |
| 16 | public class ApiErrorLogBaseVO { | 16 | public class ApiErrorLogBaseVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "链路追踪编号", required = true, example = "66600cb6-7852-11eb-9439-0242ac130002") | 18 | + @Schema(description = "链路追踪编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "66600cb6-7852-11eb-9439-0242ac130002") |
| 19 | @NotNull(message = "链路追踪编号不能为空") | 19 | @NotNull(message = "链路追踪编号不能为空") |
| 20 | private String traceId; | 20 | private String traceId; |
| 21 | 21 | ||
| 22 | - @Schema(description = "用户编号", required = true, example = "666") | 22 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "666") |
| 23 | @NotNull(message = "用户编号不能为空") | 23 | @NotNull(message = "用户编号不能为空") |
| 24 | private Integer userId; | 24 | private Integer userId; |
| 25 | 25 | ||
| 26 | - @Schema(description = "用户类型", required = true, example = "1") | 26 | + @Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 27 | @NotNull(message = "用户类型不能为空") | 27 | @NotNull(message = "用户类型不能为空") |
| 28 | private Integer userType; | 28 | private Integer userType; |
| 29 | 29 | ||
| 30 | - @Schema(description = "应用名", required = true, example = "dashboard") | 30 | + @Schema(description = "应用名", requiredMode = Schema.RequiredMode.REQUIRED, example = "dashboard") |
| 31 | @NotNull(message = "应用名不能为空") | 31 | @NotNull(message = "应用名不能为空") |
| 32 | private String applicationName; | 32 | private String applicationName; |
| 33 | 33 | ||
| 34 | - @Schema(description = "请求方法名", required = true, example = "GET") | 34 | + @Schema(description = "请求方法名", requiredMode = Schema.RequiredMode.REQUIRED, example = "GET") |
| 35 | @NotNull(message = "请求方法名不能为空") | 35 | @NotNull(message = "请求方法名不能为空") |
| 36 | private String requestMethod; | 36 | private String requestMethod; |
| 37 | 37 | ||
| 38 | - @Schema(description = "请求地址", required = true, example = "/xx/yy") | 38 | + @Schema(description = "请求地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "/xx/yy") |
| 39 | @NotNull(message = "请求地址不能为空") | 39 | @NotNull(message = "请求地址不能为空") |
| 40 | private String requestUrl; | 40 | private String requestUrl; |
| 41 | 41 | ||
| 42 | - @Schema(description = "请求参数", required = true) | 42 | + @Schema(description = "请求参数", requiredMode = Schema.RequiredMode.REQUIRED) |
| 43 | @NotNull(message = "请求参数不能为空") | 43 | @NotNull(message = "请求参数不能为空") |
| 44 | private String requestParams; | 44 | private String requestParams; |
| 45 | 45 | ||
| 46 | - @Schema(description = "用户 IP", required = true, example = "127.0.0.1") | 46 | + @Schema(description = "用户 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "127.0.0.1") |
| 47 | @NotNull(message = "用户 IP不能为空") | 47 | @NotNull(message = "用户 IP不能为空") |
| 48 | private String userIp; | 48 | private String userIp; |
| 49 | 49 | ||
| 50 | - @Schema(description = "浏览器 UA", required = true, example = "Mozilla/5.0") | 50 | + @Schema(description = "浏览器 UA", requiredMode = Schema.RequiredMode.REQUIRED, example = "Mozilla/5.0") |
| 51 | @NotNull(message = "浏览器 UA不能为空") | 51 | @NotNull(message = "浏览器 UA不能为空") |
| 52 | private String userAgent; | 52 | private String userAgent; |
| 53 | 53 | ||
| 54 | - @Schema(description = "异常发生时间", required = true) | 54 | + @Schema(description = "异常发生时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 55 | @NotNull(message = "异常发生时间不能为空") | 55 | @NotNull(message = "异常发生时间不能为空") |
| 56 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 56 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
| 57 | private LocalDateTime exceptionTime; | 57 | private LocalDateTime exceptionTime; |
| 58 | 58 | ||
| 59 | - @Schema(description = "异常名", required = true) | 59 | + @Schema(description = "异常名", requiredMode = Schema.RequiredMode.REQUIRED) |
| 60 | @NotNull(message = "异常名不能为空") | 60 | @NotNull(message = "异常名不能为空") |
| 61 | private String exceptionName; | 61 | private String exceptionName; |
| 62 | 62 | ||
| 63 | - @Schema(description = "异常导致的消息", required = true) | 63 | + @Schema(description = "异常导致的消息", requiredMode = Schema.RequiredMode.REQUIRED) |
| 64 | @NotNull(message = "异常导致的消息不能为空") | 64 | @NotNull(message = "异常导致的消息不能为空") |
| 65 | private String exceptionMessage; | 65 | private String exceptionMessage; |
| 66 | 66 | ||
| 67 | - @Schema(description = "异常导致的根消息", required = true) | 67 | + @Schema(description = "异常导致的根消息", requiredMode = Schema.RequiredMode.REQUIRED) |
| 68 | @NotNull(message = "异常导致的根消息不能为空") | 68 | @NotNull(message = "异常导致的根消息不能为空") |
| 69 | private String exceptionRootCauseMessage; | 69 | private String exceptionRootCauseMessage; |
| 70 | 70 | ||
| 71 | - @Schema(description = "异常的栈轨迹", required = true) | 71 | + @Schema(description = "异常的栈轨迹", requiredMode = Schema.RequiredMode.REQUIRED) |
| 72 | @NotNull(message = "异常的栈轨迹不能为空") | 72 | @NotNull(message = "异常的栈轨迹不能为空") |
| 73 | private String exceptionStackTrace; | 73 | private String exceptionStackTrace; |
| 74 | 74 | ||
| 75 | - @Schema(description = "异常发生的类全名", required = true) | 75 | + @Schema(description = "异常发生的类全名", requiredMode = Schema.RequiredMode.REQUIRED) |
| 76 | @NotNull(message = "异常发生的类全名不能为空") | 76 | @NotNull(message = "异常发生的类全名不能为空") |
| 77 | private String exceptionClassName; | 77 | private String exceptionClassName; |
| 78 | 78 | ||
| 79 | - @Schema(description = "异常发生的类文件", required = true) | 79 | + @Schema(description = "异常发生的类文件", requiredMode = Schema.RequiredMode.REQUIRED) |
| 80 | @NotNull(message = "异常发生的类文件不能为空") | 80 | @NotNull(message = "异常发生的类文件不能为空") |
| 81 | private String exceptionFileName; | 81 | private String exceptionFileName; |
| 82 | 82 | ||
| 83 | - @Schema(description = "异常发生的方法名", required = true) | 83 | + @Schema(description = "异常发生的方法名", requiredMode = Schema.RequiredMode.REQUIRED) |
| 84 | @NotNull(message = "异常发生的方法名不能为空") | 84 | @NotNull(message = "异常发生的方法名不能为空") |
| 85 | private String exceptionMethodName; | 85 | private String exceptionMethodName; |
| 86 | 86 | ||
| 87 | - @Schema(description = "异常发生的方法所在行", required = true) | 87 | + @Schema(description = "异常发生的方法所在行", requiredMode = Schema.RequiredMode.REQUIRED) |
| 88 | @NotNull(message = "异常发生的方法所在行不能为空") | 88 | @NotNull(message = "异常发生的方法所在行不能为空") |
| 89 | private Integer exceptionLineNumber; | 89 | private Integer exceptionLineNumber; |
| 90 | 90 | ||
| 91 | - @Schema(description = "处理状态", required = true, example = "0") | 91 | + @Schema(description = "处理状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0") |
| 92 | @NotNull(message = "处理状态不能为空") | 92 | @NotNull(message = "处理状态不能为空") |
| 93 | private Integer processStatus; | 93 | private Integer processStatus; |
| 94 | 94 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apierrorlog/ApiErrorLogRespVO.java
| @@ -13,13 +13,13 @@ import java.time.LocalDateTime; | @@ -13,13 +13,13 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class ApiErrorLogRespVO extends ApiErrorLogBaseVO { | 14 | public class ApiErrorLogRespVO extends ApiErrorLogBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1024") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Integer id; | 17 | private Integer id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "创建时间", required = true) | 19 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private LocalDateTime createTime; | 20 | private LocalDateTime createTime; |
| 21 | 21 | ||
| 22 | - @Schema(description = "处理时间", required = true) | 22 | + @Schema(description = "处理时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 23 | private LocalDateTime processTime; | 23 | private LocalDateTime processTime; |
| 24 | 24 | ||
| 25 | @Schema(description = "处理用户编号", example = "233") | 25 | @Schema(description = "处理用户编号", example = "233") |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/redis/vo/RedisKeyDefineRespVO.java
| @@ -14,22 +14,22 @@ import java.time.Duration; | @@ -14,22 +14,22 @@ import java.time.Duration; | ||
| 14 | @AllArgsConstructor | 14 | @AllArgsConstructor |
| 15 | public class RedisKeyDefineRespVO { | 15 | public class RedisKeyDefineRespVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "Key 模板", required = true, example = "login_user:%s") | 17 | + @Schema(description = "Key 模板", requiredMode = Schema.RequiredMode.REQUIRED, example = "login_user:%s") |
| 18 | private String keyTemplate; | 18 | private String keyTemplate; |
| 19 | 19 | ||
| 20 | - @Schema(description = "Key 类型的枚举", required = true, example = "String") | 20 | + @Schema(description = "Key 类型的枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "String") |
| 21 | private RedisKeyDefine.KeyTypeEnum keyType; | 21 | private RedisKeyDefine.KeyTypeEnum keyType; |
| 22 | 22 | ||
| 23 | - @Schema(description = "Value 类型", required = true, example = "java.lang.String") | 23 | + @Schema(description = "Value 类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "java.lang.String") |
| 24 | private Class<?> valueType; | 24 | private Class<?> valueType; |
| 25 | 25 | ||
| 26 | - @Schema(description = "超时类型", required = true, example = "1") | 26 | + @Schema(description = "超时类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 27 | private RedisKeyDefine.TimeoutTypeEnum timeoutType; | 27 | private RedisKeyDefine.TimeoutTypeEnum timeoutType; |
| 28 | 28 | ||
| 29 | - @Schema(description = "过期时间,单位:毫秒", required = true, example = "1024") | 29 | + @Schema(description = "过期时间,单位:毫秒", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 30 | private Duration timeout; | 30 | private Duration timeout; |
| 31 | 31 | ||
| 32 | - @Schema(description = "备注", required = true, example = "啦啦啦啦~") | 32 | + @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "啦啦啦啦~") |
| 33 | private String memo; | 33 | private String memo; |
| 34 | 34 | ||
| 35 | } | 35 | } |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/redis/vo/RedisKeyValueRespVO.java
| @@ -9,10 +9,10 @@ import lombok.Data; | @@ -9,10 +9,10 @@ import lombok.Data; | ||
| 9 | @AllArgsConstructor | 9 | @AllArgsConstructor |
| 10 | public class RedisKeyValueRespVO { | 10 | public class RedisKeyValueRespVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "c5f6990767804a928f4bb96ca249febf", required = true, example = "String") | 12 | + @Schema(description = "c5f6990767804a928f4bb96ca249febf", requiredMode = Schema.RequiredMode.REQUIRED, example = "String") |
| 13 | private String key; | 13 | private String key; |
| 14 | 14 | ||
| 15 | - @Schema(required = true, example = "String") | 15 | + @Schema(requiredMode = Schema.RequiredMode.REQUIRED, example = "String") |
| 16 | private String value; | 16 | private String value; |
| 17 | 17 | ||
| 18 | } | 18 | } |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/redis/vo/RedisMonitorRespVO.java
| @@ -14,13 +14,13 @@ import java.util.Properties; | @@ -14,13 +14,13 @@ import java.util.Properties; | ||
| 14 | @AllArgsConstructor | 14 | @AllArgsConstructor |
| 15 | public class RedisMonitorRespVO { | 15 | public class RedisMonitorRespVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "Redis info 指令结果,具体字段,查看 Redis 文档", required = true) | 17 | + @Schema(description = "Redis info 指令结果,具体字段,查看 Redis 文档", requiredMode = Schema.RequiredMode.REQUIRED) |
| 18 | private Properties info; | 18 | private Properties info; |
| 19 | 19 | ||
| 20 | - @Schema(description = "Redis key 数量", required = true, example = "1024") | 20 | + @Schema(description = "Redis key 数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 21 | private Long dbSize; | 21 | private Long dbSize; |
| 22 | 22 | ||
| 23 | - @Schema(description = "CommandStat 数组", required = true) | 23 | + @Schema(description = "CommandStat 数组", requiredMode = Schema.RequiredMode.REQUIRED) |
| 24 | private List<CommandStat> commandStats; | 24 | private List<CommandStat> commandStats; |
| 25 | 25 | ||
| 26 | @Schema(description = "Redis 命令统计结果") | 26 | @Schema(description = "Redis 命令统计结果") |
| @@ -29,13 +29,13 @@ public class RedisMonitorRespVO { | @@ -29,13 +29,13 @@ public class RedisMonitorRespVO { | ||
| 29 | @AllArgsConstructor | 29 | @AllArgsConstructor |
| 30 | public static class CommandStat { | 30 | public static class CommandStat { |
| 31 | 31 | ||
| 32 | - @Schema(description = "Redis 命令", required = true, example = "get") | 32 | + @Schema(description = "Redis 命令", requiredMode = Schema.RequiredMode.REQUIRED, example = "get") |
| 33 | private String command; | 33 | private String command; |
| 34 | 34 | ||
| 35 | - @Schema(description = "调用次数", required = true, example = "1024") | 35 | + @Schema(description = "调用次数", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 36 | private Long calls; | 36 | private Long calls; |
| 37 | 37 | ||
| 38 | - @Schema(description = "消耗 CPU 秒数", required = true, example = "666") | 38 | + @Schema(description = "消耗 CPU 秒数", requiredMode = Schema.RequiredMode.REQUIRED, example = "666") |
| 39 | private Long usec; | 39 | private Long usec; |
| 40 | 40 | ||
| 41 | } | 41 | } |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/test/vo/TestDemoBaseVO.java
| @@ -10,19 +10,19 @@ import javax.validation.constraints.*; | @@ -10,19 +10,19 @@ import javax.validation.constraints.*; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class TestDemoBaseVO { | 11 | public class TestDemoBaseVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "名字", required = true) | 13 | + @Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED) |
| 14 | @NotNull(message = "名字不能为空") | 14 | @NotNull(message = "名字不能为空") |
| 15 | private String name; | 15 | private String name; |
| 16 | 16 | ||
| 17 | - @Schema(description = "状态", required = true) | 17 | + @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED) |
| 18 | @NotNull(message = "状态不能为空") | 18 | @NotNull(message = "状态不能为空") |
| 19 | private Integer status; | 19 | private Integer status; |
| 20 | 20 | ||
| 21 | - @Schema(description = "类型", required = true) | 21 | + @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED) |
| 22 | @NotNull(message = "类型不能为空") | 22 | @NotNull(message = "类型不能为空") |
| 23 | private Integer type; | 23 | private Integer type; |
| 24 | 24 | ||
| 25 | - @Schema(description = "分类", required = true) | 25 | + @Schema(description = "分类", requiredMode = Schema.RequiredMode.REQUIRED) |
| 26 | @NotNull(message = "分类不能为空") | 26 | @NotNull(message = "分类不能为空") |
| 27 | private Integer category; | 27 | private Integer category; |
| 28 | 28 |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/test/vo/TestDemoRespVO.java
| @@ -10,10 +10,10 @@ import java.time.LocalDateTime; | @@ -10,10 +10,10 @@ import java.time.LocalDateTime; | ||
| 10 | @ToString(callSuper = true) | 10 | @ToString(callSuper = true) |
| 11 | public class TestDemoRespVO extends TestDemoBaseVO { | 11 | public class TestDemoRespVO extends TestDemoBaseVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "编号", required = true) | 13 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "创建时间", required = true) | 16 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 17 | private LocalDateTime createTime; | 17 | private LocalDateTime createTime; |
| 18 | 18 | ||
| 19 | } | 19 | } |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/test/vo/TestDemoUpdateReqVO.java
| @@ -9,7 +9,7 @@ import javax.validation.constraints.*; | @@ -9,7 +9,7 @@ import javax.validation.constraints.*; | ||
| 9 | @ToString(callSuper = true) | 9 | @ToString(callSuper = true) |
| 10 | public class TestDemoUpdateReqVO extends TestDemoBaseVO { | 10 | public class TestDemoUpdateReqVO extends TestDemoBaseVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "编号", required = true) | 12 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 13 | @NotNull(message = "编号不能为空") | 13 | @NotNull(message = "编号不能为空") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/java/controller/vo/respVO.vm
| @@ -17,7 +17,7 @@ public class ${sceneEnum.prefixClass}${table.className}RespVO extends ${sceneEnu | @@ -17,7 +17,7 @@ public class ${sceneEnum.prefixClass}${table.className}RespVO extends ${sceneEnu | ||
| 17 | 17 | ||
| 18 | #foreach ($column in $columns) | 18 | #foreach ($column in $columns) |
| 19 | #if (${column.listOperationResult} && (!${column.createOperation} || !${column.updateOperation}))##不是通用字段 | 19 | #if (${column.listOperationResult} && (!${column.createOperation} || !${column.updateOperation}))##不是通用字段 |
| 20 | - @Schema(description = "${column.columnComment}"#if (!${column.nullable}), required = true#end#if ("$!column.example" != ""), example = "${column.example}"#end) | 20 | + @Schema(description = "${column.columnComment}"#if (!${column.nullable}), requiredMode = Schema.RequiredMode.REQUIRED#end#if ("$!column.example" != ""), example = "${column.example}"#end) |
| 21 | private ${column.javaType} ${column.javaField}; | 21 | private ${column.javaType} ${column.javaField}; |
| 22 | 22 | ||
| 23 | #end | 23 | #end |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/api/api.ts.vm
| @@ -16,7 +16,7 @@ export interface ${simpleClassName}VO { | @@ -16,7 +16,7 @@ export interface ${simpleClassName}VO { | ||
| 16 | } | 16 | } |
| 17 | 17 | ||
| 18 | // 查询${table.classComment}列表 | 18 | // 查询${table.classComment}列表 |
| 19 | -export const get${simpleClassName}Page = async (params: ${simpleClassName}PageReqVO) => { | 19 | +export const get${simpleClassName}Page = async (params) => { |
| 20 | return await request.get({ url: `${baseURL}/page`, params }) | 20 | return await request.get({ url: `${baseURL}/page`, params }) |
| 21 | } | 21 | } |
| 22 | 22 |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3_schema/api/api.ts.vm
| @@ -16,7 +16,7 @@ export interface ${simpleClassName}VO { | @@ -16,7 +16,7 @@ export interface ${simpleClassName}VO { | ||
| 16 | } | 16 | } |
| 17 | 17 | ||
| 18 | // 查询${table.classComment}列表 | 18 | // 查询${table.classComment}列表 |
| 19 | -export const get${simpleClassName}Page = async (params: ${simpleClassName}PageReqVO) => { | 19 | +export const get${simpleClassName}Page = async (params) => { |
| 20 | return await request.get({ url: '${baseURL}/page', params }) | 20 | return await request.get({ url: '${baseURL}/page', params }) |
| 21 | } | 21 | } |
| 22 | 22 |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3_vben/views/data.ts.vm
| 1 | import { BasicColumn, FormSchema, useRender } from '@/components/Table' | 1 | import { BasicColumn, FormSchema, useRender } from '@/components/Table' |
| 2 | -import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' | 2 | +import { DICT_TYPE, getDictOptions } from '@/utils/dict' |
| 3 | 3 | ||
| 4 | export const columns: BasicColumn[] = [ | 4 | export const columns: BasicColumn[] = [ |
| 5 | #foreach($column in $columns) | 5 | #foreach($column in $columns) |
| @@ -53,7 +53,7 @@ export const searchFormSchema: FormSchema[] = [ | @@ -53,7 +53,7 @@ export const searchFormSchema: FormSchema[] = [ | ||
| 53 | component: 'Select', | 53 | component: 'Select', |
| 54 | componentProps: { | 54 | componentProps: { |
| 55 | #if ("" != $dictType)## 设置了 dictType 数据字典的情况 | 55 | #if ("" != $dictType)## 设置了 dictType 数据字典的情况 |
| 56 | - options: getIntDictOptions(DICT_TYPE.$dictType.toUpperCase()) | 56 | + options: getDictOptions(DICT_TYPE.$dictType.toUpperCase()) |
| 57 | #else## 未设置 dictType 数据字典的情况 | 57 | #else## 未设置 dictType 数据字典的情况 |
| 58 | options: [] | 58 | options: [] |
| 59 | #end | 59 | #end |
| @@ -67,7 +67,7 @@ export const searchFormSchema: FormSchema[] = [ | @@ -67,7 +67,7 @@ export const searchFormSchema: FormSchema[] = [ | ||
| 67 | #end | 67 | #end |
| 68 | ] | 68 | ] |
| 69 | 69 | ||
| 70 | -export const formSchema: FormSchema[] = [ | 70 | +export const createFormSchema: FormSchema[] = [ |
| 71 | { | 71 | { |
| 72 | label: '编号', | 72 | label: '编号', |
| 73 | field: 'id', | 73 | field: 'id', |
| @@ -75,7 +75,7 @@ export const formSchema: FormSchema[] = [ | @@ -75,7 +75,7 @@ export const formSchema: FormSchema[] = [ | ||
| 75 | component: 'Input' | 75 | component: 'Input' |
| 76 | }, | 76 | }, |
| 77 | #foreach($column in $columns) | 77 | #foreach($column in $columns) |
| 78 | -#if ($column.createOperation || $column.updateOperation) | 78 | +#if ($column.createOperation) |
| 79 | #set ($dictType = $column.dictType) | 79 | #set ($dictType = $column.dictType) |
| 80 | #set ($javaField = $column.javaField) | 80 | #set ($javaField = $column.javaField) |
| 81 | #set ($AttrName = $column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) | 81 | #set ($AttrName = $column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) |
| @@ -90,16 +90,24 @@ export const formSchema: FormSchema[] = [ | @@ -90,16 +90,24 @@ export const formSchema: FormSchema[] = [ | ||
| 90 | #if ($column.htmlType == "input") | 90 | #if ($column.htmlType == "input") |
| 91 | component: 'Input' | 91 | component: 'Input' |
| 92 | #elseif($column.htmlType == "imageUpload")## 图片上传 | 92 | #elseif($column.htmlType == "imageUpload")## 图片上传 |
| 93 | - component: 'Upload' | 93 | + component: 'FileUpload', |
| 94 | + componentProps: { | ||
| 95 | + fileType: 'file', | ||
| 96 | + maxCount: 1 | ||
| 97 | + } | ||
| 94 | #elseif($column.htmlType == "fileUpload")## 文件上传 | 98 | #elseif($column.htmlType == "fileUpload")## 文件上传 |
| 95 | - component: 'Upload' | 99 | + component: 'FileUpload', |
| 100 | + componentProps: { | ||
| 101 | + fileType: 'image', | ||
| 102 | + maxCount: 1 | ||
| 103 | + } | ||
| 96 | #elseif($column.htmlType == "editor")## 文本编辑器 | 104 | #elseif($column.htmlType == "editor")## 文本编辑器 |
| 97 | - component: 'InputTextArea' | 105 | + component: 'Editor' |
| 98 | #elseif($column.htmlType == "select")## 下拉框 | 106 | #elseif($column.htmlType == "select")## 下拉框 |
| 99 | component: 'Select', | 107 | component: 'Select', |
| 100 | componentProps: { | 108 | componentProps: { |
| 101 | #if ("" != $dictType)## 有数据字典 | 109 | #if ("" != $dictType)## 有数据字典 |
| 102 | - options: getIntDictOptions(DICT_TYPE.COMMON_STATUS) | 110 | + options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number') |
| 103 | #else##没数据字典 | 111 | #else##没数据字典 |
| 104 | options:[] | 112 | options:[] |
| 105 | #end | 113 | #end |
| @@ -108,7 +116,7 @@ export const formSchema: FormSchema[] = [ | @@ -108,7 +116,7 @@ export const formSchema: FormSchema[] = [ | ||
| 108 | component: 'Checkbox', | 116 | component: 'Checkbox', |
| 109 | componentProps: { | 117 | componentProps: { |
| 110 | #if ("" != $dictType)## 有数据字典 | 118 | #if ("" != $dictType)## 有数据字典 |
| 111 | - options: getIntDictOptions(DICT_TYPE.COMMON_STATUS) | 119 | + options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number') |
| 112 | #else##没数据字典 | 120 | #else##没数据字典 |
| 113 | options:[] | 121 | options:[] |
| 114 | #end | 122 | #end |
| @@ -117,7 +125,7 @@ export const formSchema: FormSchema[] = [ | @@ -117,7 +125,7 @@ export const formSchema: FormSchema[] = [ | ||
| 117 | component: 'Radio', | 125 | component: 'Radio', |
| 118 | componentProps: { | 126 | componentProps: { |
| 119 | #if ("" != $dictType)## 有数据字典 | 127 | #if ("" != $dictType)## 有数据字典 |
| 120 | - options: getIntDictOptions(DICT_TYPE.COMMON_STATUS) | 128 | + options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number') |
| 121 | #else##没数据字典 | 129 | #else##没数据字典 |
| 122 | options:[] | 130 | options:[] |
| 123 | #end | 131 | #end |
| @@ -132,3 +140,69 @@ export const formSchema: FormSchema[] = [ | @@ -132,3 +140,69 @@ export const formSchema: FormSchema[] = [ | ||
| 132 | #end | 140 | #end |
| 133 | #end | 141 | #end |
| 134 | ] | 142 | ] |
| 143 | + | ||
| 144 | +export const updateFormSchema: FormSchema[] = [ | ||
| 145 | + { | ||
| 146 | + label: '编号', | ||
| 147 | + field: 'id', | ||
| 148 | + show: false, | ||
| 149 | + component: 'Input' | ||
| 150 | + }, | ||
| 151 | +#foreach($column in $columns) | ||
| 152 | +#if ($column.updateOperation) | ||
| 153 | +#set ($dictType = $column.dictType) | ||
| 154 | +#set ($javaField = $column.javaField) | ||
| 155 | +#set ($AttrName = $column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) | ||
| 156 | +#set ($comment = $column.columnComment) | ||
| 157 | +#if (!$column.primaryKey)## 忽略主键,不用在表单里 | ||
| 158 | + { | ||
| 159 | + label: '${comment}', | ||
| 160 | + field: '${javaField}', | ||
| 161 | + #if (($column.createOperation || $column.updateOperation) && !$column.nullable && !${column.primaryKey})## 创建或者更新操作 && 要求非空 && 非主键 | ||
| 162 | + required: true, | ||
| 163 | + #end | ||
| 164 | + #if ($column.htmlType == "input") | ||
| 165 | + component: 'Input' | ||
| 166 | + #elseif($column.htmlType == "imageUpload")## 图片上传 | ||
| 167 | + component: 'Upload' | ||
| 168 | + #elseif($column.htmlType == "fileUpload")## 文件上传 | ||
| 169 | + component: 'Upload' | ||
| 170 | + #elseif($column.htmlType == "editor")## 文本编辑器 | ||
| 171 | + component: 'Editor' | ||
| 172 | + #elseif($column.htmlType == "select")## 下拉框 | ||
| 173 | + component: 'Select', | ||
| 174 | + componentProps: { | ||
| 175 | + #if ("" != $dictType)## 有数据字典 | ||
| 176 | + options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number') | ||
| 177 | + #else##没数据字典 | ||
| 178 | + options:[] | ||
| 179 | + #end | ||
| 180 | + } | ||
| 181 | + #elseif($column.htmlType == "checkbox")## 多选框 | ||
| 182 | + component: 'Checkbox', | ||
| 183 | + componentProps: { | ||
| 184 | + #if ("" != $dictType)## 有数据字典 | ||
| 185 | + options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number') | ||
| 186 | + #else##没数据字典 | ||
| 187 | + options:[] | ||
| 188 | + #end | ||
| 189 | + } | ||
| 190 | + #elseif($column.htmlType == "radio")## 单选框 | ||
| 191 | + component: 'Radio', | ||
| 192 | + componentProps: { | ||
| 193 | + #if ("" != $dictType)## 有数据字典 | ||
| 194 | + options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number') | ||
| 195 | + #else##没数据字典 | ||
| 196 | + options:[] | ||
| 197 | + #end | ||
| 198 | + } | ||
| 199 | + #elseif($column.htmlType == "datetime")## 时间框 | ||
| 200 | + component: 'DatePicker' | ||
| 201 | + #elseif($column.htmlType == "textarea")## 文本域 | ||
| 202 | + component: 'InputTextArea' | ||
| 203 | + #end | ||
| 204 | + }, | ||
| 205 | +#end | ||
| 206 | +#end | ||
| 207 | +#end | ||
| 208 | +] | ||
| 135 | \ No newline at end of file | 209 | \ No newline at end of file |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3_vben/views/form.vue.vm
| 1 | <template> | 1 | <template> |
| 2 | - <BasicModal v-bind="$attrs" @register="registerModal" :title="isUpdate ? '编辑' : '新增'" @ok="handleSubmit"> | 2 | + <BasicModal v-bind="$attrs" @register="registerModal" :title="isUpdate ? t('action.edit') : t('action.create')" @ok="handleSubmit"> |
| 3 | <BasicForm @register="registerForm" /> | 3 | <BasicForm @register="registerForm" /> |
| 4 | </BasicModal> | 4 | </BasicModal> |
| 5 | </template> | 5 | </template> |
| 6 | -<script lang="ts" setup name="${table.className}Modal"> | ||
| 7 | - import { ref, unref } from 'vue' | ||
| 8 | - import { BasicModal, useModalInner } from '@/components/Modal' | ||
| 9 | - import { BasicForm, useForm } from '@/components/Form' | ||
| 10 | - import { formSchema } from './${classNameVar}.data' | ||
| 11 | - import { create${simpleClassName}, get${simpleClassName}, update${simpleClassName} } from '@/api/${table.moduleName}/${classNameVar}' | 6 | +<script lang="ts" setup> |
| 7 | +import { ref, unref } from 'vue' | ||
| 8 | +import { useI18n } from '@/hooks/web/useI18n' | ||
| 9 | +import { useMessage } from '@/hooks/web/useMessage' | ||
| 10 | +import { BasicForm, useForm } from '@/components/Form' | ||
| 11 | +import { BasicModal, useModalInner } from '@/components/Modal' | ||
| 12 | +import { createFormSchema, updateFormSchema } from './${classNameVar}.data' | ||
| 13 | +import { create${simpleClassName}, get${simpleClassName}, update${simpleClassName} } from '@/api/${table.moduleName}/${classNameVar}' | ||
| 12 | 14 | ||
| 13 | - const emit = defineEmits(['success', 'register']) | ||
| 14 | - const isUpdate = ref(true) | 15 | +defineOptions({ name: '${table.className}Modal' }) |
| 15 | 16 | ||
| 16 | - const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ | ||
| 17 | - labelWidth: 120, | ||
| 18 | - baseColProps: { span: 24 }, | ||
| 19 | - schemas: formSchema, | ||
| 20 | - showActionButtonGroup: false, | ||
| 21 | - actionColOptions: { span: 23 } | ||
| 22 | - }) | 17 | +const { t } = useI18n() |
| 18 | +const { createMessage } = useMessage() | ||
| 19 | +const emit = defineEmits(['success', 'register']) | ||
| 20 | +const isUpdate = ref(true) | ||
| 23 | 21 | ||
| 24 | - const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { | ||
| 25 | - resetFields() | ||
| 26 | - setModalProps({ confirmLoading: false }) | ||
| 27 | - isUpdate.value = !!data?.isUpdate | ||
| 28 | - if (unref(isUpdate)) { | ||
| 29 | - const res = await get${simpleClassName}(data.record.id) | ||
| 30 | - setFieldsValue({ ...res }) | ||
| 31 | - } | ||
| 32 | - }) | 22 | +const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ |
| 23 | + labelWidth: 120, | ||
| 24 | + baseColProps: { span: 24 }, | ||
| 25 | + schemas: isUpdate? updateFormSchema : createFormSchema, | ||
| 26 | + showActionButtonGroup: false, | ||
| 27 | + actionColOptions: { span: 23 } | ||
| 28 | +}) | ||
| 33 | 29 | ||
| 34 | - async function handleSubmit() { | ||
| 35 | - try { | ||
| 36 | - const values = await validate() | ||
| 37 | - setModalProps({ confirmLoading: true }) | ||
| 38 | - if (unref(isUpdate)) { | ||
| 39 | - await update${simpleClassName}(values) | ||
| 40 | - } else { | ||
| 41 | - await create${simpleClassName}(values) | ||
| 42 | - } | ||
| 43 | - closeModal() | ||
| 44 | - emit('success') | ||
| 45 | - } finally { | ||
| 46 | - setModalProps({ confirmLoading: false }) | 30 | +const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { |
| 31 | + resetFields() | ||
| 32 | + setModalProps({ confirmLoading: false }) | ||
| 33 | + isUpdate.value = !!data?.isUpdate | ||
| 34 | + if (unref(isUpdate)) { | ||
| 35 | + const res = await get${simpleClassName}(data.record.id) | ||
| 36 | + setFieldsValue({ ...res }) | ||
| 37 | + } | ||
| 38 | +}) | ||
| 39 | + | ||
| 40 | +async function handleSubmit() { | ||
| 41 | + try { | ||
| 42 | + const values = await validate() | ||
| 43 | + setModalProps({ confirmLoading: true }) | ||
| 44 | + if (unref(isUpdate)) { | ||
| 45 | + await update${simpleClassName}(values) | ||
| 46 | + } else { | ||
| 47 | + await create${simpleClassName}(values) | ||
| 47 | } | 48 | } |
| 49 | + closeModal() | ||
| 50 | + emit('success') | ||
| 51 | + createMessage.success(t('common.saveSuccessText')) | ||
| 52 | + } finally { | ||
| 53 | + setModalProps({ confirmLoading: false }) | ||
| 48 | } | 54 | } |
| 55 | +} | ||
| 49 | </script> | 56 | </script> |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3_vben/views/index.vue.vm
| @@ -33,58 +33,60 @@ | @@ -33,58 +33,60 @@ | ||
| 33 | <${simpleClassName}Modal @register="registerModal" @success="reload()" /> | 33 | <${simpleClassName}Modal @register="registerModal" @success="reload()" /> |
| 34 | </div> | 34 | </div> |
| 35 | </template> | 35 | </template> |
| 36 | -<script lang="ts" setup name="${table.className}"> | ||
| 37 | - import { useI18n } from '@/hooks/web/useI18n' | ||
| 38 | - import { useMessage } from '@/hooks/web/useMessage' | ||
| 39 | - import { useModal } from '@/components/Modal' | ||
| 40 | - import ${simpleClassName}Modal from './${simpleClassName}Modal.vue' | ||
| 41 | - import { IconEnum } from '@/enums/appEnum' | ||
| 42 | - import { BasicTable, useTable, TableAction } from '@/components/Table' | ||
| 43 | - import { delete${simpleClassName}, export${simpleClassName}, get${simpleClassName}Page } from '@/api/${table.moduleName}/${classNameVar}' | ||
| 44 | - import { columns, searchFormSchema } from './${classNameVar}.data' | 36 | +<script lang="ts" setup> |
| 37 | +import { useI18n } from '@/hooks/web/useI18n' | ||
| 38 | +import { useMessage } from '@/hooks/web/useMessage' | ||
| 39 | +import { useModal } from '@/components/Modal' | ||
| 40 | +import ${simpleClassName}Modal from './${simpleClassName}Modal.vue' | ||
| 41 | +import { IconEnum } from '@/enums/appEnum' | ||
| 42 | +import { BasicTable, useTable, TableAction } from '@/components/Table' | ||
| 43 | +import { delete${simpleClassName}, export${simpleClassName}, get${simpleClassName}Page } from '@/api/${table.moduleName}/${classNameVar}' | ||
| 44 | +import { columns, searchFormSchema } from './${classNameVar}.data' | ||
| 45 | 45 | ||
| 46 | - const { t } = useI18n() | ||
| 47 | - const { createConfirm, createMessage } = useMessage() | ||
| 48 | - const [registerModal, { openModal }] = useModal() | 46 | +defineOptions({ name: '${table.className}' }) |
| 49 | 47 | ||
| 50 | - const [registerTable, { getForm, reload }] = useTable({ | ||
| 51 | - title: '${table.classComment}列表', | ||
| 52 | - api: get${simpleClassName}Page, | ||
| 53 | - columns, | ||
| 54 | - formConfig: { labelWidth: 120, schemas: searchFormSchema }, | ||
| 55 | - useSearchForm: true, | ||
| 56 | - showTableSetting: true, | ||
| 57 | - actionColumn: { | ||
| 58 | - width: 140, | ||
| 59 | - title: t('common.action'), | ||
| 60 | - dataIndex: 'action', | ||
| 61 | - fixed: 'right' | ||
| 62 | - } | ||
| 63 | - }) | 48 | +const { t } = useI18n() |
| 49 | +const { createConfirm, createMessage } = useMessage() | ||
| 50 | +const [registerModal, { openModal }] = useModal() | ||
| 64 | 51 | ||
| 65 | - function handleCreate() { | ||
| 66 | - openModal(true, { isUpdate: false }) | 52 | +const [registerTable, { getForm, reload }] = useTable({ |
| 53 | + title: '${table.classComment}列表', | ||
| 54 | + api: get${simpleClassName}Page, | ||
| 55 | + columns, | ||
| 56 | + formConfig: { labelWidth: 120, schemas: searchFormSchema }, | ||
| 57 | + useSearchForm: true, | ||
| 58 | + showTableSetting: true, | ||
| 59 | + actionColumn: { | ||
| 60 | + width: 140, | ||
| 61 | + title: t('common.action'), | ||
| 62 | + dataIndex: 'action', | ||
| 63 | + fixed: 'right' | ||
| 67 | } | 64 | } |
| 65 | +}) | ||
| 68 | 66 | ||
| 69 | - function handleEdit(record: Recordable) { | ||
| 70 | - openModal(true, { record, isUpdate: true }) | ||
| 71 | - } | 67 | +function handleCreate() { |
| 68 | + openModal(true, { isUpdate: false }) | ||
| 69 | +} | ||
| 72 | 70 | ||
| 73 | - async function handleExport() { | ||
| 74 | - createConfirm({ | ||
| 75 | - title: t('common.exportTitle'), | ||
| 76 | - iconType: 'warning', | ||
| 77 | - content: t('common.exportMessage'), | ||
| 78 | - async onOk() { | ||
| 79 | - await export${simpleClassName}(getForm().getFieldsValue()) | ||
| 80 | - createMessage.success(t('common.exportSuccessText')) | ||
| 81 | - } | ||
| 82 | - }) | ||
| 83 | - } | 71 | +function handleEdit(record: Recordable) { |
| 72 | + openModal(true, { record, isUpdate: true }) | ||
| 73 | +} | ||
| 84 | 74 | ||
| 85 | - async function handleDelete(record: Recordable) { | ||
| 86 | - await delete${simpleClassName}(record.id) | ||
| 87 | - createMessage.success(t('common.delSuccessText')) | ||
| 88 | - reload() | ||
| 89 | - } | 75 | +async function handleExport() { |
| 76 | + createConfirm({ | ||
| 77 | + title: t('common.exportTitle'), | ||
| 78 | + iconType: 'warning', | ||
| 79 | + content: t('common.exportMessage'), | ||
| 80 | + async onOk() { | ||
| 81 | + await export${simpleClassName}(getForm().getFieldsValue()) | ||
| 82 | + createMessage.success(t('common.exportSuccessText')) | ||
| 83 | + } | ||
| 84 | + }) | ||
| 85 | +} | ||
| 86 | + | ||
| 87 | +async function handleDelete(record: Recordable) { | ||
| 88 | + await delete${simpleClassName}(record.id) | ||
| 89 | + createMessage.success(t('common.delSuccessText')) | ||
| 90 | + reload() | ||
| 91 | +} | ||
| 90 | </script> | 92 | </script> |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/brand/vo/ProductBrandBaseVO.java
| @@ -12,22 +12,22 @@ import javax.validation.constraints.NotNull; | @@ -12,22 +12,22 @@ import javax.validation.constraints.NotNull; | ||
| 12 | @Data | 12 | @Data |
| 13 | public class ProductBrandBaseVO { | 13 | public class ProductBrandBaseVO { |
| 14 | 14 | ||
| 15 | - @Schema(description = "品牌名称", required = true, example = "芋道") | 15 | + @Schema(description = "品牌名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 16 | @NotNull(message = "品牌名称不能为空") | 16 | @NotNull(message = "品牌名称不能为空") |
| 17 | private String name; | 17 | private String name; |
| 18 | 18 | ||
| 19 | - @Schema(description = "品牌图片", required = true) | 19 | + @Schema(description = "品牌图片", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | @NotNull(message = "品牌图片不能为空") | 20 | @NotNull(message = "品牌图片不能为空") |
| 21 | private String picUrl; | 21 | private String picUrl; |
| 22 | 22 | ||
| 23 | - @Schema(description = "品牌排序", required = true, example = "1") | 23 | + @Schema(description = "品牌排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 24 | @NotNull(message = "品牌排序不能为空") | 24 | @NotNull(message = "品牌排序不能为空") |
| 25 | private Integer sort; | 25 | private Integer sort; |
| 26 | 26 | ||
| 27 | @Schema(description = "品牌描述", example = "描述") | 27 | @Schema(description = "品牌描述", example = "描述") |
| 28 | private String description; | 28 | private String description; |
| 29 | 29 | ||
| 30 | - @Schema(description = "状态", required = true, example = "0") | 30 | + @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0") |
| 31 | @NotNull(message = "状态不能为空") | 31 | @NotNull(message = "状态不能为空") |
| 32 | private Integer status; | 32 | private Integer status; |
| 33 | 33 |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/brand/vo/ProductBrandRespVO.java
| @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class ProductBrandRespVO extends ProductBrandBaseVO { | 14 | public class ProductBrandRespVO extends ProductBrandBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "品牌编号", required = true, example = "1") | 16 | + @Schema(description = "品牌编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "创建时间", required = true) | 19 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private LocalDateTime createTime; | 20 | private LocalDateTime createTime; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/brand/vo/ProductBrandUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class ProductBrandUpdateReqVO extends ProductBrandBaseVO { | 14 | public class ProductBrandUpdateReqVO extends ProductBrandBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "品牌编号", required = true, example = "1") | 16 | + @Schema(description = "品牌编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | @NotNull(message = "品牌编号不能为空") | 17 | @NotNull(message = "品牌编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/category/vo/ProductCategoryBaseVO.java
| @@ -13,25 +13,25 @@ import javax.validation.constraints.NotNull; | @@ -13,25 +13,25 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @Data | 13 | @Data |
| 14 | public class ProductCategoryBaseVO { | 14 | public class ProductCategoryBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "父分类编号", required = true, example = "1") | 16 | + @Schema(description = "父分类编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | @NotNull(message = "父分类编号不能为空") | 17 | @NotNull(message = "父分类编号不能为空") |
| 18 | private Long parentId; | 18 | private Long parentId; |
| 19 | 19 | ||
| 20 | - @Schema(description = "分类名称", required = true, example = "办公文具") | 20 | + @Schema(description = "分类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "办公文具") |
| 21 | @NotBlank(message = "分类名称不能为空") | 21 | @NotBlank(message = "分类名称不能为空") |
| 22 | private String name; | 22 | private String name; |
| 23 | 23 | ||
| 24 | - @Schema(description = "分类图片", required = true) | 24 | + @Schema(description = "分类图片", requiredMode = Schema.RequiredMode.REQUIRED) |
| 25 | @NotBlank(message = "分类图片不能为空") | 25 | @NotBlank(message = "分类图片不能为空") |
| 26 | private String picUrl; | 26 | private String picUrl; |
| 27 | 27 | ||
| 28 | - @Schema(description = "分类排序", required = true, example = "1") | 28 | + @Schema(description = "分类排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 29 | private Integer sort; | 29 | private Integer sort; |
| 30 | 30 | ||
| 31 | - @Schema(description = "分类描述", required = true, example = "描述") | 31 | + @Schema(description = "分类描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "描述") |
| 32 | private String description; | 32 | private String description; |
| 33 | 33 | ||
| 34 | - @Schema(description = "开启状态", required = true, example = "0") | 34 | + @Schema(description = "开启状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0") |
| 35 | @NotNull(message = "开启状态不能为空") | 35 | @NotNull(message = "开启状态不能为空") |
| 36 | private Integer status; | 36 | private Integer status; |
| 37 | 37 |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/category/vo/ProductCategoryRespVO.java
| @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class ProductCategoryRespVO extends ProductCategoryBaseVO { | 14 | public class ProductCategoryRespVO extends ProductCategoryBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "分类编号", required = true, example = "2") | 16 | + @Schema(description = "分类编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "创建时间", required = true) | 19 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private LocalDateTime createTime; | 20 | private LocalDateTime createTime; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/category/vo/ProductCategoryUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class ProductCategoryUpdateReqVO extends ProductCategoryBaseVO { | 14 | public class ProductCategoryUpdateReqVO extends ProductCategoryBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "分类编号", required = true, example = "2") | 16 | + @Schema(description = "分类编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
| 17 | @NotNull(message = "分类编号不能为空") | 17 | @NotNull(message = "分类编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/property/vo/property/ProductPropertyAndValueRespVO.java
| @@ -9,10 +9,10 @@ import java.util.List; | @@ -9,10 +9,10 @@ import java.util.List; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class ProductPropertyAndValueRespVO { | 10 | public class ProductPropertyAndValueRespVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "属性项的编号", required = true, example = "1024") | 12 | + @Schema(description = "属性项的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 13 | private Long id; | 13 | private Long id; |
| 14 | 14 | ||
| 15 | - @Schema(description = "属性项的名称", required = true, example = "颜色") | 15 | + @Schema(description = "属性项的名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "颜色") |
| 16 | private String name; | 16 | private String name; |
| 17 | 17 | ||
| 18 | /** | 18 | /** |
| @@ -24,10 +24,10 @@ public class ProductPropertyAndValueRespVO { | @@ -24,10 +24,10 @@ public class ProductPropertyAndValueRespVO { | ||
| 24 | @Data | 24 | @Data |
| 25 | public static class Value { | 25 | public static class Value { |
| 26 | 26 | ||
| 27 | - @Schema(description = "属性值的编号", required = true, example = "2048") | 27 | + @Schema(description = "属性值的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 28 | private Long id; | 28 | private Long id; |
| 29 | 29 | ||
| 30 | - @Schema(description = "属性值的名称", required = true, example = "红色") | 30 | + @Schema(description = "属性值的名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "红色") |
| 31 | private String name; | 31 | private String name; |
| 32 | 32 | ||
| 33 | } | 33 | } |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/property/vo/property/ProductPropertyBaseVO.java
| @@ -12,7 +12,7 @@ import javax.validation.constraints.NotBlank; | @@ -12,7 +12,7 @@ import javax.validation.constraints.NotBlank; | ||
| 12 | @Data | 12 | @Data |
| 13 | public class ProductPropertyBaseVO { | 13 | public class ProductPropertyBaseVO { |
| 14 | 14 | ||
| 15 | - @Schema(description = "名称", required = true, example = "颜色") | 15 | + @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "颜色") |
| 16 | @NotBlank(message = "名称不能为空") | 16 | @NotBlank(message = "名称不能为空") |
| 17 | private String name; | 17 | private String name; |
| 18 | 18 |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/property/vo/property/ProductPropertyPageReqVO.java
| @@ -20,7 +20,7 @@ public class ProductPropertyPageReqVO extends PageParam { | @@ -20,7 +20,7 @@ public class ProductPropertyPageReqVO extends PageParam { | ||
| 20 | @Schema(description = "名称", example = "颜色") | 20 | @Schema(description = "名称", example = "颜色") |
| 21 | private String name; | 21 | private String name; |
| 22 | 22 | ||
| 23 | - @Schema(description = "状态", required = true, example = "1") | 23 | + @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 24 | private Integer status; | 24 | private Integer status; |
| 25 | 25 | ||
| 26 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 26 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/property/vo/property/ProductPropertyRespVO.java
| @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class ProductPropertyRespVO extends ProductPropertyBaseVO { | 14 | public class ProductPropertyRespVO extends ProductPropertyBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1024") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "创建时间", required = true) | 19 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private LocalDateTime createTime; | 20 | private LocalDateTime createTime; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/property/vo/property/ProductPropertyUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class ProductPropertyUpdateReqVO extends ProductPropertyBaseVO { | 14 | public class ProductPropertyUpdateReqVO extends ProductPropertyBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "主键", required = true, example = "1") | 16 | + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | @NotNull(message = "主键不能为空") | 17 | @NotNull(message = "主键不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/property/vo/value/ProductPropertyValueBaseVO.java
| @@ -13,11 +13,11 @@ import javax.validation.constraints.NotNull; | @@ -13,11 +13,11 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @Data | 13 | @Data |
| 14 | public class ProductPropertyValueBaseVO { | 14 | public class ProductPropertyValueBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "属性项的编号", required = true, example = "1024") | 16 | + @Schema(description = "属性项的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "属性项的编号不能为空") | 17 | @NotNull(message = "属性项的编号不能为空") |
| 18 | private Long propertyId; | 18 | private Long propertyId; |
| 19 | 19 | ||
| 20 | - @Schema(description = "名称", required = true, example = "红色") | 20 | + @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "红色") |
| 21 | @NotEmpty(message = "名称名字不能为空") | 21 | @NotEmpty(message = "名称名字不能为空") |
| 22 | private String name; | 22 | private String name; |
| 23 | 23 |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/property/vo/value/ProductPropertyValueDetailRespVO.java
| @@ -7,16 +7,16 @@ import lombok.Data; | @@ -7,16 +7,16 @@ import lombok.Data; | ||
| 7 | @Data | 7 | @Data |
| 8 | public class ProductPropertyValueDetailRespVO { | 8 | public class ProductPropertyValueDetailRespVO { |
| 9 | 9 | ||
| 10 | - @Schema(description = "属性的编号", required = true, example = "1") | 10 | + @Schema(description = "属性的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 11 | private Long propertyId; | 11 | private Long propertyId; |
| 12 | 12 | ||
| 13 | - @Schema(description = "属性的名称", required = true, example = "颜色") | 13 | + @Schema(description = "属性的名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "颜色") |
| 14 | private String propertyName; | 14 | private String propertyName; |
| 15 | 15 | ||
| 16 | - @Schema(description = "属性值的编号", required = true, example = "1024") | 16 | + @Schema(description = "属性值的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long valueId; | 17 | private Long valueId; |
| 18 | 18 | ||
| 19 | - @Schema(description = "属性值的名称", required = true, example = "红色") | 19 | + @Schema(description = "属性值的名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "红色") |
| 20 | private String valueName; | 20 | private String valueName; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/property/vo/value/ProductPropertyValuePageReqVO.java
| @@ -18,7 +18,7 @@ public class ProductPropertyValuePageReqVO extends PageParam { | @@ -18,7 +18,7 @@ public class ProductPropertyValuePageReqVO extends PageParam { | ||
| 18 | @Schema(description = "名称", example = "红色") | 18 | @Schema(description = "名称", example = "红色") |
| 19 | private String name; | 19 | private String name; |
| 20 | 20 | ||
| 21 | - @Schema(description = "状态", required = true, example = "1") | 21 | + @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 22 | private Integer status; | 22 | private Integer status; |
| 23 | 23 | ||
| 24 | } | 24 | } |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/property/vo/value/ProductPropertyValueRespVO.java
| @@ -13,7 +13,7 @@ import java.time.LocalDateTime; | @@ -13,7 +13,7 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class ProductPropertyValueRespVO extends ProductPropertyValueBaseVO { | 14 | public class ProductPropertyValueRespVO extends ProductPropertyValueBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "10") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | @Schema(description = "创建时间") | 19 | @Schema(description = "创建时间") |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/property/vo/value/ProductPropertyValueUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class ProductPropertyValueUpdateReqVO extends ProductPropertyValueBaseVO { | 14 | public class ProductPropertyValueUpdateReqVO extends ProductPropertyValueBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "主键", required = true, example = "1024") | 16 | + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "主键不能为空") | 17 | @NotNull(message = "主键不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/sku/vo/ProductSkuBaseVO.java
| @@ -17,11 +17,11 @@ import javax.validation.constraints.NotNull; | @@ -17,11 +17,11 @@ import javax.validation.constraints.NotNull; | ||
| 17 | @Data | 17 | @Data |
| 18 | public class ProductSkuBaseVO { | 18 | public class ProductSkuBaseVO { |
| 19 | 19 | ||
| 20 | - @Schema(description = "商品 SKU 名字", required = true, example = "芋道") | 20 | + @Schema(description = "商品 SKU 名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 21 | @NotEmpty(message = "商品 SKU 名字不能为空") | 21 | @NotEmpty(message = "商品 SKU 名字不能为空") |
| 22 | private String name; | 22 | private String name; |
| 23 | 23 | ||
| 24 | - @Schema(description = "销售价格,单位:分", required = true, example = "1024") | 24 | + @Schema(description = "销售价格,单位:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 25 | @NotNull(message = "销售价格,单位:分不能为空") | 25 | @NotNull(message = "销售价格,单位:分不能为空") |
| 26 | private Integer price; | 26 | private Integer price; |
| 27 | 27 | ||
| @@ -34,16 +34,16 @@ public class ProductSkuBaseVO { | @@ -34,16 +34,16 @@ public class ProductSkuBaseVO { | ||
| 34 | @Schema(description = "条形码", example = "haha") | 34 | @Schema(description = "条形码", example = "haha") |
| 35 | private String barCode; | 35 | private String barCode; |
| 36 | 36 | ||
| 37 | - @Schema(description = "图片地址", required = true, example = "https://www.iocoder.cn/xx.png") | 37 | + @Schema(description = "图片地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/xx.png") |
| 38 | @NotNull(message = "图片地址不能为空") | 38 | @NotNull(message = "图片地址不能为空") |
| 39 | private String picUrl; | 39 | private String picUrl; |
| 40 | 40 | ||
| 41 | - @Schema(description = "SKU 状态", required = true, example = "1") | 41 | + @Schema(description = "SKU 状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 42 | @NotNull(message = "SKU 状态不能为空") | 42 | @NotNull(message = "SKU 状态不能为空") |
| 43 | @InEnum(CommonStatusEnum.class) | 43 | @InEnum(CommonStatusEnum.class) |
| 44 | private Integer status; | 44 | private Integer status; |
| 45 | 45 | ||
| 46 | - @Schema(description = "库存", required = true, example = "1") | 46 | + @Schema(description = "库存", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 47 | @NotNull(message = "库存不能为空") | 47 | @NotNull(message = "库存不能为空") |
| 48 | private Integer stock; | 48 | private Integer stock; |
| 49 | 49 | ||
| @@ -62,11 +62,11 @@ public class ProductSkuBaseVO { | @@ -62,11 +62,11 @@ public class ProductSkuBaseVO { | ||
| 62 | @NoArgsConstructor | 62 | @NoArgsConstructor |
| 63 | public static class Property { | 63 | public static class Property { |
| 64 | 64 | ||
| 65 | - @Schema(description = "属性编号", required = true, example = "1") | 65 | + @Schema(description = "属性编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 66 | @NotNull(message = "属性编号不能为空") | 66 | @NotNull(message = "属性编号不能为空") |
| 67 | private Long propertyId; | 67 | private Long propertyId; |
| 68 | 68 | ||
| 69 | - @Schema(description = "属性值编号", required = true, example = "1024") | 69 | + @Schema(description = "属性值编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 70 | @NotNull(message = "属性值编号不能为空") | 70 | @NotNull(message = "属性值编号不能为空") |
| 71 | private Long valueId; | 71 | private Long valueId; |
| 72 | 72 |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/sku/vo/ProductSkuOptionRespVO.java
| @@ -7,24 +7,24 @@ import lombok.Data; | @@ -7,24 +7,24 @@ import lombok.Data; | ||
| 7 | @Data | 7 | @Data |
| 8 | public class ProductSkuOptionRespVO { | 8 | public class ProductSkuOptionRespVO { |
| 9 | 9 | ||
| 10 | - @Schema(description = "主键", required = true, example = "1024") | 10 | + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 11 | private Long id; | 11 | private Long id; |
| 12 | 12 | ||
| 13 | @Schema(description = "商品 SKU 名字", example = "红色") | 13 | @Schema(description = "商品 SKU 名字", example = "红色") |
| 14 | private String name; | 14 | private String name; |
| 15 | 15 | ||
| 16 | - @Schema(description = "销售价格", required = true, example = "100") | 16 | + @Schema(description = "销售价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 17 | private String price; | 17 | private String price; |
| 18 | 18 | ||
| 19 | - @Schema(description = "库存", required = true, example = "100") | 19 | + @Schema(description = "库存", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 20 | private Integer stock; | 20 | private Integer stock; |
| 21 | 21 | ||
| 22 | // ========== 商品 SPU 信息 ========== | 22 | // ========== 商品 SPU 信息 ========== |
| 23 | 23 | ||
| 24 | - @Schema(description = "商品 SPU 编号", required = true, example = "1") | 24 | + @Schema(description = "商品 SPU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 25 | private Long spuId; | 25 | private Long spuId; |
| 26 | 26 | ||
| 27 | - @Schema(description = "商品 SPU 名字", required = true, example = "iPhone 11") | 27 | + @Schema(description = "商品 SPU 名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "iPhone 11") |
| 28 | private String spuName; | 28 | private String spuName; |
| 29 | 29 | ||
| 30 | } | 30 | } |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/sku/vo/ProductSkuRespVO.java
| @@ -14,7 +14,7 @@ import java.util.List; | @@ -14,7 +14,7 @@ import java.util.List; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class ProductSkuRespVO extends ProductSkuBaseVO { | 15 | public class ProductSkuRespVO extends ProductSkuBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "主键", required = true, example = "1024") | 17 | + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 | ||
| 20 | @Schema(description = "创建时间") | 20 | @Schema(description = "创建时间") |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/spu/vo/ProductSpuBaseVO.java
| @@ -17,7 +17,7 @@ import java.util.List; | @@ -17,7 +17,7 @@ import java.util.List; | ||
| 17 | @Data | 17 | @Data |
| 18 | public class ProductSpuBaseVO { | 18 | public class ProductSpuBaseVO { |
| 19 | 19 | ||
| 20 | - @Schema(description = "商品名称", required = true, example = "芋道") | 20 | + @Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 21 | @NotEmpty(message = "商品名称不能为空") | 21 | @NotEmpty(message = "商品名称不能为空") |
| 22 | private String name; | 22 | private String name; |
| 23 | 23 | ||
| @@ -27,40 +27,40 @@ public class ProductSpuBaseVO { | @@ -27,40 +27,40 @@ public class ProductSpuBaseVO { | ||
| 27 | @Schema(description = "促销语", example = "好吃!") | 27 | @Schema(description = "促销语", example = "好吃!") |
| 28 | private String sellPoint; | 28 | private String sellPoint; |
| 29 | 29 | ||
| 30 | - @Schema(description = "商品详情", required = true, example = "我是商品描述") | 30 | + @Schema(description = "商品详情", requiredMode = Schema.RequiredMode.REQUIRED, example = "我是商品描述") |
| 31 | @NotNull(message = "商品详情不能为空") | 31 | @NotNull(message = "商品详情不能为空") |
| 32 | private String description; | 32 | private String description; |
| 33 | 33 | ||
| 34 | - @Schema(description = "商品分类编号", required = true, example = "1") | 34 | + @Schema(description = "商品分类编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 35 | @NotNull(message = "商品分类编号不能为空") | 35 | @NotNull(message = "商品分类编号不能为空") |
| 36 | private Long categoryId; | 36 | private Long categoryId; |
| 37 | 37 | ||
| 38 | @Schema(description = "商品品牌编号", example = "1") | 38 | @Schema(description = "商品品牌编号", example = "1") |
| 39 | private Long brandId; | 39 | private Long brandId; |
| 40 | 40 | ||
| 41 | - @Schema(description = "商品图片的数组", required = true) | 41 | + @Schema(description = "商品图片的数组", requiredMode = Schema.RequiredMode.REQUIRED) |
| 42 | @NotNull(message = "商品图片的数组不能为空") | 42 | @NotNull(message = "商品图片的数组不能为空") |
| 43 | private List<String> picUrls; | 43 | private List<String> picUrls; |
| 44 | 44 | ||
| 45 | - @Schema(description = "商品视频", required = true) | 45 | + @Schema(description = "商品视频", requiredMode = Schema.RequiredMode.REQUIRED) |
| 46 | private String videoUrl; | 46 | private String videoUrl; |
| 47 | 47 | ||
| 48 | - @Schema(description = "排序字段", required = true, example = "1") | 48 | + @Schema(description = "排序字段", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 49 | private Integer sort; | 49 | private Integer sort; |
| 50 | 50 | ||
| 51 | - @Schema(description = "商品状态", required = true, example = "1") | 51 | + @Schema(description = "商品状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 52 | @NotNull(message = "商品状态不能为空") | 52 | @NotNull(message = "商品状态不能为空") |
| 53 | @InEnum(ProductSpuStatusEnum.class) | 53 | @InEnum(ProductSpuStatusEnum.class) |
| 54 | private Integer status; | 54 | private Integer status; |
| 55 | 55 | ||
| 56 | // ========== SKU 相关字段 ========= | 56 | // ========== SKU 相关字段 ========= |
| 57 | 57 | ||
| 58 | - @Schema(description = "规格类型", required = true, example = "1") | 58 | + @Schema(description = "规格类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 59 | @NotNull(message = "规格类型不能为空") | 59 | @NotNull(message = "规格类型不能为空") |
| 60 | @InEnum(ProductSpuSpecTypeEnum.class) | 60 | @InEnum(ProductSpuSpecTypeEnum.class) |
| 61 | private Integer specType; | 61 | private Integer specType; |
| 62 | 62 | ||
| 63 | - @Schema(description = "是否展示库存", required = true, example = "true") | 63 | + @Schema(description = "是否展示库存", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 64 | @NotNull(message = "是否展示库存不能为空") | 64 | @NotNull(message = "是否展示库存不能为空") |
| 65 | private Boolean showStock; | 65 | private Boolean showStock; |
| 66 | 66 | ||
| @@ -69,7 +69,7 @@ public class ProductSpuBaseVO { | @@ -69,7 +69,7 @@ public class ProductSpuBaseVO { | ||
| 69 | 69 | ||
| 70 | // ========== 统计相关字段 ========= | 70 | // ========== 统计相关字段 ========= |
| 71 | 71 | ||
| 72 | - @Schema(description = "虚拟销量", required = true, example = "1024") | 72 | + @Schema(description = "虚拟销量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 73 | @NotNull(message = "虚拟销量不能为空") | 73 | @NotNull(message = "虚拟销量不能为空") |
| 74 | private Integer virtualSalesCount; | 74 | private Integer virtualSalesCount; |
| 75 | 75 |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/spu/vo/ProductSpuRespVO.java
| @@ -13,7 +13,7 @@ import java.time.LocalDateTime; | @@ -13,7 +13,7 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class ProductSpuRespVO extends ProductSpuBaseVO { | 14 | public class ProductSpuRespVO extends ProductSpuBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "主键", required = true, example = "1") | 16 | + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | @Schema(description = "创建时间") | 19 | @Schema(description = "创建时间") |
| @@ -21,13 +21,13 @@ public class ProductSpuRespVO extends ProductSpuBaseVO { | @@ -21,13 +21,13 @@ public class ProductSpuRespVO extends ProductSpuBaseVO { | ||
| 21 | 21 | ||
| 22 | // ========== SKU 相关字段 ========= | 22 | // ========== SKU 相关字段 ========= |
| 23 | 23 | ||
| 24 | - @Schema(description = "库存", required = true, example = "true") | 24 | + @Schema(description = "库存", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 25 | private Integer totalStock; | 25 | private Integer totalStock; |
| 26 | 26 | ||
| 27 | - @Schema(description = " 最小价格,单位使用:分", required = true, example = "1024") | 27 | + @Schema(description = " 最小价格,单位使用:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 28 | private Integer minPrice; | 28 | private Integer minPrice; |
| 29 | 29 | ||
| 30 | - @Schema(description = "最大价格,单位使用:分", required = true, example = "1024") | 30 | + @Schema(description = "最大价格,单位使用:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 31 | private Integer maxPrice; | 31 | private Integer maxPrice; |
| 32 | 32 | ||
| 33 | @Schema(description = "商品销量", example = "1024") | 33 | @Schema(description = "商品销量", example = "1024") |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/spu/vo/ProductSpuSimpleRespVO.java
| @@ -11,16 +11,16 @@ import lombok.ToString; | @@ -11,16 +11,16 @@ import lombok.ToString; | ||
| 11 | @ToString(callSuper = true) | 11 | @ToString(callSuper = true) |
| 12 | public class ProductSpuSimpleRespVO extends ProductSpuBaseVO { | 12 | public class ProductSpuSimpleRespVO extends ProductSpuBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "主键", required = true, example = "1") | 14 | + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "商品名称", required = true, example = "芋道") | 17 | + @Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 18 | private String name; | 18 | private String name; |
| 19 | 19 | ||
| 20 | - @Schema(description = " 最小价格,单位使用:分", required = true, example = "1024") | 20 | + @Schema(description = " 最小价格,单位使用:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 21 | private Integer minPrice; | 21 | private Integer minPrice; |
| 22 | 22 | ||
| 23 | - @Schema(description = "最大价格,单位使用:分", required = true, example = "1024") | 23 | + @Schema(description = "最大价格,单位使用:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 24 | private Integer maxPrice; | 24 | private Integer maxPrice; |
| 25 | 25 | ||
| 26 | } | 26 | } |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/spu/vo/ProductSpuUpdateReqVO.java
| @@ -16,7 +16,7 @@ import java.util.List; | @@ -16,7 +16,7 @@ import java.util.List; | ||
| 16 | @ToString(callSuper = true) | 16 | @ToString(callSuper = true) |
| 17 | public class ProductSpuUpdateReqVO extends ProductSpuBaseVO { | 17 | public class ProductSpuUpdateReqVO extends ProductSpuBaseVO { |
| 18 | 18 | ||
| 19 | - @Schema(description = "商品编号", required = true, example = "1") | 19 | + @Schema(description = "商品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 20 | @NotNull(message = "商品编号不能为空") | 20 | @NotNull(message = "商品编号不能为空") |
| 21 | private Long id; | 21 | private Long id; |
| 22 | 22 |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/app/category/vo/AppCategoryRespVO.java
| @@ -10,18 +10,18 @@ import javax.validation.constraints.NotNull; | @@ -10,18 +10,18 @@ import javax.validation.constraints.NotNull; | ||
| 10 | @Schema(description = "用户 APP - 商品分类 Response VO") | 10 | @Schema(description = "用户 APP - 商品分类 Response VO") |
| 11 | public class AppCategoryRespVO { | 11 | public class AppCategoryRespVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "分类编号", required = true, example = "2") | 13 | + @Schema(description = "分类编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "父分类编号", required = true, example = "1") | 16 | + @Schema(description = "父分类编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | @NotNull(message = "父分类编号不能为空") | 17 | @NotNull(message = "父分类编号不能为空") |
| 18 | private Long parentId; | 18 | private Long parentId; |
| 19 | 19 | ||
| 20 | - @Schema(description = "分类名称", required = true, example = "办公文具") | 20 | + @Schema(description = "分类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "办公文具") |
| 21 | @NotBlank(message = "分类名称不能为空") | 21 | @NotBlank(message = "分类名称不能为空") |
| 22 | private String name; | 22 | private String name; |
| 23 | 23 | ||
| 24 | - @Schema(description = "分类图片", required = true) | 24 | + @Schema(description = "分类图片", requiredMode = Schema.RequiredMode.REQUIRED) |
| 25 | @NotBlank(message = "分类图片不能为空") | 25 | @NotBlank(message = "分类图片不能为空") |
| 26 | private String picUrl; | 26 | private String picUrl; |
| 27 | 27 |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/app/property/vo/value/AppProductPropertyValueDetailRespVO.java
| @@ -7,16 +7,16 @@ import lombok.Data; | @@ -7,16 +7,16 @@ import lombok.Data; | ||
| 7 | @Data | 7 | @Data |
| 8 | public class AppProductPropertyValueDetailRespVO { | 8 | public class AppProductPropertyValueDetailRespVO { |
| 9 | 9 | ||
| 10 | - @Schema(description = "属性的编号", required = true, example = "1") | 10 | + @Schema(description = "属性的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 11 | private Long propertyId; | 11 | private Long propertyId; |
| 12 | 12 | ||
| 13 | - @Schema(description = "属性的名称", required = true, example = "颜色") | 13 | + @Schema(description = "属性的名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "颜色") |
| 14 | private String propertyName; | 14 | private String propertyName; |
| 15 | 15 | ||
| 16 | - @Schema(description = "属性值的编号", required = true, example = "1024") | 16 | + @Schema(description = "属性值的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long valueId; | 17 | private Long valueId; |
| 18 | 18 | ||
| 19 | - @Schema(description = "属性值的名称", required = true, example = "红色") | 19 | + @Schema(description = "属性值的名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "红色") |
| 20 | private String valueName; | 20 | private String valueName; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/app/spu/vo/AppProductSpuDetailRespVO.java
| @@ -10,41 +10,41 @@ import java.util.List; | @@ -10,41 +10,41 @@ import java.util.List; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class AppProductSpuDetailRespVO { | 11 | public class AppProductSpuDetailRespVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "商品 SPU 编号", required = true, example = "1") | 13 | + @Schema(description = "商品 SPU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 | ||
| 16 | // ========== 基本信息 ========= | 16 | // ========== 基本信息 ========= |
| 17 | 17 | ||
| 18 | - @Schema(description = "商品名称", required = true, example = "芋道") | 18 | + @Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 19 | private String name; | 19 | private String name; |
| 20 | 20 | ||
| 21 | @Schema(description = "促销语", example = "好吃!") | 21 | @Schema(description = "促销语", example = "好吃!") |
| 22 | private String sellPoint; | 22 | private String sellPoint; |
| 23 | 23 | ||
| 24 | - @Schema(description = "商品详情", required = true, example = "我是商品描述") | 24 | + @Schema(description = "商品详情", requiredMode = Schema.RequiredMode.REQUIRED, example = "我是商品描述") |
| 25 | private String description; | 25 | private String description; |
| 26 | 26 | ||
| 27 | - @Schema(description = "商品分类编号", required = true, example = "1") | 27 | + @Schema(description = "商品分类编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 28 | private Long categoryId; | 28 | private Long categoryId; |
| 29 | 29 | ||
| 30 | - @Schema(description = "商品图片的数组", required = true) | 30 | + @Schema(description = "商品图片的数组", requiredMode = Schema.RequiredMode.REQUIRED) |
| 31 | private List<String> picUrls; | 31 | private List<String> picUrls; |
| 32 | 32 | ||
| 33 | - @Schema(description = "商品视频", required = true) | 33 | + @Schema(description = "商品视频", requiredMode = Schema.RequiredMode.REQUIRED) |
| 34 | private String videoUrl; | 34 | private String videoUrl; |
| 35 | 35 | ||
| 36 | // ========== SKU 相关字段 ========= | 36 | // ========== SKU 相关字段 ========= |
| 37 | 37 | ||
| 38 | - @Schema(description = "规格类型", required = true, example = "1") | 38 | + @Schema(description = "规格类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 39 | private Integer specType; | 39 | private Integer specType; |
| 40 | 40 | ||
| 41 | - @Schema(description = "是否展示库存", required = true, example = "true") | 41 | + @Schema(description = "是否展示库存", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 42 | private Boolean showStock; | 42 | private Boolean showStock; |
| 43 | 43 | ||
| 44 | - @Schema(description = " 最小价格,单位使用:分", required = true, example = "1024") | 44 | + @Schema(description = " 最小价格,单位使用:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 45 | private Integer minPrice; | 45 | private Integer minPrice; |
| 46 | 46 | ||
| 47 | - @Schema(description = "最大价格,单位使用:分", required = true, example = "1024") | 47 | + @Schema(description = "最大价格,单位使用:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 48 | private Integer maxPrice; | 48 | private Integer maxPrice; |
| 49 | 49 | ||
| 50 | /** | 50 | /** |
| @@ -54,7 +54,7 @@ public class AppProductSpuDetailRespVO { | @@ -54,7 +54,7 @@ public class AppProductSpuDetailRespVO { | ||
| 54 | 54 | ||
| 55 | // ========== 统计相关字段 ========= | 55 | // ========== 统计相关字段 ========= |
| 56 | 56 | ||
| 57 | - @Schema(description = "商品销量", required = true, example = "1024") | 57 | + @Schema(description = "商品销量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 58 | private Integer salesCount; | 58 | private Integer salesCount; |
| 59 | 59 | ||
| 60 | @Schema(description = "用户 App - 商品 SPU 明细的 SKU 信息") | 60 | @Schema(description = "用户 App - 商品 SPU 明细的 SKU 信息") |
| @@ -69,16 +69,16 @@ public class AppProductSpuDetailRespVO { | @@ -69,16 +69,16 @@ public class AppProductSpuDetailRespVO { | ||
| 69 | */ | 69 | */ |
| 70 | private List<AppProductPropertyValueDetailRespVO> properties; | 70 | private List<AppProductPropertyValueDetailRespVO> properties; |
| 71 | 71 | ||
| 72 | - @Schema(description = "销售价格,单位:分", required = true, example = "1024") | 72 | + @Schema(description = "销售价格,单位:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 73 | private Integer price; | 73 | private Integer price; |
| 74 | 74 | ||
| 75 | @Schema(description = "市场价", example = "1024") | 75 | @Schema(description = "市场价", example = "1024") |
| 76 | private Integer marketPrice; | 76 | private Integer marketPrice; |
| 77 | 77 | ||
| 78 | - @Schema(description = "图片地址", required = true, example = "https://www.iocoder.cn/xx.png") | 78 | + @Schema(description = "图片地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/xx.png") |
| 79 | private String picUrl; | 79 | private String picUrl; |
| 80 | 80 | ||
| 81 | - @Schema(description = "库存", required = true, example = "1") | 81 | + @Schema(description = "库存", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 82 | private Integer stock; | 82 | private Integer stock; |
| 83 | 83 | ||
| 84 | @Schema(description = "商品重量", example = "1") // 单位:kg 千克 | 84 | @Schema(description = "商品重量", example = "1") // 单位:kg 千克 |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/app/spu/vo/AppProductSpuPageItemRespVO.java
| @@ -11,24 +11,24 @@ import java.util.List; | @@ -11,24 +11,24 @@ import java.util.List; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class AppProductSpuPageItemRespVO { | 12 | public class AppProductSpuPageItemRespVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "商品 SPU 编号", required = true, example = "1") | 14 | + @Schema(description = "商品 SPU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "商品名称", required = true, example = "芋道") | 17 | + @Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 18 | @NotEmpty(message = "商品名称不能为空") | 18 | @NotEmpty(message = "商品名称不能为空") |
| 19 | private String name; | 19 | private String name; |
| 20 | 20 | ||
| 21 | - @Schema(description = "分类编号", required = true) | 21 | + @Schema(description = "分类编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 22 | @NotNull(message = "分类编号不能为空") | 22 | @NotNull(message = "分类编号不能为空") |
| 23 | private Long categoryId; | 23 | private Long categoryId; |
| 24 | 24 | ||
| 25 | - @Schema(description = "商品图片的数组", required = true) | 25 | + @Schema(description = "商品图片的数组", requiredMode = Schema.RequiredMode.REQUIRED) |
| 26 | private List<String> picUrls; | 26 | private List<String> picUrls; |
| 27 | 27 | ||
| 28 | - @Schema(description = " 最小价格,单位使用:分", required = true, example = "1024") | 28 | + @Schema(description = " 最小价格,单位使用:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 29 | private Integer minPrice; | 29 | private Integer minPrice; |
| 30 | 30 | ||
| 31 | - @Schema(description = "最大价格,单位使用:分", required = true, example = "1024") | 31 | + @Schema(description = "最大价格,单位使用:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 32 | private Integer maxPrice; | 32 | private Integer maxPrice; |
| 33 | 33 | ||
| 34 | // ========== 统计相关字段 ========= | 34 | // ========== 统计相关字段 ========= |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/banner/vo/BannerBaseVO.java
| @@ -15,23 +15,23 @@ import javax.validation.constraints.NotNull; | @@ -15,23 +15,23 @@ import javax.validation.constraints.NotNull; | ||
| 15 | @Data | 15 | @Data |
| 16 | public class BannerBaseVO { | 16 | public class BannerBaseVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "标题", required = true) | 18 | + @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED) |
| 19 | @NotNull(message = "标题不能为空") | 19 | @NotNull(message = "标题不能为空") |
| 20 | private String title; | 20 | private String title; |
| 21 | 21 | ||
| 22 | - @Schema(description = "跳转链接", required = true) | 22 | + @Schema(description = "跳转链接", requiredMode = Schema.RequiredMode.REQUIRED) |
| 23 | @NotNull(message = "跳转链接不能为空") | 23 | @NotNull(message = "跳转链接不能为空") |
| 24 | private String url; | 24 | private String url; |
| 25 | 25 | ||
| 26 | - @Schema(description = "图片地址", required = true) | 26 | + @Schema(description = "图片地址", requiredMode = Schema.RequiredMode.REQUIRED) |
| 27 | @NotNull(message = "图片地址不能为空") | 27 | @NotNull(message = "图片地址不能为空") |
| 28 | private String picUrl; | 28 | private String picUrl; |
| 29 | 29 | ||
| 30 | - @Schema(description = "排序", required = true) | 30 | + @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED) |
| 31 | @NotNull(message = "排序不能为空") | 31 | @NotNull(message = "排序不能为空") |
| 32 | private Integer sort; | 32 | private Integer sort; |
| 33 | 33 | ||
| 34 | - @Schema(description = "状态", required = true) | 34 | + @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED) |
| 35 | @NotNull(message = "状态不能为空") | 35 | @NotNull(message = "状态不能为空") |
| 36 | @InEnum(CommonStatusEnum.class) | 36 | @InEnum(CommonStatusEnum.class) |
| 37 | private Integer status; | 37 | private Integer status; |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/banner/vo/BannerRespVO.java
| @@ -15,11 +15,11 @@ import java.time.LocalDateTime; | @@ -15,11 +15,11 @@ import java.time.LocalDateTime; | ||
| 15 | @ToString(callSuper = true) | 15 | @ToString(callSuper = true) |
| 16 | public class BannerRespVO extends BannerBaseVO { | 16 | public class BannerRespVO extends BannerBaseVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "banner编号", required = true) | 18 | + @Schema(description = "banner编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 19 | @NotNull(message = "banner编号不能为空") | 19 | @NotNull(message = "banner编号不能为空") |
| 20 | private Long id; | 20 | private Long id; |
| 21 | 21 | ||
| 22 | - @Schema(description = "创建时间", required = true) | 22 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 23 | private LocalDateTime createTime; | 23 | private LocalDateTime createTime; |
| 24 | 24 | ||
| 25 | } | 25 | } |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/banner/vo/BannerUpdateReqVO.java
| @@ -16,7 +16,7 @@ import javax.validation.constraints.NotNull; | @@ -16,7 +16,7 @@ import javax.validation.constraints.NotNull; | ||
| 16 | @ToString(callSuper = true) | 16 | @ToString(callSuper = true) |
| 17 | public class BannerUpdateReqVO extends BannerBaseVO { | 17 | public class BannerUpdateReqVO extends BannerBaseVO { |
| 18 | 18 | ||
| 19 | - @Schema(description = "banner 编号", required = true) | 19 | + @Schema(description = "banner 编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | @NotNull(message = "banner 编号不能为空") | 20 | @NotNull(message = "banner 编号不能为空") |
| 21 | private Long id; | 21 | private Long id; |
| 22 | 22 |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/coupon/vo/coupon/CouponBaseVO.java
| @@ -24,31 +24,31 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DE | @@ -24,31 +24,31 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DE | ||
| 24 | public class CouponBaseVO { | 24 | public class CouponBaseVO { |
| 25 | 25 | ||
| 26 | // ========== 基本信息 BEGIN ========== | 26 | // ========== 基本信息 BEGIN ========== |
| 27 | - @Schema(description = "优惠劵模板编号", required = true, example = "1024") | 27 | + @Schema(description = "优惠劵模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 28 | @NotNull(message = "优惠劵模板编号不能为空") | 28 | @NotNull(message = "优惠劵模板编号不能为空") |
| 29 | private Integer templateId; | 29 | private Integer templateId; |
| 30 | 30 | ||
| 31 | - @Schema(description = "优惠劵名", required = true, example = "春节送送送") | 31 | + @Schema(description = "优惠劵名", requiredMode = Schema.RequiredMode.REQUIRED, example = "春节送送送") |
| 32 | @NotNull(message = "优惠劵名不能为空") | 32 | @NotNull(message = "优惠劵名不能为空") |
| 33 | private String name; | 33 | private String name; |
| 34 | 34 | ||
| 35 | - @Schema(description = "优惠码状态", required = true, example = "1") | 35 | + @Schema(description = "优惠码状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 36 | private Integer status; | 36 | private Integer status; |
| 37 | 37 | ||
| 38 | // ========== 基本信息 END ========== | 38 | // ========== 基本信息 END ========== |
| 39 | 39 | ||
| 40 | // ========== 领取情况 BEGIN ========== | 40 | // ========== 领取情况 BEGIN ========== |
| 41 | - @Schema(description = "用户编号", required = true, example = "1") | 41 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 42 | @NotNull(message = "用户编号不能为空") | 42 | @NotNull(message = "用户编号不能为空") |
| 43 | private Long userId; | 43 | private Long userId; |
| 44 | 44 | ||
| 45 | - @Schema(description = "领取方式", required = true, example = "1") | 45 | + @Schema(description = "领取方式", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 46 | @NotNull(message = "领取方式不能为空") | 46 | @NotNull(message = "领取方式不能为空") |
| 47 | private Integer takeType; | 47 | private Integer takeType; |
| 48 | // ========== 领取情况 END ========== | 48 | // ========== 领取情况 END ========== |
| 49 | 49 | ||
| 50 | // ========== 使用规则 BEGIN ========== | 50 | // ========== 使用规则 BEGIN ========== |
| 51 | - @Schema(description = "是否设置满多少金额可用", required = true, example = "100") // 单位:分;0 - 不限制 | 51 | + @Schema(description = "是否设置满多少金额可用", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") // 单位:分;0 - 不限制 |
| 52 | @NotNull(message = "是否设置满多少金额可用不能为空") | 52 | @NotNull(message = "是否设置满多少金额可用不能为空") |
| 53 | private Integer usePrice; | 53 | private Integer usePrice; |
| 54 | 54 | ||
| @@ -62,7 +62,7 @@ public class CouponBaseVO { | @@ -62,7 +62,7 @@ public class CouponBaseVO { | ||
| 62 | @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT) | 62 | @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT) |
| 63 | private LocalDateTime validEndTime; | 63 | private LocalDateTime validEndTime; |
| 64 | 64 | ||
| 65 | - @Schema(description = "商品范围", required = true, example = "1") | 65 | + @Schema(description = "商品范围", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 66 | @NotNull(message = "商品范围不能为空") | 66 | @NotNull(message = "商品范围不能为空") |
| 67 | @InEnum(PromotionProductScopeEnum.class) | 67 | @InEnum(PromotionProductScopeEnum.class) |
| 68 | private Integer productScope; | 68 | private Integer productScope; |
| @@ -72,7 +72,7 @@ public class CouponBaseVO { | @@ -72,7 +72,7 @@ public class CouponBaseVO { | ||
| 72 | // ========== 使用规则 END ========== | 72 | // ========== 使用规则 END ========== |
| 73 | 73 | ||
| 74 | // ========== 使用效果 BEGIN ========== | 74 | // ========== 使用效果 BEGIN ========== |
| 75 | - @Schema(description = "优惠类型", required = true, example = "1") | 75 | + @Schema(description = "优惠类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 76 | @NotNull(message = "优惠类型不能为空") | 76 | @NotNull(message = "优惠类型不能为空") |
| 77 | @InEnum(PromotionDiscountTypeEnum.class) | 77 | @InEnum(PromotionDiscountTypeEnum.class) |
| 78 | private Integer discountType; | 78 | private Integer discountType; |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/coupon/vo/coupon/CouponRespVO.java
| @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class CouponRespVO extends CouponBaseVO { | 14 | public class CouponRespVO extends CouponBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "优惠劵编号", required = true, example = "1024") | 16 | + @Schema(description = "优惠劵编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "创建时间", required = true) | 19 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private LocalDateTime createTime; | 20 | private LocalDateTime createTime; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/coupon/vo/template/CouponTemplateBaseVO.java
| @@ -29,27 +29,27 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DE | @@ -29,27 +29,27 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DE | ||
| 29 | @Data | 29 | @Data |
| 30 | public class CouponTemplateBaseVO { | 30 | public class CouponTemplateBaseVO { |
| 31 | 31 | ||
| 32 | - @Schema(description = "优惠劵名", required = true, example = "春节送送送") | 32 | + @Schema(description = "优惠劵名", requiredMode = Schema.RequiredMode.REQUIRED, example = "春节送送送") |
| 33 | @NotNull(message = "优惠劵名不能为空") | 33 | @NotNull(message = "优惠劵名不能为空") |
| 34 | private String name; | 34 | private String name; |
| 35 | 35 | ||
| 36 | - @Schema(description = "发行总量", required = true, example = "1024") // -1 - 则表示不限制发放数量 | 36 | + @Schema(description = "发行总量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") // -1 - 则表示不限制发放数量 |
| 37 | @NotNull(message = "发行总量不能为空") | 37 | @NotNull(message = "发行总量不能为空") |
| 38 | private Integer totalCount; | 38 | private Integer totalCount; |
| 39 | 39 | ||
| 40 | - @Schema(description = "每人限领个数", required = true, example = "66") // -1 - 则表示不限制 | 40 | + @Schema(description = "每人限领个数", requiredMode = Schema.RequiredMode.REQUIRED, example = "66") // -1 - 则表示不限制 |
| 41 | @NotNull(message = "每人限领个数不能为空") | 41 | @NotNull(message = "每人限领个数不能为空") |
| 42 | private Integer takeLimitCount; | 42 | private Integer takeLimitCount; |
| 43 | 43 | ||
| 44 | - @Schema(description = "领取方式", required = true, example = "1") | 44 | + @Schema(description = "领取方式", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 45 | @NotNull(message = "领取方式不能为空") | 45 | @NotNull(message = "领取方式不能为空") |
| 46 | private Integer takeType; | 46 | private Integer takeType; |
| 47 | 47 | ||
| 48 | - @Schema(description = "是否设置满多少金额可用", required = true, example = "100") // 单位:分;0 - 不限制 | 48 | + @Schema(description = "是否设置满多少金额可用", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") // 单位:分;0 - 不限制 |
| 49 | @NotNull(message = "是否设置满多少金额可用不能为空") | 49 | @NotNull(message = "是否设置满多少金额可用不能为空") |
| 50 | private Integer usePrice; | 50 | private Integer usePrice; |
| 51 | 51 | ||
| 52 | - @Schema(description = "商品范围", required = true, example = "1") | 52 | + @Schema(description = "商品范围", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 53 | @NotNull(message = "商品范围不能为空") | 53 | @NotNull(message = "商品范围不能为空") |
| 54 | @InEnum(PromotionProductScopeEnum.class) | 54 | @InEnum(PromotionProductScopeEnum.class) |
| 55 | private Integer productScope; | 55 | private Integer productScope; |
| @@ -57,7 +57,7 @@ public class CouponTemplateBaseVO { | @@ -57,7 +57,7 @@ public class CouponTemplateBaseVO { | ||
| 57 | @Schema(description = "商品 SPU 编号的数组", example = "1,3") | 57 | @Schema(description = "商品 SPU 编号的数组", example = "1,3") |
| 58 | private List<Long> productSpuIds; | 58 | private List<Long> productSpuIds; |
| 59 | 59 | ||
| 60 | - @Schema(description = "生效日期类型", required = true, example = "1") | 60 | + @Schema(description = "生效日期类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 61 | @NotNull(message = "生效日期类型不能为空") | 61 | @NotNull(message = "生效日期类型不能为空") |
| 62 | @InEnum(CouponTemplateValidityTypeEnum.class) | 62 | @InEnum(CouponTemplateValidityTypeEnum.class) |
| 63 | private Integer validityType; | 63 | private Integer validityType; |
| @@ -80,7 +80,7 @@ public class CouponTemplateBaseVO { | @@ -80,7 +80,7 @@ public class CouponTemplateBaseVO { | ||
| 80 | @Min(value = 1L, message = "开始天数必须大于 1") | 80 | @Min(value = 1L, message = "开始天数必须大于 1") |
| 81 | private Integer fixedEndTerm; | 81 | private Integer fixedEndTerm; |
| 82 | 82 | ||
| 83 | - @Schema(description = "优惠类型", required = true, example = "1") | 83 | + @Schema(description = "优惠类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 84 | @NotNull(message = "优惠类型不能为空") | 84 | @NotNull(message = "优惠类型不能为空") |
| 85 | @InEnum(PromotionDiscountTypeEnum.class) | 85 | @InEnum(PromotionDiscountTypeEnum.class) |
| 86 | private Integer discountType; | 86 | private Integer discountType; |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/coupon/vo/template/CouponTemplateRespVO.java
| @@ -15,20 +15,20 @@ import java.time.LocalDateTime; | @@ -15,20 +15,20 @@ import java.time.LocalDateTime; | ||
| 15 | @ToString(callSuper = true) | 15 | @ToString(callSuper = true) |
| 16 | public class CouponTemplateRespVO extends CouponTemplateBaseVO { | 16 | public class CouponTemplateRespVO extends CouponTemplateBaseVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "模板编号", required = true, example = "1024") | 18 | + @Schema(description = "模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 19 | private Long id; | 19 | private Long id; |
| 20 | 20 | ||
| 21 | - @Schema(description = "状态", required = true, example = "1") | 21 | + @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 22 | @InEnum(CommonStatusEnum.class) | 22 | @InEnum(CommonStatusEnum.class) |
| 23 | private Integer status; | 23 | private Integer status; |
| 24 | 24 | ||
| 25 | - @Schema(description = "领取优惠券的数量", required = true, example = "1024") | 25 | + @Schema(description = "领取优惠券的数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 26 | private Integer takeCount; | 26 | private Integer takeCount; |
| 27 | 27 | ||
| 28 | - @Schema(description = "使用优惠券的次数", required = true, example = "2048") | 28 | + @Schema(description = "使用优惠券的次数", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 29 | private Integer useCount; | 29 | private Integer useCount; |
| 30 | 30 | ||
| 31 | - @Schema(description = "创建时间", required = true) | 31 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 32 | private LocalDateTime createTime; | 32 | private LocalDateTime createTime; |
| 33 | 33 | ||
| 34 | } | 34 | } |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/coupon/vo/template/CouponTemplateUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class CouponTemplateUpdateReqVO extends CouponTemplateBaseVO { | 14 | public class CouponTemplateUpdateReqVO extends CouponTemplateBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "模板编号", required = true, example = "1024") | 16 | + @Schema(description = "模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "模板编号不能为空") | 17 | @NotNull(message = "模板编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/coupon/vo/template/CouponTemplateUpdateStatusReqVO.java
| @@ -11,11 +11,11 @@ import javax.validation.constraints.NotNull; | @@ -11,11 +11,11 @@ import javax.validation.constraints.NotNull; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class CouponTemplateUpdateStatusReqVO { | 12 | public class CouponTemplateUpdateStatusReqVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "优惠劵模板编号", required = true, example = "1024") | 14 | + @Schema(description = "优惠劵模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | @NotNull(message = "优惠劵模板编号不能为空") | 15 | @NotNull(message = "优惠劵模板编号不能为空") |
| 16 | private Long id; | 16 | private Long id; |
| 17 | 17 | ||
| 18 | - @Schema(description = "状态", required = true, example = "1") | 18 | + @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 19 | @NotNull(message = "状态不能为空") | 19 | @NotNull(message = "状态不能为空") |
| 20 | @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") | 20 | @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") |
| 21 | private Integer status; | 21 | private Integer status; |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/discount/vo/DiscountActivityBaseVO.java
| @@ -22,16 +22,16 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | @@ -22,16 +22,16 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | ||
| 22 | @Data | 22 | @Data |
| 23 | public class DiscountActivityBaseVO { | 23 | public class DiscountActivityBaseVO { |
| 24 | 24 | ||
| 25 | - @Schema(description = "活动标题", required = true, example = "一个标题") | 25 | + @Schema(description = "活动标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "一个标题") |
| 26 | @NotNull(message = "活动标题不能为空") | 26 | @NotNull(message = "活动标题不能为空") |
| 27 | private String name; | 27 | private String name; |
| 28 | 28 | ||
| 29 | - @Schema(description = "开始时间", required = true) | 29 | + @Schema(description = "开始时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 30 | @NotNull(message = "开始时间不能为空") | 30 | @NotNull(message = "开始时间不能为空") |
| 31 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 31 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
| 32 | private LocalDateTime startTime; | 32 | private LocalDateTime startTime; |
| 33 | 33 | ||
| 34 | - @Schema(description = "结束时间", required = true) | 34 | + @Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 35 | @NotNull(message = "结束时间不能为空") | 35 | @NotNull(message = "结束时间不能为空") |
| 36 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 36 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
| 37 | private LocalDateTime endTime; | 37 | private LocalDateTime endTime; |
| @@ -43,15 +43,15 @@ public class DiscountActivityBaseVO { | @@ -43,15 +43,15 @@ public class DiscountActivityBaseVO { | ||
| 43 | @Data | 43 | @Data |
| 44 | public static class Product { | 44 | public static class Product { |
| 45 | 45 | ||
| 46 | - @Schema(description = "商品 SPU 编号", required = true, example = "1") | 46 | + @Schema(description = "商品 SPU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 47 | @NotNull(message = "商品 SPU 编号不能为空") | 47 | @NotNull(message = "商品 SPU 编号不能为空") |
| 48 | private Long spuId; | 48 | private Long spuId; |
| 49 | 49 | ||
| 50 | - @Schema(description = "商品 SKU 编号", required = true, example = "1") | 50 | + @Schema(description = "商品 SKU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 51 | @NotNull(message = "商品 SKU 编号不能为空") | 51 | @NotNull(message = "商品 SKU 编号不能为空") |
| 52 | private Long skuId; | 52 | private Long skuId; |
| 53 | 53 | ||
| 54 | - @Schema(description = "优惠类型", required = true, example = "1") | 54 | + @Schema(description = "优惠类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 55 | @NotNull(message = "优惠类型不能为空") | 55 | @NotNull(message = "优惠类型不能为空") |
| 56 | @InEnum(PromotionDiscountTypeEnum.class) | 56 | @InEnum(PromotionDiscountTypeEnum.class) |
| 57 | private Integer discountType; | 57 | private Integer discountType; |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/discount/vo/DiscountActivityRespVO.java
| @@ -14,14 +14,14 @@ import java.time.LocalDateTime; | @@ -14,14 +14,14 @@ import java.time.LocalDateTime; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class DiscountActivityRespVO extends DiscountActivityBaseVO { | 15 | public class DiscountActivityRespVO extends DiscountActivityBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "活动编号", required = true, example = "1024") | 17 | + @Schema(description = "活动编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 | ||
| 20 | - @Schema(description = "活动状态", required = true, example = "1") | 20 | + @Schema(description = "活动状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 21 | @NotNull(message = "活动状态不能为空") | 21 | @NotNull(message = "活动状态不能为空") |
| 22 | private Integer status; | 22 | private Integer status; |
| 23 | 23 | ||
| 24 | - @Schema(description = "创建时间", required = true) | 24 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 25 | private LocalDateTime createTime; | 25 | private LocalDateTime createTime; |
| 26 | 26 | ||
| 27 | } | 27 | } |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/discount/vo/DiscountActivityUpdateReqVO.java
| @@ -16,7 +16,7 @@ import java.util.List; | @@ -16,7 +16,7 @@ import java.util.List; | ||
| 16 | @ToString(callSuper = true) | 16 | @ToString(callSuper = true) |
| 17 | public class DiscountActivityUpdateReqVO extends DiscountActivityBaseVO { | 17 | public class DiscountActivityUpdateReqVO extends DiscountActivityBaseVO { |
| 18 | 18 | ||
| 19 | - @Schema(description = "活动编号", required = true, example = "1024") | 19 | + @Schema(description = "活动编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 20 | @NotNull(message = "活动编号不能为空") | 20 | @NotNull(message = "活动编号不能为空") |
| 21 | private Long id; | 21 | private Long id; |
| 22 | 22 |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/reward/vo/RewardActivityBaseVO.java
| @@ -25,16 +25,16 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | @@ -25,16 +25,16 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | ||
| 25 | @Data | 25 | @Data |
| 26 | public class RewardActivityBaseVO { | 26 | public class RewardActivityBaseVO { |
| 27 | 27 | ||
| 28 | - @Schema(description = "活动标题", required = true, example = "满啦满啦") | 28 | + @Schema(description = "活动标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "满啦满啦") |
| 29 | @NotNull(message = "活动标题不能为空") | 29 | @NotNull(message = "活动标题不能为空") |
| 30 | private String name; | 30 | private String name; |
| 31 | 31 | ||
| 32 | - @Schema(description = "开始时间", required = true) | 32 | + @Schema(description = "开始时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 33 | @NotNull(message = "开始时间不能为空") | 33 | @NotNull(message = "开始时间不能为空") |
| 34 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 34 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
| 35 | private LocalDateTime startTime; | 35 | private LocalDateTime startTime; |
| 36 | 36 | ||
| 37 | - @Schema(description = "结束时间", required = true) | 37 | + @Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 38 | @NotNull(message = "结束时间不能为空") | 38 | @NotNull(message = "结束时间不能为空") |
| 39 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 39 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
| 40 | @Future(message = "结束时间必须大于当前时间") | 40 | @Future(message = "结束时间必须大于当前时间") |
| @@ -43,12 +43,12 @@ public class RewardActivityBaseVO { | @@ -43,12 +43,12 @@ public class RewardActivityBaseVO { | ||
| 43 | @Schema(description = "备注", example = "biubiubiu") | 43 | @Schema(description = "备注", example = "biubiubiu") |
| 44 | private String remark; | 44 | private String remark; |
| 45 | 45 | ||
| 46 | - @Schema(description = "条件类型", required = true, example = "1") | 46 | + @Schema(description = "条件类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 47 | @NotNull(message = "条件类型不能为空") | 47 | @NotNull(message = "条件类型不能为空") |
| 48 | @InEnum(value = PromotionConditionTypeEnum.class, message = "条件类型必须是 {value}") | 48 | @InEnum(value = PromotionConditionTypeEnum.class, message = "条件类型必须是 {value}") |
| 49 | private Integer conditionType; | 49 | private Integer conditionType; |
| 50 | 50 | ||
| 51 | - @Schema(description = "商品范围", required = true, example = "1") | 51 | + @Schema(description = "商品范围", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 52 | @NotNull(message = "商品范围不能为空") | 52 | @NotNull(message = "商品范围不能为空") |
| 53 | @InEnum(value = PromotionConditionTypeEnum.class, message = "商品范围必须是 {value}") | 53 | @InEnum(value = PromotionConditionTypeEnum.class, message = "商品范围必须是 {value}") |
| 54 | private Integer productScope; | 54 | private Integer productScope; |
| @@ -66,18 +66,18 @@ public class RewardActivityBaseVO { | @@ -66,18 +66,18 @@ public class RewardActivityBaseVO { | ||
| 66 | @Data | 66 | @Data |
| 67 | public static class Rule { | 67 | public static class Rule { |
| 68 | 68 | ||
| 69 | - @Schema(description = "优惠门槛", required = true, example = "100") // 1. 满 N 元,单位:分; 2. 满 N 件 | 69 | + @Schema(description = "优惠门槛", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") // 1. 满 N 元,单位:分; 2. 满 N 件 |
| 70 | @Min(value = 1L, message = "优惠门槛必须大于等于 1") | 70 | @Min(value = 1L, message = "优惠门槛必须大于等于 1") |
| 71 | private Integer limit; | 71 | private Integer limit; |
| 72 | 72 | ||
| 73 | - @Schema(description = "优惠价格", required = true, example = "100") | 73 | + @Schema(description = "优惠价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 74 | @Min(value = 1L, message = "优惠价格必须大于等于 1") | 74 | @Min(value = 1L, message = "优惠价格必须大于等于 1") |
| 75 | private Integer discountPrice; | 75 | private Integer discountPrice; |
| 76 | 76 | ||
| 77 | - @Schema(description = "是否包邮", required = true, example = "true") | 77 | + @Schema(description = "是否包邮", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 78 | private Boolean freeDelivery; | 78 | private Boolean freeDelivery; |
| 79 | 79 | ||
| 80 | - @Schema(description = "赠送的积分", required = true, example = "100") | 80 | + @Schema(description = "赠送的积分", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 81 | @Min(value = 1L, message = "赠送的积分必须大于等于 1") | 81 | @Min(value = 1L, message = "赠送的积分必须大于等于 1") |
| 82 | private Integer point; | 82 | private Integer point; |
| 83 | 83 |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/reward/vo/RewardActivityRespVO.java
| @@ -13,13 +13,13 @@ import java.time.LocalDateTime; | @@ -13,13 +13,13 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class RewardActivityRespVO extends RewardActivityBaseVO { | 14 | public class RewardActivityRespVO extends RewardActivityBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "活动编号", required = true, example = "1024") | 16 | + @Schema(description = "活动编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Integer id; | 17 | private Integer id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "活动状态", required = true, example = "1") | 19 | + @Schema(description = "活动状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 20 | private Integer status; | 20 | private Integer status; |
| 21 | 21 | ||
| 22 | - @Schema(description = "创建时间", required = true) | 22 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 23 | private LocalDateTime createTime; | 23 | private LocalDateTime createTime; |
| 24 | 24 | ||
| 25 | } | 25 | } |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/reward/vo/RewardActivityUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class RewardActivityUpdateReqVO extends RewardActivityBaseVO { | 14 | public class RewardActivityUpdateReqVO extends RewardActivityBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "活动编号", required = true, example = "1024") | 16 | + @Schema(description = "活动编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "活动编号不能为空") | 17 | @NotNull(message = "活动编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/seckill/vo/activity/SeckillActivityBaseVO.java
| @@ -19,17 +19,17 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DE | @@ -19,17 +19,17 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DE | ||
| 19 | @Data | 19 | @Data |
| 20 | public class SeckillActivityBaseVO { | 20 | public class SeckillActivityBaseVO { |
| 21 | 21 | ||
| 22 | - @Schema(description = "秒杀活动名称", required = true, example = "晚九点限时秒杀") | 22 | + @Schema(description = "秒杀活动名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "晚九点限时秒杀") |
| 23 | @NotNull(message = "秒杀活动名称不能为空") | 23 | @NotNull(message = "秒杀活动名称不能为空") |
| 24 | private String name; | 24 | private String name; |
| 25 | 25 | ||
| 26 | - @Schema(description = "活动开始时间", required = true) | 26 | + @Schema(description = "活动开始时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 27 | @NotNull(message = "活动开始时间不能为空") | 27 | @NotNull(message = "活动开始时间不能为空") |
| 28 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 28 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
| 29 | @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT) | 29 | @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT) |
| 30 | private LocalDateTime startTime; | 30 | private LocalDateTime startTime; |
| 31 | 31 | ||
| 32 | - @Schema(description = "活动结束时间", required = true) | 32 | + @Schema(description = "活动结束时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 33 | @NotNull(message = "活动结束时间不能为空") | 33 | @NotNull(message = "活动结束时间不能为空") |
| 34 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 34 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
| 35 | @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT) | 35 | @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT) |
| @@ -40,15 +40,15 @@ public class SeckillActivityBaseVO { | @@ -40,15 +40,15 @@ public class SeckillActivityBaseVO { | ||
| 40 | @Data | 40 | @Data |
| 41 | public static class Product { | 41 | public static class Product { |
| 42 | 42 | ||
| 43 | - @Schema(description = "商品 SPU 编号", required = true, example = "1") | 43 | + @Schema(description = "商品 SPU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 44 | @NotNull(message = "商品 SPU 编号不能为空") | 44 | @NotNull(message = "商品 SPU 编号不能为空") |
| 45 | private Long spuId; | 45 | private Long spuId; |
| 46 | 46 | ||
| 47 | - @Schema(description = "商品 SKU 编号", required = true, example = "1") | 47 | + @Schema(description = "商品 SKU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 48 | @NotNull(message = "商品 SKU 编号不能为空") | 48 | @NotNull(message = "商品 SKU 编号不能为空") |
| 49 | private Long skuId; | 49 | private Long skuId; |
| 50 | 50 | ||
| 51 | - @Schema(description = "秒杀金额", required = true, example = "12.00") | 51 | + @Schema(description = "秒杀金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "12.00") |
| 52 | @NotNull(message = "秒杀金额不能为空") | 52 | @NotNull(message = "秒杀金额不能为空") |
| 53 | private Integer seckillPrice; | 53 | private Integer seckillPrice; |
| 54 | 54 |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/seckill/vo/activity/SeckillActivityCreateReqVO.java
| @@ -19,11 +19,11 @@ public class SeckillActivityCreateReqVO extends SeckillActivityBaseVO { | @@ -19,11 +19,11 @@ public class SeckillActivityCreateReqVO extends SeckillActivityBaseVO { | ||
| 19 | @Schema(description = "备注", example = "限时秒杀活动") | 19 | @Schema(description = "备注", example = "限时秒杀活动") |
| 20 | private String remark; | 20 | private String remark; |
| 21 | 21 | ||
| 22 | - @Schema(description = "排序", required = true, example = "1") | 22 | + @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 23 | @NotNull(message = "排序不能为空") | 23 | @NotNull(message = "排序不能为空") |
| 24 | private Integer sort; | 24 | private Integer sort; |
| 25 | 25 | ||
| 26 | - @Schema(description = "秒杀时段id", required = true, example = "1,3") | 26 | + @Schema(description = "秒杀时段id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1,3") |
| 27 | @NotEmpty(message = "参与场次不能为空") | 27 | @NotEmpty(message = "参与场次不能为空") |
| 28 | private List<Long> timeIds; | 28 | private List<Long> timeIds; |
| 29 | 29 |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/seckill/vo/activity/SeckillActivityRespVO.java
| @@ -14,22 +14,22 @@ import java.util.List; | @@ -14,22 +14,22 @@ import java.util.List; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class SeckillActivityRespVO extends SeckillActivityBaseVO { | 15 | public class SeckillActivityRespVO extends SeckillActivityBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "秒杀活动id", required = true, example = "1") | 17 | + @Schema(description = "秒杀活动id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 | ||
| 20 | - @Schema(description = "付款订单数", required = true, example = "1") | 20 | + @Schema(description = "付款订单数", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 21 | private Integer orderCount; | 21 | private Integer orderCount; |
| 22 | 22 | ||
| 23 | - @Schema(description = "付款人数", required = true, example = "1") | 23 | + @Schema(description = "付款人数", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 24 | private Integer userCount; | 24 | private Integer userCount; |
| 25 | 25 | ||
| 26 | - @Schema(description = "创建时间", required = true) | 26 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 27 | private LocalDateTime createTime; | 27 | private LocalDateTime createTime; |
| 28 | 28 | ||
| 29 | - @Schema(description = "秒杀时段id", required = true, example = "1,3") | 29 | + @Schema(description = "秒杀时段id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1,3") |
| 30 | private List<Long> timeIds; | 30 | private List<Long> timeIds; |
| 31 | 31 | ||
| 32 | - @Schema(description = "排序", required = true, example = "1") | 32 | + @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 33 | private Integer sort; | 33 | private Integer sort; |
| 34 | 34 | ||
| 35 | @Schema(description = "备注", example = "限时秒杀活动") | 35 | @Schema(description = "备注", example = "限时秒杀活动") |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/seckill/vo/activity/SeckillActivityUpdateReqVO.java
| @@ -16,18 +16,18 @@ import java.util.List; | @@ -16,18 +16,18 @@ import java.util.List; | ||
| 16 | @ToString(callSuper = true) | 16 | @ToString(callSuper = true) |
| 17 | public class SeckillActivityUpdateReqVO extends SeckillActivityBaseVO { | 17 | public class SeckillActivityUpdateReqVO extends SeckillActivityBaseVO { |
| 18 | 18 | ||
| 19 | - @Schema(description = "秒杀活动编号", required = true, example = "224") | 19 | + @Schema(description = "秒杀活动编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "224") |
| 20 | @NotNull(message = "秒杀活动编号不能为空") | 20 | @NotNull(message = "秒杀活动编号不能为空") |
| 21 | private Long id; | 21 | private Long id; |
| 22 | 22 | ||
| 23 | @Schema(description = "备注", example = "限时秒杀活动") | 23 | @Schema(description = "备注", example = "限时秒杀活动") |
| 24 | private String remark; | 24 | private String remark; |
| 25 | 25 | ||
| 26 | - @Schema(description = "排序", required = true, example = "1") | 26 | + @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 27 | @NotNull(message = "排序不能为空") | 27 | @NotNull(message = "排序不能为空") |
| 28 | private Integer sort; | 28 | private Integer sort; |
| 29 | 29 | ||
| 30 | - @Schema(description = "秒杀时段id", required = true, example = "1,3") | 30 | + @Schema(description = "秒杀时段id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1,3") |
| 31 | @NotEmpty(message = "秒杀时段id不能为空") | 31 | @NotEmpty(message = "秒杀时段id不能为空") |
| 32 | private List<Long> timeIds; | 32 | private List<Long> timeIds; |
| 33 | 33 |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/seckill/vo/time/SeckillTimeBaseVO.java
| @@ -13,15 +13,15 @@ import java.time.LocalTime; | @@ -13,15 +13,15 @@ import java.time.LocalTime; | ||
| 13 | @Data | 13 | @Data |
| 14 | public class SeckillTimeBaseVO { | 14 | public class SeckillTimeBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "秒杀时段名称", required = true, example = "上午场") | 16 | + @Schema(description = "秒杀时段名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "上午场") |
| 17 | @NotNull(message = "秒杀时段名称不能为空") | 17 | @NotNull(message = "秒杀时段名称不能为空") |
| 18 | private String name; | 18 | private String name; |
| 19 | 19 | ||
| 20 | - @Schema(description = "开始时间点", required = true, example = "16:30:40") | 20 | + @Schema(description = "开始时间点", requiredMode = Schema.RequiredMode.REQUIRED, example = "16:30:40") |
| 21 | @NotNull(message = "开始时间点不能为空") | 21 | @NotNull(message = "开始时间点不能为空") |
| 22 | private LocalTime startTime; | 22 | private LocalTime startTime; |
| 23 | 23 | ||
| 24 | - @Schema(description = "结束时间点", required = true, example = "16:30:40") | 24 | + @Schema(description = "结束时间点", requiredMode = Schema.RequiredMode.REQUIRED, example = "16:30:40") |
| 25 | @NotNull(message = "结束时间点不能为空") | 25 | @NotNull(message = "结束时间点不能为空") |
| 26 | private LocalTime endTime; | 26 | private LocalTime endTime; |
| 27 | 27 |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/seckill/vo/time/SeckillTimeRespVO.java
| @@ -13,13 +13,13 @@ import java.time.LocalDateTime; | @@ -13,13 +13,13 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class SeckillTimeRespVO extends SeckillTimeBaseVO { | 14 | public class SeckillTimeRespVO extends SeckillTimeBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "秒杀活动数量", required = true, example = "1") | 19 | + @Schema(description = "秒杀活动数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 20 | private Integer seckillActivityCount; | 20 | private Integer seckillActivityCount; |
| 21 | 21 | ||
| 22 | - @Schema(description = "创建时间", required = true) | 22 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 23 | private LocalDateTime createTime; | 23 | private LocalDateTime createTime; |
| 24 | 24 | ||
| 25 | } | 25 | } |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/seckill/vo/time/SeckillTimeUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class SeckillTimeUpdateReqVO extends SeckillTimeBaseVO { | 14 | public class SeckillTimeUpdateReqVO extends SeckillTimeBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | @NotNull(message = "编号不能为空") | 17 | @NotNull(message = "编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/aftersale/vo/TradeAfterSaleBaseVO.java
| @@ -17,27 +17,27 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | @@ -17,27 +17,27 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | ||
| 17 | @Data | 17 | @Data |
| 18 | public class TradeAfterSaleBaseVO { | 18 | public class TradeAfterSaleBaseVO { |
| 19 | 19 | ||
| 20 | - @Schema(description = "售后流水号", required = true, example = "202211190847450020500077") | 20 | + @Schema(description = "售后流水号", requiredMode = Schema.RequiredMode.REQUIRED, example = "202211190847450020500077") |
| 21 | @NotNull(message = "售后流水号不能为空") | 21 | @NotNull(message = "售后流水号不能为空") |
| 22 | private String no; | 22 | private String no; |
| 23 | 23 | ||
| 24 | - @Schema(description = "售后状态", required = true, example = "10") | 24 | + @Schema(description = "售后状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 25 | @NotNull(message = "售后状态不能为空") | 25 | @NotNull(message = "售后状态不能为空") |
| 26 | private Integer status; | 26 | private Integer status; |
| 27 | 27 | ||
| 28 | - @Schema(description = "售后类型", required = true, example = "20") | 28 | + @Schema(description = "售后类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "20") |
| 29 | @NotNull(message = "售后类型不能为空") | 29 | @NotNull(message = "售后类型不能为空") |
| 30 | private Integer type; | 30 | private Integer type; |
| 31 | 31 | ||
| 32 | - @Schema(description = "售后方式", required = true, example = "10") | 32 | + @Schema(description = "售后方式", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 33 | @NotNull(message = "售后方式不能为空") | 33 | @NotNull(message = "售后方式不能为空") |
| 34 | private Integer way; | 34 | private Integer way; |
| 35 | 35 | ||
| 36 | - @Schema(description = "用户编号", required = true, example = "30337") | 36 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "30337") |
| 37 | @NotNull(message = "用户编号不能为空") | 37 | @NotNull(message = "用户编号不能为空") |
| 38 | private Long userId; | 38 | private Long userId; |
| 39 | 39 | ||
| 40 | - @Schema(description = "申请原因", required = true, example = "不喜欢") | 40 | + @Schema(description = "申请原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "不喜欢") |
| 41 | @NotNull(message = "申请原因不能为空") | 41 | @NotNull(message = "申请原因不能为空") |
| 42 | private String applyReason; | 42 | private String applyReason; |
| 43 | 43 | ||
| @@ -47,34 +47,34 @@ public class TradeAfterSaleBaseVO { | @@ -47,34 +47,34 @@ public class TradeAfterSaleBaseVO { | ||
| 47 | @Schema(description = "补充凭证图片", example = "https://www.iocoder.cn/1.png") | 47 | @Schema(description = "补充凭证图片", example = "https://www.iocoder.cn/1.png") |
| 48 | private List<String> applyPicUrls; | 48 | private List<String> applyPicUrls; |
| 49 | 49 | ||
| 50 | - @Schema(description = "订单编号", required = true, example = "18078") | 50 | + @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18078") |
| 51 | @NotNull(message = "订单编号不能为空") | 51 | @NotNull(message = "订单编号不能为空") |
| 52 | private Long orderId; | 52 | private Long orderId; |
| 53 | 53 | ||
| 54 | - @Schema(description = "订单流水号", required = true, example = "2022111917190001") | 54 | + @Schema(description = "订单流水号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2022111917190001") |
| 55 | @NotNull(message = "订单流水号不能为空") | 55 | @NotNull(message = "订单流水号不能为空") |
| 56 | private Long orderNo; | 56 | private Long orderNo; |
| 57 | 57 | ||
| 58 | - @Schema(description = "订单项编号", required = true, example = "572") | 58 | + @Schema(description = "订单项编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "572") |
| 59 | @NotNull(message = "订单项编号不能为空") | 59 | @NotNull(message = "订单项编号不能为空") |
| 60 | private Long orderItemId; | 60 | private Long orderItemId; |
| 61 | 61 | ||
| 62 | - @Schema(description = "商品 SPU 编号", required = true, example = "2888") | 62 | + @Schema(description = "商品 SPU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2888") |
| 63 | @NotNull(message = "商品 SPU 编号不能为空") | 63 | @NotNull(message = "商品 SPU 编号不能为空") |
| 64 | private Long spuId; | 64 | private Long spuId; |
| 65 | 65 | ||
| 66 | - @Schema(description = "商品 SPU 名称", required = true, example = "李四") | 66 | + @Schema(description = "商品 SPU 名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四") |
| 67 | @NotNull(message = "商品 SPU 名称不能为空") | 67 | @NotNull(message = "商品 SPU 名称不能为空") |
| 68 | private String spuName; | 68 | private String spuName; |
| 69 | 69 | ||
| 70 | - @Schema(description = "商品 SKU 编号", required = true, example = "15657") | 70 | + @Schema(description = "商品 SKU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15657") |
| 71 | @NotNull(message = "商品 SKU 编号不能为空") | 71 | @NotNull(message = "商品 SKU 编号不能为空") |
| 72 | private Long skuId; | 72 | private Long skuId; |
| 73 | 73 | ||
| 74 | @Schema(description = "商品图片", example = "https://www.iocoder.cn/2.png") | 74 | @Schema(description = "商品图片", example = "https://www.iocoder.cn/2.png") |
| 75 | private String picUrl; | 75 | private String picUrl; |
| 76 | 76 | ||
| 77 | - @Schema(description = "购买数量", required = true, example = "20012") | 77 | + @Schema(description = "购买数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "20012") |
| 78 | @NotNull(message = "购买数量不能为空") | 78 | @NotNull(message = "购买数量不能为空") |
| 79 | private Integer count; | 79 | private Integer count; |
| 80 | 80 | ||
| @@ -88,7 +88,7 @@ public class TradeAfterSaleBaseVO { | @@ -88,7 +88,7 @@ public class TradeAfterSaleBaseVO { | ||
| 88 | @Schema(description = "审批备注", example = "不香") | 88 | @Schema(description = "审批备注", example = "不香") |
| 89 | private String auditReason; | 89 | private String auditReason; |
| 90 | 90 | ||
| 91 | - @Schema(description = "退款金额,单位:分", required = true, example = "18077") | 91 | + @Schema(description = "退款金额,单位:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "18077") |
| 92 | @NotNull(message = "退款金额,单位:分不能为空") | 92 | @NotNull(message = "退款金额,单位:分不能为空") |
| 93 | private Integer refundPrice; | 93 | private Integer refundPrice; |
| 94 | 94 |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/aftersale/vo/TradeAfterSaleDisagreeReqVO.java
| @@ -10,11 +10,11 @@ import javax.validation.constraints.NotNull; | @@ -10,11 +10,11 @@ import javax.validation.constraints.NotNull; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class TradeAfterSaleDisagreeReqVO { | 11 | public class TradeAfterSaleDisagreeReqVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "售后编号", required = true, example = "1024") | 13 | + @Schema(description = "售后编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 14 | @NotNull(message = "售后编号不能为空") | 14 | @NotNull(message = "售后编号不能为空") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "审批备注", required = true, example = "你猜") | 17 | + @Schema(description = "审批备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜") |
| 18 | @NotEmpty(message = "审批备注不能为空") | 18 | @NotEmpty(message = "审批备注不能为空") |
| 19 | private String auditReason; | 19 | private String auditReason; |
| 20 | 20 |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/aftersale/vo/TradeAfterSaleRefuseReqVO.java
| @@ -9,11 +9,11 @@ import javax.validation.constraints.NotNull; | @@ -9,11 +9,11 @@ import javax.validation.constraints.NotNull; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class TradeAfterSaleRefuseReqVO { | 10 | public class TradeAfterSaleRefuseReqVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "售后编号", required = true, example = "1024") | 12 | + @Schema(description = "售后编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 13 | @NotNull(message = "售后编号不能为空") | 13 | @NotNull(message = "售后编号不能为空") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "收货备注", required = true, example = "你猜") | 16 | + @Schema(description = "收货备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜") |
| 17 | @NotNull(message = "收货备注不能为空") | 17 | @NotNull(message = "收货备注不能为空") |
| 18 | private String refuseMemo; | 18 | private String refuseMemo; |
| 19 | 19 |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/aftersale/vo/TradeAfterSaleRespPageItemVO.java
| @@ -16,10 +16,10 @@ import java.util.List; | @@ -16,10 +16,10 @@ import java.util.List; | ||
| 16 | @ToString(callSuper = true) | 16 | @ToString(callSuper = true) |
| 17 | public class TradeAfterSaleRespPageItemVO extends TradeAfterSaleBaseVO { | 17 | public class TradeAfterSaleRespPageItemVO extends TradeAfterSaleBaseVO { |
| 18 | 18 | ||
| 19 | - @Schema(description = "售后编号", required = true, example = "27630") | 19 | + @Schema(description = "售后编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "27630") |
| 20 | private Long id; | 20 | private Long id; |
| 21 | 21 | ||
| 22 | - @Schema(description = "创建时间", required = true) | 22 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 23 | private LocalDateTime createTime; | 23 | private LocalDateTime createTime; |
| 24 | 24 | ||
| 25 | /** | 25 | /** |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/aftersale/vo/log/TradeAfterSaleLogRespVO.java
| @@ -10,41 +10,41 @@ import java.time.LocalDateTime; | @@ -10,41 +10,41 @@ import java.time.LocalDateTime; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class TradeAfterSaleLogRespVO { | 11 | public class TradeAfterSaleLogRespVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "编号", required = true, example = "20669") | 13 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20669") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "用户编号", required = true, example = "22634") | 16 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "22634") |
| 17 | @NotNull(message = "用户编号不能为空") | 17 | @NotNull(message = "用户编号不能为空") |
| 18 | private Long userId; | 18 | private Long userId; |
| 19 | 19 | ||
| 20 | - @Schema(description = "用户类型", required = true, example = "2") | 20 | + @Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
| 21 | @NotNull(message = "用户类型不能为空") | 21 | @NotNull(message = "用户类型不能为空") |
| 22 | private Integer userType; | 22 | private Integer userType; |
| 23 | 23 | ||
| 24 | - @Schema(description = "售后编号", required = true, example = "3023") | 24 | + @Schema(description = "售后编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "3023") |
| 25 | @NotNull(message = "售后编号不能为空") | 25 | @NotNull(message = "售后编号不能为空") |
| 26 | private Long afterSaleId; | 26 | private Long afterSaleId; |
| 27 | 27 | ||
| 28 | - @Schema(description = "订单编号", required = true, example = "25870") | 28 | + @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "25870") |
| 29 | @NotNull(message = "订单编号不能为空") | 29 | @NotNull(message = "订单编号不能为空") |
| 30 | private Long orderId; | 30 | private Long orderId; |
| 31 | 31 | ||
| 32 | - @Schema(description = "订单项编号", required = true, example = "23154") | 32 | + @Schema(description = "订单项编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "23154") |
| 33 | @NotNull(message = "订单项编号不能为空") | 33 | @NotNull(message = "订单项编号不能为空") |
| 34 | private Long orderItemId; | 34 | private Long orderItemId; |
| 35 | 35 | ||
| 36 | @Schema(description = "售后状态(之前)", example = "2") | 36 | @Schema(description = "售后状态(之前)", example = "2") |
| 37 | private Integer beforeStatus; | 37 | private Integer beforeStatus; |
| 38 | 38 | ||
| 39 | - @Schema(description = "售后状态(之后)", required = true, example = "1") | 39 | + @Schema(description = "售后状态(之后)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 40 | @NotNull(message = "售后状态(之后)不能为空") | 40 | @NotNull(message = "售后状态(之后)不能为空") |
| 41 | private Integer afterStatus; | 41 | private Integer afterStatus; |
| 42 | 42 | ||
| 43 | - @Schema(description = "操作明细", required = true, example = "维权完成,退款金额:¥37776.00") | 43 | + @Schema(description = "操作明细", requiredMode = Schema.RequiredMode.REQUIRED, example = "维权完成,退款金额:¥37776.00") |
| 44 | @NotNull(message = "操作明细不能为空") | 44 | @NotNull(message = "操作明细不能为空") |
| 45 | private String content; | 45 | private String content; |
| 46 | 46 | ||
| 47 | - @Schema(description = "创建时间", required = true) | 47 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 48 | private LocalDateTime createTime; | 48 | private LocalDateTime createTime; |
| 49 | 49 | ||
| 50 | } | 50 | } |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/base/member/user/MemberUserRespVO.java
| @@ -7,10 +7,10 @@ import lombok.Data; | @@ -7,10 +7,10 @@ import lombok.Data; | ||
| 7 | @Data | 7 | @Data |
| 8 | public class MemberUserRespVO { | 8 | public class MemberUserRespVO { |
| 9 | 9 | ||
| 10 | - @Schema(description = "用户 ID", required = true, example = "1") | 10 | + @Schema(description = "用户 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 11 | private Long id; | 11 | private Long id; |
| 12 | 12 | ||
| 13 | - @Schema(description = "用户昵称", required = true, example = "芋道源码") | 13 | + @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码") |
| 14 | private String nickname; | 14 | private String nickname; |
| 15 | 15 | ||
| 16 | @Schema(description = "用户头像", example = "https://www.iocoder.cn/xxx.png") | 16 | @Schema(description = "用户头像", example = "https://www.iocoder.cn/xxx.png") |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/base/product/property/ProductPropertyValueDetailRespVO.java
| @@ -7,16 +7,16 @@ import lombok.Data; | @@ -7,16 +7,16 @@ import lombok.Data; | ||
| 7 | @Data | 7 | @Data |
| 8 | public class ProductPropertyValueDetailRespVO { | 8 | public class ProductPropertyValueDetailRespVO { |
| 9 | 9 | ||
| 10 | - @Schema(description = "属性的编号", required = true, example = "1") | 10 | + @Schema(description = "属性的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 11 | private Long propertyId; | 11 | private Long propertyId; |
| 12 | 12 | ||
| 13 | - @Schema(description = "属性的名称", required = true, example = "颜色") | 13 | + @Schema(description = "属性的名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "颜色") |
| 14 | private String propertyName; | 14 | private String propertyName; |
| 15 | 15 | ||
| 16 | - @Schema(description = "属性值的编号", required = true, example = "1024") | 16 | + @Schema(description = "属性值的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long valueId; | 17 | private Long valueId; |
| 18 | 18 | ||
| 19 | - @Schema(description = "属性值的名称", required = true, example = "红色") | 19 | + @Schema(description = "属性值的名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "红色") |
| 20 | private String valueName; | 20 | private String valueName; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/order/vo/TradeOrderBaseVO.java
| @@ -15,34 +15,34 @@ public class TradeOrderBaseVO { | @@ -15,34 +15,34 @@ public class TradeOrderBaseVO { | ||
| 15 | 15 | ||
| 16 | // ========== 订单基本信息 ========== | 16 | // ========== 订单基本信息 ========== |
| 17 | 17 | ||
| 18 | - @Schema(description = "订单编号", required = true, example = "1024") | 18 | + @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 19 | private Long id; | 19 | private Long id; |
| 20 | 20 | ||
| 21 | - @Schema(description = "订单流水号", required = true, example = "1146347329394184195") | 21 | + @Schema(description = "订单流水号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1146347329394184195") |
| 22 | private String no; | 22 | private String no; |
| 23 | 23 | ||
| 24 | - @Schema(description = "下单时间", required = true) | 24 | + @Schema(description = "下单时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 25 | private LocalDateTime createTime; | 25 | private LocalDateTime createTime; |
| 26 | 26 | ||
| 27 | - @Schema(description = "订单类型", required = true, example = "1") | 27 | + @Schema(description = "订单类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 28 | private Integer type; | 28 | private Integer type; |
| 29 | 29 | ||
| 30 | - @Schema(description = "订单来源", required = true, example = "1") | 30 | + @Schema(description = "订单来源", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 31 | private Integer terminal; | 31 | private Integer terminal; |
| 32 | 32 | ||
| 33 | - @Schema(description = "用户编号", required = true, example = "2048") | 33 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 34 | private Long userId; | 34 | private Long userId; |
| 35 | 35 | ||
| 36 | - @Schema(description = "用户 IP", required = true, example = "127.0.0.1") | 36 | + @Schema(description = "用户 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "127.0.0.1") |
| 37 | private String userIp; | 37 | private String userIp; |
| 38 | 38 | ||
| 39 | - @Schema(description = "用户备注", required = true, example = "你猜") | 39 | + @Schema(description = "用户备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜") |
| 40 | private String userRemark; | 40 | private String userRemark; |
| 41 | 41 | ||
| 42 | - @Schema(description = "订单状态", required = true, example = "1") | 42 | + @Schema(description = "订单状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 43 | private Integer status; | 43 | private Integer status; |
| 44 | 44 | ||
| 45 | - @Schema(description = "购买的商品数量", required = true, example = "10") | 45 | + @Schema(description = "购买的商品数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 46 | private Integer productCount; | 46 | private Integer productCount; |
| 47 | 47 | ||
| 48 | @Schema(description = "订单完成时间") | 48 | @Schema(description = "订单完成时间") |
| @@ -59,34 +59,34 @@ public class TradeOrderBaseVO { | @@ -59,34 +59,34 @@ public class TradeOrderBaseVO { | ||
| 59 | 59 | ||
| 60 | // ========== 价格 + 支付基本信息 ========== | 60 | // ========== 价格 + 支付基本信息 ========== |
| 61 | 61 | ||
| 62 | - @Schema(description = "支付订单编号", required = true, example = "1024") | 62 | + @Schema(description = "支付订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 63 | private Long payOrderId; | 63 | private Long payOrderId; |
| 64 | 64 | ||
| 65 | - @Schema(description = "是否已支付", required = true, example = "true") | 65 | + @Schema(description = "是否已支付", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 66 | private Boolean payed; | 66 | private Boolean payed; |
| 67 | 67 | ||
| 68 | @Schema(description = "付款时间") | 68 | @Schema(description = "付款时间") |
| 69 | private LocalDateTime payTime; | 69 | private LocalDateTime payTime; |
| 70 | 70 | ||
| 71 | - @Schema(description = "支付渠道", required = true, example = "wx_lite") | 71 | + @Schema(description = "支付渠道", requiredMode = Schema.RequiredMode.REQUIRED, example = "wx_lite") |
| 72 | private String payChannelCode; | 72 | private String payChannelCode; |
| 73 | 73 | ||
| 74 | - @Schema(description = "商品原价(总)", required = true, example = "1000") | 74 | + @Schema(description = "商品原价(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1000") |
| 75 | private Integer originalPrice; | 75 | private Integer originalPrice; |
| 76 | 76 | ||
| 77 | - @Schema(description = "订单原价(总)", required = true, example = "1000") | 77 | + @Schema(description = "订单原价(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1000") |
| 78 | private Integer orderPrice; | 78 | private Integer orderPrice; |
| 79 | 79 | ||
| 80 | - @Schema(description = "订单优惠(总)", required = true, example = "100") | 80 | + @Schema(description = "订单优惠(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 81 | private Integer discountPrice; | 81 | private Integer discountPrice; |
| 82 | 82 | ||
| 83 | - @Schema(description = "运费金额", required = true, example = "100") | 83 | + @Schema(description = "运费金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 84 | private Integer deliveryPrice; | 84 | private Integer deliveryPrice; |
| 85 | 85 | ||
| 86 | - @Schema(description = "订单调价(总)", required = true, example = "100") | 86 | + @Schema(description = "订单调价(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 87 | private Integer adjustPrice; | 87 | private Integer adjustPrice; |
| 88 | 88 | ||
| 89 | - @Schema(description = "应付金额(总)", required = true, example = "1000") | 89 | + @Schema(description = "应付金额(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1000") |
| 90 | private Integer payPrice; | 90 | private Integer payPrice; |
| 91 | 91 | ||
| 92 | // ========== 收件 + 物流基本信息 ========== | 92 | // ========== 收件 + 物流基本信息 ========== |
| @@ -100,7 +100,7 @@ public class TradeOrderBaseVO { | @@ -100,7 +100,7 @@ public class TradeOrderBaseVO { | ||
| 100 | @Schema(description = "发货物流单号", example = "1024") | 100 | @Schema(description = "发货物流单号", example = "1024") |
| 101 | private String logisticsNo; | 101 | private String logisticsNo; |
| 102 | 102 | ||
| 103 | - @Schema(description = "发货状态", required = true, example = "1") | 103 | + @Schema(description = "发货状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 104 | private Integer deliveryStatus; | 104 | private Integer deliveryStatus; |
| 105 | 105 | ||
| 106 | @Schema(description = "发货时间") | 106 | @Schema(description = "发货时间") |
| @@ -109,19 +109,19 @@ public class TradeOrderBaseVO { | @@ -109,19 +109,19 @@ public class TradeOrderBaseVO { | ||
| 109 | @Schema(description = "收货时间") | 109 | @Schema(description = "收货时间") |
| 110 | private LocalDateTime receiveTime; | 110 | private LocalDateTime receiveTime; |
| 111 | 111 | ||
| 112 | - @Schema(description = "收件人名称", required = true, example = "张三") | 112 | + @Schema(description = "收件人名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三") |
| 113 | private String receiverName; | 113 | private String receiverName; |
| 114 | 114 | ||
| 115 | - @Schema(description = "收件人手机", required = true, example = "13800138000") | 115 | + @Schema(description = "收件人手机", requiredMode = Schema.RequiredMode.REQUIRED, example = "13800138000") |
| 116 | private String receiverMobile; | 116 | private String receiverMobile; |
| 117 | 117 | ||
| 118 | - @Schema(description = "收件人地区编号", required = true, example = "110000") | 118 | + @Schema(description = "收件人地区编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "110000") |
| 119 | private Integer receiverAreaId; | 119 | private Integer receiverAreaId; |
| 120 | 120 | ||
| 121 | - @Schema(description = "收件人邮编", required = true, example = "100000") | 121 | + @Schema(description = "收件人邮编", requiredMode = Schema.RequiredMode.REQUIRED, example = "100000") |
| 122 | private Integer receiverPostCode; | 122 | private Integer receiverPostCode; |
| 123 | 123 | ||
| 124 | - @Schema(description = "收件人详细地址", required = true, example = "中关村大街 1 号") | 124 | + @Schema(description = "收件人详细地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "中关村大街 1 号") |
| 125 | private String receiverDetailAddress; | 125 | private String receiverDetailAddress; |
| 126 | 126 | ||
| 127 | // ========== 售后基本信息 ========== | 127 | // ========== 售后基本信息 ========== |
| @@ -129,7 +129,7 @@ public class TradeOrderBaseVO { | @@ -129,7 +129,7 @@ public class TradeOrderBaseVO { | ||
| 129 | @Schema(description = "售后状态", example = "1") | 129 | @Schema(description = "售后状态", example = "1") |
| 130 | private Integer afterSaleStatus; | 130 | private Integer afterSaleStatus; |
| 131 | 131 | ||
| 132 | - @Schema(description = "退款金额", required = true, example = "100") | 132 | + @Schema(description = "退款金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 133 | private Integer refundPrice; | 133 | private Integer refundPrice; |
| 134 | 134 | ||
| 135 | // ========== 营销基本信息 ========== | 135 | // ========== 营销基本信息 ========== |
| @@ -137,9 +137,9 @@ public class TradeOrderBaseVO { | @@ -137,9 +137,9 @@ public class TradeOrderBaseVO { | ||
| 137 | @Schema(description = "优惠劵编号", example = "1024") | 137 | @Schema(description = "优惠劵编号", example = "1024") |
| 138 | private Long couponId; | 138 | private Long couponId; |
| 139 | 139 | ||
| 140 | - @Schema(description = "优惠劵减免金额", required = true, example = "100") | 140 | + @Schema(description = "优惠劵减免金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 141 | private Integer couponPrice; | 141 | private Integer couponPrice; |
| 142 | 142 | ||
| 143 | - @Schema(description = "积分抵扣的金额", required = true, example = "100") | 143 | + @Schema(description = "积分抵扣的金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 144 | private Integer pointPrice; | 144 | private Integer pointPrice; |
| 145 | } | 145 | } |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/order/vo/TradeOrderDeliveryReqVO.java
| @@ -10,15 +10,15 @@ import javax.validation.constraints.NotNull; | @@ -10,15 +10,15 @@ import javax.validation.constraints.NotNull; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class TradeOrderDeliveryReqVO { | 11 | public class TradeOrderDeliveryReqVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "订单编号", required = true, example = "1024") | 13 | + @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 14 | @NotNull(message = "订单编号不能为空") | 14 | @NotNull(message = "订单编号不能为空") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "发货物流公司编号", required = true, example = "1") | 17 | + @Schema(description = "发货物流公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 18 | @NotNull(message = "发货物流公司编号不能为空") | 18 | @NotNull(message = "发货物流公司编号不能为空") |
| 19 | private Long logisticsId; | 19 | private Long logisticsId; |
| 20 | 20 | ||
| 21 | - @Schema(description = "发货物流单号", required = true, example = "SF123456789") | 21 | + @Schema(description = "发货物流单号", requiredMode = Schema.RequiredMode.REQUIRED, example = "SF123456789") |
| 22 | @NotEmpty(message = "发货物流单号不能为空") | 22 | @NotEmpty(message = "发货物流单号不能为空") |
| 23 | private String logisticsNo; | 23 | private String logisticsNo; |
| 24 | 24 |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/order/vo/TradeOrderDetailRespVO.java
| @@ -11,7 +11,7 @@ import java.util.List; | @@ -11,7 +11,7 @@ import java.util.List; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class TradeOrderDetailRespVO extends TradeOrderBaseVO { | 12 | public class TradeOrderDetailRespVO extends TradeOrderBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "收件人地区名字", required = true, example = "上海 上海市 普陀区") | 14 | + @Schema(description = "收件人地区名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "上海 上海市 普陀区") |
| 15 | private String receiverAreaName; | 15 | private String receiverAreaName; |
| 16 | 16 | ||
| 17 | /** | 17 | /** |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/order/vo/TradeOrderItemBaseVO.java
| @@ -12,50 +12,50 @@ public class TradeOrderItemBaseVO { | @@ -12,50 +12,50 @@ public class TradeOrderItemBaseVO { | ||
| 12 | 12 | ||
| 13 | // ========== 订单项基本信息 ========== | 13 | // ========== 订单项基本信息 ========== |
| 14 | 14 | ||
| 15 | - @Schema(description = "编号", required = true, example = "1") | 15 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 16 | private Long id; | 16 | private Long id; |
| 17 | 17 | ||
| 18 | - @Schema(description = "用户编号", required = true, example = "1") | 18 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 19 | private Long userId; | 19 | private Long userId; |
| 20 | 20 | ||
| 21 | - @Schema(description = "订单编号", required = true, example = "1") | 21 | + @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 22 | private Long orderId; | 22 | private Long orderId; |
| 23 | 23 | ||
| 24 | // ========== 商品基本信息 ========== | 24 | // ========== 商品基本信息 ========== |
| 25 | 25 | ||
| 26 | - @Schema(description = "商品 SPU 编号", required = true, example = "1") | 26 | + @Schema(description = "商品 SPU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 27 | private Long spuId; | 27 | private Long spuId; |
| 28 | 28 | ||
| 29 | - @Schema(description = "商品 SPU 名称", required = true, example = "芋道源码") | 29 | + @Schema(description = "商品 SPU 名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码") |
| 30 | private String spuName; | 30 | private String spuName; |
| 31 | 31 | ||
| 32 | - @Schema(description = "商品 SKU 编号", required = true, example = "1") | 32 | + @Schema(description = "商品 SKU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 33 | private Long skuId; | 33 | private Long skuId; |
| 34 | 34 | ||
| 35 | - @Schema(description = "商品图片", required = true, example = "https://www.iocoder.cn/1.png") | 35 | + @Schema(description = "商品图片", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/1.png") |
| 36 | private String picUrl; | 36 | private String picUrl; |
| 37 | 37 | ||
| 38 | - @Schema(description = "购买数量", required = true, example = "1") | 38 | + @Schema(description = "购买数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 39 | private Integer count; | 39 | private Integer count; |
| 40 | 40 | ||
| 41 | // ========== 价格 + 支付基本信息 ========== | 41 | // ========== 价格 + 支付基本信息 ========== |
| 42 | 42 | ||
| 43 | - @Schema(description = "商品原价(总)", required = true, example = "100") | 43 | + @Schema(description = "商品原价(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 44 | private Integer originalPrice; | 44 | private Integer originalPrice; |
| 45 | 45 | ||
| 46 | - @Schema(description = "商品原价(单)", required = true, example = "100") | 46 | + @Schema(description = "商品原价(单)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 47 | private Integer originalUnitPrice; | 47 | private Integer originalUnitPrice; |
| 48 | 48 | ||
| 49 | - @Schema(description = "商品优惠(总)", required = true, example = "100") | 49 | + @Schema(description = "商品优惠(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 50 | private Integer discountPrice; | 50 | private Integer discountPrice; |
| 51 | 51 | ||
| 52 | - @Schema(description = "商品实付金额(总)", required = true, example = "100") | 52 | + @Schema(description = "商品实付金额(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 53 | private Integer payPrice; | 53 | private Integer payPrice; |
| 54 | 54 | ||
| 55 | - @Schema(description = "子订单分摊金额(总)", required = true, example = "100") | 55 | + @Schema(description = "子订单分摊金额(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 56 | private Integer orderPartPrice; | 56 | private Integer orderPartPrice; |
| 57 | 57 | ||
| 58 | - @Schema(description = "分摊后子订单实付金额(总)", required = true, example = "100") | 58 | + @Schema(description = "分摊后子订单实付金额(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 59 | private Integer orderDividePrice; | 59 | private Integer orderDividePrice; |
| 60 | 60 | ||
| 61 | // ========== 营销基本信息 ========== | 61 | // ========== 营销基本信息 ========== |
| @@ -64,7 +64,7 @@ public class TradeOrderItemBaseVO { | @@ -64,7 +64,7 @@ public class TradeOrderItemBaseVO { | ||
| 64 | 64 | ||
| 65 | // ========== 售后基本信息 ========== | 65 | // ========== 售后基本信息 ========== |
| 66 | 66 | ||
| 67 | - @Schema(description = "售后状态", required = true, example = "1") | 67 | + @Schema(description = "售后状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 68 | private Integer afterSaleStatus; | 68 | private Integer afterSaleStatus; |
| 69 | 69 | ||
| 70 | } | 70 | } |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/order/vo/TradeOrderPageItemRespVO.java
| @@ -10,7 +10,7 @@ import java.util.List; | @@ -10,7 +10,7 @@ import java.util.List; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class TradeOrderPageItemRespVO extends TradeOrderBaseVO { | 11 | public class TradeOrderPageItemRespVO extends TradeOrderBaseVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "收件人地区名字", required = true, example = "上海 上海市 普陀区") | 13 | + @Schema(description = "收件人地区名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "上海 上海市 普陀区") |
| 14 | private String receiverAreaName; | 14 | private String receiverAreaName; |
| 15 | 15 | ||
| 16 | /** | 16 | /** |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/aftersale/vo/AppTradeAfterSaleCreateReqVO.java
| @@ -13,21 +13,21 @@ import java.util.List; | @@ -13,21 +13,21 @@ import java.util.List; | ||
| 13 | @Data | 13 | @Data |
| 14 | public class AppTradeAfterSaleCreateReqVO { | 14 | public class AppTradeAfterSaleCreateReqVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "订单项编号", required = true, example = "1024") | 16 | + @Schema(description = "订单项编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "订单项编号不能为空") | 17 | @NotNull(message = "订单项编号不能为空") |
| 18 | private Long orderItemId; | 18 | private Long orderItemId; |
| 19 | 19 | ||
| 20 | - @Schema(description = "售后方式", required = true, example = "1") | 20 | + @Schema(description = "售后方式", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 21 | @NotNull(message = "售后方式不能为空") | 21 | @NotNull(message = "售后方式不能为空") |
| 22 | @InEnum(value = TradeAfterSaleWayEnum.class, message = "售后方式必须是 {value}") | 22 | @InEnum(value = TradeAfterSaleWayEnum.class, message = "售后方式必须是 {value}") |
| 23 | private Integer way; | 23 | private Integer way; |
| 24 | 24 | ||
| 25 | - @Schema(description = "退款金额", required = true, example = "100") | 25 | + @Schema(description = "退款金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 26 | @NotNull(message = "退款金额不能为空") | 26 | @NotNull(message = "退款金额不能为空") |
| 27 | @Min(value = 1, message = "退款金额必须大于 0") | 27 | @Min(value = 1, message = "退款金额必须大于 0") |
| 28 | private Integer refundPrice; | 28 | private Integer refundPrice; |
| 29 | 29 | ||
| 30 | - @Schema(description = "申请原因", required = true, example = "1") | 30 | + @Schema(description = "申请原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 31 | @NotNull(message = "申请原因不能为空") | 31 | @NotNull(message = "申请原因不能为空") |
| 32 | private String applyReason; | 32 | private String applyReason; |
| 33 | 33 |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/aftersale/vo/AppTradeAfterSaleDeliveryReqVO.java
| @@ -11,19 +11,19 @@ import java.time.LocalDateTime; | @@ -11,19 +11,19 @@ import java.time.LocalDateTime; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class AppTradeAfterSaleDeliveryReqVO { | 12 | public class AppTradeAfterSaleDeliveryReqVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "售后编号", required = true, example = "1024") | 14 | + @Schema(description = "售后编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | @NotNull(message = "售后编号不能为空") | 15 | @NotNull(message = "售后编号不能为空") |
| 16 | private Long id; | 16 | private Long id; |
| 17 | 17 | ||
| 18 | - @Schema(description = "退货物流公司编号", required = true, example = "1") | 18 | + @Schema(description = "退货物流公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 19 | @NotNull(message = "退货物流公司编号不能为空") | 19 | @NotNull(message = "退货物流公司编号不能为空") |
| 20 | private Long logisticsId; | 20 | private Long logisticsId; |
| 21 | 21 | ||
| 22 | - @Schema(description = "退货物流单号", required = true, example = "SF123456789") | 22 | + @Schema(description = "退货物流单号", requiredMode = Schema.RequiredMode.REQUIRED, example = "SF123456789") |
| 23 | @NotNull(message = "退货物流单号不能为空") | 23 | @NotNull(message = "退货物流单号不能为空") |
| 24 | private String logisticsNo; | 24 | private String logisticsNo; |
| 25 | 25 | ||
| 26 | - @Schema(description = "退货时间", required = true) | 26 | + @Schema(description = "退货时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 27 | @NotEmpty(message = "退货时间不能为空") | 27 | @NotEmpty(message = "退货时间不能为空") |
| 28 | private LocalDateTime deliveryTime; | 28 | private LocalDateTime deliveryTime; |
| 29 | 29 |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/base/property/AppProductPropertyValueDetailRespVO.java
| @@ -7,16 +7,16 @@ import lombok.Data; | @@ -7,16 +7,16 @@ import lombok.Data; | ||
| 7 | @Data | 7 | @Data |
| 8 | public class AppProductPropertyValueDetailRespVO { | 8 | public class AppProductPropertyValueDetailRespVO { |
| 9 | 9 | ||
| 10 | - @Schema(description = "属性的编号", required = true, example = "1") | 10 | + @Schema(description = "属性的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 11 | private Long propertyId; | 11 | private Long propertyId; |
| 12 | 12 | ||
| 13 | - @Schema(description = "属性的名称", required = true, example = "颜色") | 13 | + @Schema(description = "属性的名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "颜色") |
| 14 | private String propertyName; | 14 | private String propertyName; |
| 15 | 15 | ||
| 16 | - @Schema(description = "属性值的编号", required = true, example = "1024") | 16 | + @Schema(description = "属性值的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long valueId; | 17 | private Long valueId; |
| 18 | 18 | ||
| 19 | - @Schema(description = "属性值的名称", required = true, example = "红色") | 19 | + @Schema(description = "属性值的名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "红色") |
| 20 | private String valueName; | 20 | private String valueName; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/base/sku/AppProductSkuBaseRespVO.java
| @@ -14,16 +14,16 @@ import java.util.List; | @@ -14,16 +14,16 @@ import java.util.List; | ||
| 14 | @Data | 14 | @Data |
| 15 | public class AppProductSkuBaseRespVO { | 15 | public class AppProductSkuBaseRespVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "主键", required = true, example = "1024") | 17 | + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 | ||
| 20 | - @Schema(description = "商品 SKU 名字", required = true, example = "芋道") | 20 | + @Schema(description = "商品 SKU 名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 21 | private String name; | 21 | private String name; |
| 22 | 22 | ||
| 23 | @Schema(description = "图片地址", example = "https://www.iocoder.cn/xx.png") | 23 | @Schema(description = "图片地址", example = "https://www.iocoder.cn/xx.png") |
| 24 | private String picUrl; | 24 | private String picUrl; |
| 25 | 25 | ||
| 26 | - @Schema(description = "库存", required = true, example = "1") | 26 | + @Schema(description = "库存", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 27 | private Integer stock; | 27 | private Integer stock; |
| 28 | 28 | ||
| 29 | /** | 29 | /** |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/base/spu/AppProductSpuBaseRespVO.java
| @@ -13,10 +13,10 @@ import java.util.List; | @@ -13,10 +13,10 @@ import java.util.List; | ||
| 13 | @Data | 13 | @Data |
| 14 | public class AppProductSpuBaseRespVO { | 14 | public class AppProductSpuBaseRespVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "主键", required = true, example = "1024") | 16 | + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "商品 SPU 名字", required = true, example = "芋道") | 19 | + @Schema(description = "商品 SPU 名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 20 | private String name; | 20 | private String name; |
| 21 | 21 | ||
| 22 | @Schema(description = "商品主图地址", example = "https://www.iocoder.cn/xx.png") | 22 | @Schema(description = "商品主图地址", example = "https://www.iocoder.cn/xx.png") |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/cart/vo/AppTradeCartDetailRespVO.java
| @@ -46,26 +46,26 @@ public class AppTradeCartDetailRespVO { | @@ -46,26 +46,26 @@ public class AppTradeCartDetailRespVO { | ||
| 46 | 46 | ||
| 47 | // ========== 购物车相关的字段 ========== | 47 | // ========== 购物车相关的字段 ========== |
| 48 | 48 | ||
| 49 | - @Schema(description = "商品数量", required = true, example = "1") | 49 | + @Schema(description = "商品数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 50 | private Integer count; | 50 | private Integer count; |
| 51 | - @Schema(description = "是否选中", required = true, example = "true") | 51 | + @Schema(description = "是否选中", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 52 | private Boolean selected; | 52 | private Boolean selected; |
| 53 | 53 | ||
| 54 | // ========== 价格相关的字段,对应 PriceCalculateRespDTO.OrderItem 的属性 ========== | 54 | // ========== 价格相关的字段,对应 PriceCalculateRespDTO.OrderItem 的属性 ========== |
| 55 | 55 | ||
| 56 | // TODO 芋艿:后续可以去除一些无用的字段 | 56 | // TODO 芋艿:后续可以去除一些无用的字段 |
| 57 | 57 | ||
| 58 | - @Schema(description = "商品原价(单)", required = true, example = "100") | 58 | + @Schema(description = "商品原价(单)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 59 | private Integer originalPrice; | 59 | private Integer originalPrice; |
| 60 | - @Schema(description = "商品原价(总)", required = true, example = "200") | 60 | + @Schema(description = "商品原价(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "200") |
| 61 | private Integer totalOriginalPrice; | 61 | private Integer totalOriginalPrice; |
| 62 | - @Schema(description = "商品级优惠(总)", required = true, example = "300") | 62 | + @Schema(description = "商品级优惠(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "300") |
| 63 | private Integer totalPromotionPrice; | 63 | private Integer totalPromotionPrice; |
| 64 | - @Schema(description = "最终购买金额(总)", required = true, example = "400") | 64 | + @Schema(description = "最终购买金额(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "400") |
| 65 | private Integer totalPresentPrice; | 65 | private Integer totalPresentPrice; |
| 66 | - @Schema(description = "最终购买金额(单)", required = true, example = "500") | 66 | + @Schema(description = "最终购买金额(单)", requiredMode = Schema.RequiredMode.REQUIRED, example = "500") |
| 67 | private Integer presentPrice; | 67 | private Integer presentPrice; |
| 68 | - @Schema(description = "应付金额(总)", required = true, example = "600") | 68 | + @Schema(description = "应付金额(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "600") |
| 69 | private Integer totalPayPrice; | 69 | private Integer totalPayPrice; |
| 70 | 70 | ||
| 71 | // ========== 营销相关的字段 ========== | 71 | // ========== 营销相关的字段 ========== |
| @@ -82,15 +82,15 @@ public class AppTradeCartDetailRespVO { | @@ -82,15 +82,15 @@ public class AppTradeCartDetailRespVO { | ||
| 82 | 82 | ||
| 83 | // TODO 芋艿:后续可以去除一些无用的字段 | 83 | // TODO 芋艿:后续可以去除一些无用的字段 |
| 84 | 84 | ||
| 85 | - @Schema(description = "商品原价(总)", required = true, example = "100") | 85 | + @Schema(description = "商品原价(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 86 | private Integer skuOriginalPrice; | 86 | private Integer skuOriginalPrice; |
| 87 | - @Schema(description = "商品优惠(总)", required = true, example = "200") | 87 | + @Schema(description = "商品优惠(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "200") |
| 88 | private Integer skuPromotionPrice; | 88 | private Integer skuPromotionPrice; |
| 89 | - @Schema(description = "订单优惠(总)", required = true, example = "300") | 89 | + @Schema(description = "订单优惠(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "300") |
| 90 | private Integer orderPromotionPrice; | 90 | private Integer orderPromotionPrice; |
| 91 | - @Schema(description = "运费金额", required = true, example = "400") | 91 | + @Schema(description = "运费金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "400") |
| 92 | private Integer deliveryPrice; | 92 | private Integer deliveryPrice; |
| 93 | - @Schema(description = "应付金额(总)", required = true, example = "500") | 93 | + @Schema(description = "应付金额(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "500") |
| 94 | private Integer payPrice; | 94 | private Integer payPrice; |
| 95 | 95 | ||
| 96 | } | 96 | } |
| @@ -99,17 +99,17 @@ public class AppTradeCartDetailRespVO { | @@ -99,17 +99,17 @@ public class AppTradeCartDetailRespVO { | ||
| 99 | @Data | 99 | @Data |
| 100 | public static class Promotion { | 100 | public static class Promotion { |
| 101 | 101 | ||
| 102 | - @Schema(description = "营销编号", required = true, example = "1024") // 营销活动的编号、优惠劵的编号 | 102 | + @Schema(description = "营销编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") // 营销活动的编号、优惠劵的编号 |
| 103 | private Long id; | 103 | private Long id; |
| 104 | - @Schema(description = "营销名字", required = true, example = "xx 活动") | 104 | + @Schema(description = "营销名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "xx 活动") |
| 105 | private String name; | 105 | private String name; |
| 106 | - @Schema(description = "营销类型", required = true, example = "1") | 106 | + @Schema(description = "营销类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 107 | private Integer type; | 107 | private Integer type; |
| 108 | 108 | ||
| 109 | // ========== 匹配情况 ========== | 109 | // ========== 匹配情况 ========== |
| 110 | - @Schema(description = "是否满足优惠条件", required = true, example = "true") | 110 | + @Schema(description = "是否满足优惠条件", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 111 | private Boolean meet; | 111 | private Boolean meet; |
| 112 | - @Schema(description = "满足条件的提示", required = true, example = "圣诞价:省 150.00 元") | 112 | + @Schema(description = "满足条件的提示", requiredMode = Schema.RequiredMode.REQUIRED, example = "圣诞价:省 150.00 元") |
| 113 | private String meetTip; | 113 | private String meetTip; |
| 114 | 114 | ||
| 115 | } | 115 | } |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/cart/vo/AppTradeCartItemAddCountReqVO.java
| @@ -10,11 +10,11 @@ import javax.validation.constraints.NotNull; | @@ -10,11 +10,11 @@ import javax.validation.constraints.NotNull; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class AppTradeCartItemAddCountReqVO { | 11 | public class AppTradeCartItemAddCountReqVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "商品 SKU 编号", required = true,example = "1024") | 13 | + @Schema(description = "商品 SKU 编号", requiredMode = Schema.RequiredMode.REQUIRED,example = "1024") |
| 14 | @NotNull(message = "商品 SKU 编号不能为空") | 14 | @NotNull(message = "商品 SKU 编号不能为空") |
| 15 | private Long skuId; | 15 | private Long skuId; |
| 16 | 16 | ||
| 17 | - @Schema(description = "新增商品数量", required = true, example = "1") | 17 | + @Schema(description = "新增商品数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 18 | @NotNull(message = "数量不能为空") | 18 | @NotNull(message = "数量不能为空") |
| 19 | @Min(message = "数量必须大于 0", value = 1L) | 19 | @Min(message = "数量必须大于 0", value = 1L) |
| 20 | private Integer count; | 20 | private Integer count; |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/cart/vo/AppTradeCartItemUpdateCountReqVO.java
| @@ -10,11 +10,11 @@ import javax.validation.constraints.NotNull; | @@ -10,11 +10,11 @@ import javax.validation.constraints.NotNull; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class AppTradeCartItemUpdateCountReqVO { | 11 | public class AppTradeCartItemUpdateCountReqVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "商品 SKU 编号", required = true, example = "1024") | 13 | + @Schema(description = "商品 SKU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 14 | @NotNull(message = "商品 SKU 编号不能为空") | 14 | @NotNull(message = "商品 SKU 编号不能为空") |
| 15 | private Long skuId; | 15 | private Long skuId; |
| 16 | 16 | ||
| 17 | - @Schema(description = "商品数量", required = true, example = "1") | 17 | + @Schema(description = "商品数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 18 | @NotNull(message = "数量不能为空") | 18 | @NotNull(message = "数量不能为空") |
| 19 | @Min(message = "数量必须大于 0", value = 1L) | 19 | @Min(message = "数量必须大于 0", value = 1L) |
| 20 | private Integer count; | 20 | private Integer count; |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/cart/vo/AppTradeCartItemUpdateSelectedReqVO.java
| @@ -10,11 +10,11 @@ import java.util.Collection; | @@ -10,11 +10,11 @@ import java.util.Collection; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class AppTradeCartItemUpdateSelectedReqVO { | 11 | public class AppTradeCartItemUpdateSelectedReqVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "商品 SKU 编号列表", required = true, example = "1024,2048") | 13 | + @Schema(description = "商品 SKU 编号列表", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024,2048") |
| 14 | @NotNull(message = "商品 SKU 编号列表不能为空") | 14 | @NotNull(message = "商品 SKU 编号列表不能为空") |
| 15 | private Collection<Long> skuIds; | 15 | private Collection<Long> skuIds; |
| 16 | 16 | ||
| 17 | - @Schema(description = "是否选中", required = true, example = "true") | 17 | + @Schema(description = "是否选中", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 18 | @NotNull(message = "是否选中不能为空") | 18 | @NotNull(message = "是否选中不能为空") |
| 19 | private Boolean selected; | 19 | private Boolean selected; |
| 20 | 20 |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/order/vo/AppTradeOrderCreateReqVO.java
| @@ -13,7 +13,7 @@ import java.util.List; | @@ -13,7 +13,7 @@ import java.util.List; | ||
| 13 | @Data | 13 | @Data |
| 14 | public class AppTradeOrderCreateReqVO { | 14 | public class AppTradeOrderCreateReqVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "收件地址编号", required = true, example = "1") | 16 | + @Schema(description = "收件地址编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | @NotNull(message = "收件地址不能为空") | 17 | @NotNull(message = "收件地址不能为空") |
| 18 | private Long addressId; | 18 | private Long addressId; |
| 19 | 19 | ||
| @@ -23,7 +23,7 @@ public class AppTradeOrderCreateReqVO { | @@ -23,7 +23,7 @@ public class AppTradeOrderCreateReqVO { | ||
| 23 | @Schema(description = "备注", example = "这个是我的订单哟") | 23 | @Schema(description = "备注", example = "这个是我的订单哟") |
| 24 | private String remark; | 24 | private String remark; |
| 25 | 25 | ||
| 26 | - @Schema(description = "是否来自购物车", required = true, example = "true") // true - 来自购物车;false - 立即购买 | 26 | + @Schema(description = "是否来自购物车", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") // true - 来自购物车;false - 立即购买 |
| 27 | @NotNull(message = "是否来自购物车不能为空") | 27 | @NotNull(message = "是否来自购物车不能为空") |
| 28 | private Boolean fromCart; | 28 | private Boolean fromCart; |
| 29 | 29 | ||
| @@ -38,11 +38,11 @@ public class AppTradeOrderCreateReqVO { | @@ -38,11 +38,11 @@ public class AppTradeOrderCreateReqVO { | ||
| 38 | @Data | 38 | @Data |
| 39 | public static class Item { | 39 | public static class Item { |
| 40 | 40 | ||
| 41 | - @Schema(description = "商品 SKU 编号", required = true, example = "111") | 41 | + @Schema(description = "商品 SKU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "111") |
| 42 | @NotNull(message = "商品 SKU 编号不能为空") | 42 | @NotNull(message = "商品 SKU 编号不能为空") |
| 43 | private Long skuId; | 43 | private Long skuId; |
| 44 | 44 | ||
| 45 | - @Schema(description = "商品 SKU 购买数量", required = true, example = "1024") | 45 | + @Schema(description = "商品 SKU 购买数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 46 | @NotNull(message = "商品 SKU 购买数量不能为空") | 46 | @NotNull(message = "商品 SKU 购买数量不能为空") |
| 47 | @Min(value = 1, message = "商品 SKU 购买数量必须大于 0") | 47 | @Min(value = 1, message = "商品 SKU 购买数量必须大于 0") |
| 48 | private Integer count; | 48 | private Integer count; |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/order/vo/AppTradeOrderDetailRespVO.java
| @@ -14,22 +14,22 @@ public class AppTradeOrderDetailRespVO { | @@ -14,22 +14,22 @@ public class AppTradeOrderDetailRespVO { | ||
| 14 | 14 | ||
| 15 | // ========== 订单基本信息 ========== | 15 | // ========== 订单基本信息 ========== |
| 16 | 16 | ||
| 17 | - @Schema(description = "订单编号", required = true, example = "1024") | 17 | + @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 | ||
| 20 | - @Schema(description = "订单流水号", required = true, example = "1146347329394184195") | 20 | + @Schema(description = "订单流水号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1146347329394184195") |
| 21 | private String no; | 21 | private String no; |
| 22 | 22 | ||
| 23 | - @Schema(description = "下单时间", required = true) | 23 | + @Schema(description = "下单时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 24 | private Date createTime; | 24 | private Date createTime; |
| 25 | 25 | ||
| 26 | - @Schema(description = "用户备注", required = true, example = "你猜") | 26 | + @Schema(description = "用户备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜") |
| 27 | private String userRemark; | 27 | private String userRemark; |
| 28 | 28 | ||
| 29 | - @Schema(description = "订单状态", required = true, example = "1") | 29 | + @Schema(description = "订单状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 30 | private Integer status; | 30 | private Integer status; |
| 31 | 31 | ||
| 32 | - @Schema(description = "购买的商品数量", required = true, example = "10") | 32 | + @Schema(description = "购买的商品数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 33 | private Integer productCount; | 33 | private Integer productCount; |
| 34 | 34 | ||
| 35 | @Schema(description = "订单完成时间") | 35 | @Schema(description = "订单完成时间") |
| @@ -40,28 +40,28 @@ public class AppTradeOrderDetailRespVO { | @@ -40,28 +40,28 @@ public class AppTradeOrderDetailRespVO { | ||
| 40 | 40 | ||
| 41 | // ========== 价格 + 支付基本信息 ========== | 41 | // ========== 价格 + 支付基本信息 ========== |
| 42 | 42 | ||
| 43 | - @Schema(description = "支付订单编号", required = true, example = "1024") | 43 | + @Schema(description = "支付订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 44 | private Long payOrderId; | 44 | private Long payOrderId; |
| 45 | 45 | ||
| 46 | @Schema(description = "付款时间") | 46 | @Schema(description = "付款时间") |
| 47 | private LocalDateTime payTime; | 47 | private LocalDateTime payTime; |
| 48 | 48 | ||
| 49 | - @Schema(description = "商品原价(总)", required = true, example = "1000") | 49 | + @Schema(description = "商品原价(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1000") |
| 50 | private Integer originalPrice; | 50 | private Integer originalPrice; |
| 51 | 51 | ||
| 52 | - @Schema(description = "订单原价(总)", required = true, example = "1000") | 52 | + @Schema(description = "订单原价(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1000") |
| 53 | private Integer orderPrice; | 53 | private Integer orderPrice; |
| 54 | 54 | ||
| 55 | - @Schema(description = "订单优惠(总)", required = true, example = "100") | 55 | + @Schema(description = "订单优惠(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 56 | private Integer discountPrice; | 56 | private Integer discountPrice; |
| 57 | 57 | ||
| 58 | - @Schema(description = "运费金额", required = true, example = "100") | 58 | + @Schema(description = "运费金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 59 | private Integer deliveryPrice; | 59 | private Integer deliveryPrice; |
| 60 | 60 | ||
| 61 | - @Schema(description = "订单调价(总)", required = true, example = "100") | 61 | + @Schema(description = "订单调价(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 62 | private Integer adjustPrice; | 62 | private Integer adjustPrice; |
| 63 | 63 | ||
| 64 | - @Schema(description = "应付金额(总)", required = true, example = "1000") | 64 | + @Schema(description = "应付金额(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1000") |
| 65 | private Integer payPrice; | 65 | private Integer payPrice; |
| 66 | 66 | ||
| 67 | // ========== 收件 + 物流基本信息 ========== | 67 | // ========== 收件 + 物流基本信息 ========== |
| @@ -75,22 +75,22 @@ public class AppTradeOrderDetailRespVO { | @@ -75,22 +75,22 @@ public class AppTradeOrderDetailRespVO { | ||
| 75 | @Schema(description = "收货时间") | 75 | @Schema(description = "收货时间") |
| 76 | private LocalDateTime receiveTime; | 76 | private LocalDateTime receiveTime; |
| 77 | 77 | ||
| 78 | - @Schema(description = "收件人名称", required = true, example = "张三") | 78 | + @Schema(description = "收件人名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三") |
| 79 | private String receiverName; | 79 | private String receiverName; |
| 80 | 80 | ||
| 81 | - @Schema(description = "收件人手机", required = true, example = "13800138000") | 81 | + @Schema(description = "收件人手机", requiredMode = Schema.RequiredMode.REQUIRED, example = "13800138000") |
| 82 | private String receiverMobile; | 82 | private String receiverMobile; |
| 83 | 83 | ||
| 84 | - @Schema(description = "收件人地区编号", required = true, example = "110000") | 84 | + @Schema(description = "收件人地区编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "110000") |
| 85 | private Integer receiverAreaId; | 85 | private Integer receiverAreaId; |
| 86 | 86 | ||
| 87 | - @Schema(description = "收件人地区名字", required = true, example = "上海 上海市 普陀区") | 87 | + @Schema(description = "收件人地区名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "上海 上海市 普陀区") |
| 88 | private String receiverAreaName; | 88 | private String receiverAreaName; |
| 89 | 89 | ||
| 90 | - @Schema(description = "收件人邮编", required = true, example = "100000") | 90 | + @Schema(description = "收件人邮编", requiredMode = Schema.RequiredMode.REQUIRED, example = "100000") |
| 91 | private Integer receiverPostCode; | 91 | private Integer receiverPostCode; |
| 92 | 92 | ||
| 93 | - @Schema(description = "收件人详细地址", required = true, example = "中关村大街 1 号") | 93 | + @Schema(description = "收件人详细地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "中关村大街 1 号") |
| 94 | private String receiverDetailAddress; | 94 | private String receiverDetailAddress; |
| 95 | 95 | ||
| 96 | // ========== 售后基本信息 ========== | 96 | // ========== 售后基本信息 ========== |
| @@ -100,10 +100,10 @@ public class AppTradeOrderDetailRespVO { | @@ -100,10 +100,10 @@ public class AppTradeOrderDetailRespVO { | ||
| 100 | @Schema(description = "优惠劵编号", example = "1024") | 100 | @Schema(description = "优惠劵编号", example = "1024") |
| 101 | private Long couponId; | 101 | private Long couponId; |
| 102 | 102 | ||
| 103 | - @Schema(description = "优惠劵减免金额", required = true, example = "100") | 103 | + @Schema(description = "优惠劵减免金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 104 | private Integer couponPrice; | 104 | private Integer couponPrice; |
| 105 | 105 | ||
| 106 | - @Schema(description = "积分抵扣的金额", required = true, example = "100") | 106 | + @Schema(description = "积分抵扣的金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 107 | private Integer pointPrice; | 107 | private Integer pointPrice; |
| 108 | 108 | ||
| 109 | /** | 109 | /** |
| @@ -115,28 +115,28 @@ public class AppTradeOrderDetailRespVO { | @@ -115,28 +115,28 @@ public class AppTradeOrderDetailRespVO { | ||
| 115 | @Data | 115 | @Data |
| 116 | public static class Item { | 116 | public static class Item { |
| 117 | 117 | ||
| 118 | - @Schema(description = "编号", required = true, example = "1") | 118 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 119 | private Long id; | 119 | private Long id; |
| 120 | 120 | ||
| 121 | - @Schema(description = "商品 SPU 编号", required = true, example = "1") | 121 | + @Schema(description = "商品 SPU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 122 | private Long spuId; | 122 | private Long spuId; |
| 123 | 123 | ||
| 124 | - @Schema(description = "商品 SPU 名称", required = true, example = "芋道源码") | 124 | + @Schema(description = "商品 SPU 名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码") |
| 125 | private String spuName; | 125 | private String spuName; |
| 126 | 126 | ||
| 127 | - @Schema(description = "商品 SKU 编号", required = true, example = "1") | 127 | + @Schema(description = "商品 SKU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 128 | private Long skuId; | 128 | private Long skuId; |
| 129 | 129 | ||
| 130 | - @Schema(description = "商品图片", required = true, example = "https://www.iocoder.cn/1.png") | 130 | + @Schema(description = "商品图片", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/1.png") |
| 131 | private String picUrl; | 131 | private String picUrl; |
| 132 | 132 | ||
| 133 | - @Schema(description = "购买数量", required = true, example = "1") | 133 | + @Schema(description = "购买数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 134 | private Integer count; | 134 | private Integer count; |
| 135 | 135 | ||
| 136 | - @Schema(description = "商品原价(总)", required = true, example = "100") | 136 | + @Schema(description = "商品原价(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 137 | private Integer originalPrice; | 137 | private Integer originalPrice; |
| 138 | 138 | ||
| 139 | - @Schema(description = "商品原价(单)", required = true, example = "100") | 139 | + @Schema(description = "商品原价(单)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 140 | private Integer originalUnitPrice; | 140 | private Integer originalUnitPrice; |
| 141 | 141 | ||
| 142 | /** | 142 | /** |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/order/vo/AppTradeOrderGetCreateInfoRespVO.java
| @@ -44,7 +44,7 @@ public class AppTradeOrderGetCreateInfoRespVO { | @@ -44,7 +44,7 @@ public class AppTradeOrderGetCreateInfoRespVO { | ||
| 44 | public static class Sku { | 44 | public static class Sku { |
| 45 | 45 | ||
| 46 | // SKU 自带信息 | 46 | // SKU 自带信息 |
| 47 | - @Schema(description = "SKU 编号", required = true, example = "1024") | 47 | + @Schema(description = "SKU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 48 | private Integer id; | 48 | private Integer id; |
| 49 | /** | 49 | /** |
| 50 | * SPU 信息 | 50 | * SPU 信息 |
| @@ -144,7 +144,7 @@ public class AppTradeOrderGetCreateInfoRespVO { | @@ -144,7 +144,7 @@ public class AppTradeOrderGetCreateInfoRespVO { | ||
| 144 | @AllArgsConstructor | 144 | @AllArgsConstructor |
| 145 | public static class Fee { | 145 | public static class Fee { |
| 146 | 146 | ||
| 147 | - @Schema(description = "购买总价", required = true, example = "1024") | 147 | + @Schema(description = "购买总价", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 148 | private Integer buyPrice; | 148 | private Integer buyPrice; |
| 149 | /** | 149 | /** |
| 150 | * 优惠总价 | 150 | * 优惠总价 |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/order/vo/AppTradeOrderPageItemRespVO.java
| @@ -10,16 +10,16 @@ import java.util.List; | @@ -10,16 +10,16 @@ import java.util.List; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class AppTradeOrderPageItemRespVO { | 11 | public class AppTradeOrderPageItemRespVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "订单编号", required = true, example = "1024") | 13 | + @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "订单流水号", required = true, example = "1146347329394184195") | 16 | + @Schema(description = "订单流水号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1146347329394184195") |
| 17 | private String no; | 17 | private String no; |
| 18 | 18 | ||
| 19 | - @Schema(description = "订单状态", required = true, example = "1") | 19 | + @Schema(description = "订单状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 20 | private Integer status; | 20 | private Integer status; |
| 21 | 21 | ||
| 22 | - @Schema(description = "购买的商品数量", required = true, example = "10") | 22 | + @Schema(description = "购买的商品数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 23 | private Integer productCount; | 23 | private Integer productCount; |
| 24 | 24 | ||
| 25 | /** | 25 | /** |
| @@ -31,28 +31,28 @@ public class AppTradeOrderPageItemRespVO { | @@ -31,28 +31,28 @@ public class AppTradeOrderPageItemRespVO { | ||
| 31 | @Data | 31 | @Data |
| 32 | public static class Item { | 32 | public static class Item { |
| 33 | 33 | ||
| 34 | - @Schema(description = "编号", required = true, example = "1") | 34 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 35 | private Long id; | 35 | private Long id; |
| 36 | 36 | ||
| 37 | - @Schema(description = "商品 SPU 编号", required = true, example = "1") | 37 | + @Schema(description = "商品 SPU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 38 | private Long spuId; | 38 | private Long spuId; |
| 39 | 39 | ||
| 40 | - @Schema(description = "商品 SPU 名称", required = true, example = "芋道源码") | 40 | + @Schema(description = "商品 SPU 名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码") |
| 41 | private String spuName; | 41 | private String spuName; |
| 42 | 42 | ||
| 43 | - @Schema(description = "商品 SKU 编号", required = true, example = "1") | 43 | + @Schema(description = "商品 SKU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 44 | private Long skuId; | 44 | private Long skuId; |
| 45 | 45 | ||
| 46 | - @Schema(description = "商品图片", required = true, example = "https://www.iocoder.cn/1.png") | 46 | + @Schema(description = "商品图片", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/1.png") |
| 47 | private String picUrl; | 47 | private String picUrl; |
| 48 | 48 | ||
| 49 | - @Schema(description = "购买数量", required = true, example = "1") | 49 | + @Schema(description = "购买数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 50 | private Integer count; | 50 | private Integer count; |
| 51 | 51 | ||
| 52 | - @Schema(description = "商品原价(总)", required = true, example = "100") | 52 | + @Schema(description = "商品原价(总)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 53 | private Integer originalPrice; | 53 | private Integer originalPrice; |
| 54 | 54 | ||
| 55 | - @Schema(description = "商品原价(单)", required = true, example = "100") | 55 | + @Schema(description = "商品原价(单)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 56 | private Integer originalUnitPrice; | 56 | private Integer originalUnitPrice; |
| 57 | 57 | ||
| 58 | /** | 58 | /** |
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/app/address/vo/AppAddressBaseVO.java
| @@ -12,27 +12,27 @@ import javax.validation.constraints.NotNull; | @@ -12,27 +12,27 @@ import javax.validation.constraints.NotNull; | ||
| 12 | @Data | 12 | @Data |
| 13 | public class AppAddressBaseVO { | 13 | public class AppAddressBaseVO { |
| 14 | 14 | ||
| 15 | - @Schema(description = "收件人名称", required = true) | 15 | + @Schema(description = "收件人名称", requiredMode = Schema.RequiredMode.REQUIRED) |
| 16 | @NotNull(message = "收件人名称不能为空") | 16 | @NotNull(message = "收件人名称不能为空") |
| 17 | private String name; | 17 | private String name; |
| 18 | 18 | ||
| 19 | - @Schema(description = "手机号", required = true) | 19 | + @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | @NotNull(message = "手机号不能为空") | 20 | @NotNull(message = "手机号不能为空") |
| 21 | private String mobile; | 21 | private String mobile; |
| 22 | 22 | ||
| 23 | - @Schema(description = "地区编号", required = true) | 23 | + @Schema(description = "地区编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 24 | @NotNull(message = "地区编号不能为空") | 24 | @NotNull(message = "地区编号不能为空") |
| 25 | private Long areaId; | 25 | private Long areaId; |
| 26 | 26 | ||
| 27 | - @Schema(description = "邮编", required = true) | 27 | + @Schema(description = "邮编", requiredMode = Schema.RequiredMode.REQUIRED) |
| 28 | @NotEmpty(message = "邮编不能为空") | 28 | @NotEmpty(message = "邮编不能为空") |
| 29 | private String postCode; | 29 | private String postCode; |
| 30 | 30 | ||
| 31 | - @Schema(description = "收件详细地址", required = true) | 31 | + @Schema(description = "收件详细地址", requiredMode = Schema.RequiredMode.REQUIRED) |
| 32 | @NotNull(message = "收件详细地址不能为空") | 32 | @NotNull(message = "收件详细地址不能为空") |
| 33 | private String detailAddress; | 33 | private String detailAddress; |
| 34 | 34 | ||
| 35 | - @Schema(description = "是否默认地址", required = true) | 35 | + @Schema(description = "是否默认地址", requiredMode = Schema.RequiredMode.REQUIRED) |
| 36 | @NotNull(message = "是否默认地址不能为空") | 36 | @NotNull(message = "是否默认地址不能为空") |
| 37 | private Boolean defaulted; | 37 | private Boolean defaulted; |
| 38 | 38 |
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/app/address/vo/AppAddressRespVO.java
| @@ -9,10 +9,10 @@ import java.time.LocalDateTime; | @@ -9,10 +9,10 @@ import java.time.LocalDateTime; | ||
| 9 | @ToString(callSuper = true) | 9 | @ToString(callSuper = true) |
| 10 | public class AppAddressRespVO extends AppAddressBaseVO { | 10 | public class AppAddressRespVO extends AppAddressBaseVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "编号", required = true) | 12 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 13 | private Long id; | 13 | private Long id; |
| 14 | 14 | ||
| 15 | - @Schema(description = "创建时间", required = true) | 15 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 16 | private LocalDateTime createTime; | 16 | private LocalDateTime createTime; |
| 17 | 17 | ||
| 18 | } | 18 | } |
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/app/address/vo/AppAddressUpdateReqVO.java
| @@ -9,7 +9,7 @@ import javax.validation.constraints.*; | @@ -9,7 +9,7 @@ import javax.validation.constraints.*; | ||
| 9 | @ToString(callSuper = true) | 9 | @ToString(callSuper = true) |
| 10 | public class AppAddressUpdateReqVO extends AppAddressBaseVO { | 10 | public class AppAddressUpdateReqVO extends AppAddressBaseVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "编号", required = true) | 12 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 13 | @NotNull(message = "编号不能为空") | 13 | @NotNull(message = "编号不能为空") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 |
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/app/auth/vo/AppAuthCheckCodeReqVO.java
| @@ -27,7 +27,7 @@ public class AppAuthCheckCodeReqVO { | @@ -27,7 +27,7 @@ public class AppAuthCheckCodeReqVO { | ||
| 27 | @Mobile | 27 | @Mobile |
| 28 | private String mobile; | 28 | private String mobile; |
| 29 | 29 | ||
| 30 | - @Schema(description = "手机验证码", required = true, example = "1024") | 30 | + @Schema(description = "手机验证码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 31 | @NotBlank(message = "手机验证码不能为空") | 31 | @NotBlank(message = "手机验证码不能为空") |
| 32 | @Length(min = 4, max = 6, message = "手机验证码长度为 4-6 位") | 32 | @Length(min = 4, max = 6, message = "手机验证码长度为 4-6 位") |
| 33 | @Pattern(regexp = "^[0-9]+$", message = "手机验证码必须都是数字") | 33 | @Pattern(regexp = "^[0-9]+$", message = "手机验证码必须都是数字") |
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/app/auth/vo/AppAuthLoginReqVO.java
| @@ -21,26 +21,26 @@ import javax.validation.constraints.NotEmpty; | @@ -21,26 +21,26 @@ import javax.validation.constraints.NotEmpty; | ||
| 21 | @Builder | 21 | @Builder |
| 22 | public class AppAuthLoginReqVO { | 22 | public class AppAuthLoginReqVO { |
| 23 | 23 | ||
| 24 | - @Schema(description = "手机号", required = true, example = "15601691300") | 24 | + @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15601691300") |
| 25 | @NotEmpty(message = "手机号不能为空") | 25 | @NotEmpty(message = "手机号不能为空") |
| 26 | @Mobile | 26 | @Mobile |
| 27 | private String mobile; | 27 | private String mobile; |
| 28 | 28 | ||
| 29 | - @Schema(description = "密码", required = true, example = "buzhidao") | 29 | + @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "buzhidao") |
| 30 | @NotEmpty(message = "密码不能为空") | 30 | @NotEmpty(message = "密码不能为空") |
| 31 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") | 31 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") |
| 32 | private String password; | 32 | private String password; |
| 33 | 33 | ||
| 34 | // ========== 绑定社交登录时,需要传递如下参数 ========== | 34 | // ========== 绑定社交登录时,需要传递如下参数 ========== |
| 35 | 35 | ||
| 36 | - @Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", required = true, example = "10") | 36 | + @Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 37 | @InEnum(SocialTypeEnum.class) | 37 | @InEnum(SocialTypeEnum.class) |
| 38 | private Integer socialType; | 38 | private Integer socialType; |
| 39 | 39 | ||
| 40 | - @Schema(description = "授权码", required = true, example = "1024") | 40 | + @Schema(description = "授权码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 41 | private String socialCode; | 41 | private String socialCode; |
| 42 | 42 | ||
| 43 | - @Schema(description = "state", required = true, example = "9b2ffbc1-7425-4155-9894-9d5c08541d62") | 43 | + @Schema(description = "state", requiredMode = Schema.RequiredMode.REQUIRED, example = "9b2ffbc1-7425-4155-9894-9d5c08541d62") |
| 44 | private String socialState; | 44 | private String socialState; |
| 45 | 45 | ||
| 46 | @AssertTrue(message = "授权码不能为空") | 46 | @AssertTrue(message = "授权码不能为空") |
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/app/auth/vo/AppAuthLoginRespVO.java
| @@ -15,16 +15,16 @@ import java.time.LocalDateTime; | @@ -15,16 +15,16 @@ import java.time.LocalDateTime; | ||
| 15 | @Builder | 15 | @Builder |
| 16 | public class AppAuthLoginRespVO { | 16 | public class AppAuthLoginRespVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "用户编号", required = true, example = "1024") | 18 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 19 | private Long userId; | 19 | private Long userId; |
| 20 | 20 | ||
| 21 | - @Schema(description = "访问令牌", required = true, example = "happy") | 21 | + @Schema(description = "访问令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "happy") |
| 22 | private String accessToken; | 22 | private String accessToken; |
| 23 | 23 | ||
| 24 | - @Schema(description = "刷新令牌", required = true, example = "nice") | 24 | + @Schema(description = "刷新令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "nice") |
| 25 | private String refreshToken; | 25 | private String refreshToken; |
| 26 | 26 | ||
| 27 | - @Schema(description = "过期时间", required = true) | 27 | + @Schema(description = "过期时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 28 | private LocalDateTime expiresTime; | 28 | private LocalDateTime expiresTime; |
| 29 | 29 | ||
| 30 | } | 30 | } |
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/app/auth/vo/AppAuthResetPasswordReqVO.java
| @@ -20,18 +20,18 @@ import javax.validation.constraints.Pattern; | @@ -20,18 +20,18 @@ import javax.validation.constraints.Pattern; | ||
| 20 | @Builder | 20 | @Builder |
| 21 | public class AppAuthResetPasswordReqVO { | 21 | public class AppAuthResetPasswordReqVO { |
| 22 | 22 | ||
| 23 | - @Schema(description = "新密码", required = true, example = "buzhidao") | 23 | + @Schema(description = "新密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "buzhidao") |
| 24 | @NotEmpty(message = "新密码不能为空") | 24 | @NotEmpty(message = "新密码不能为空") |
| 25 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") | 25 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") |
| 26 | private String password; | 26 | private String password; |
| 27 | 27 | ||
| 28 | - @Schema(description = "手机验证码", required = true, example = "1024") | 28 | + @Schema(description = "手机验证码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 29 | @NotEmpty(message = "手机验证码不能为空") | 29 | @NotEmpty(message = "手机验证码不能为空") |
| 30 | @Length(min = 4, max = 6, message = "手机验证码长度为 4-6 位") | 30 | @Length(min = 4, max = 6, message = "手机验证码长度为 4-6 位") |
| 31 | @Pattern(regexp = "^[0-9]+$", message = "手机验证码必须都是数字") | 31 | @Pattern(regexp = "^[0-9]+$", message = "手机验证码必须都是数字") |
| 32 | private String code; | 32 | private String code; |
| 33 | 33 | ||
| 34 | - @Schema(description = "手机号",required = true,example = "15878962356") | 34 | + @Schema(description = "手机号",requiredMode = Schema.RequiredMode.REQUIRED,example = "15878962356") |
| 35 | @NotBlank(message = "手机号不能为空") | 35 | @NotBlank(message = "手机号不能为空") |
| 36 | @Mobile | 36 | @Mobile |
| 37 | private String mobile; | 37 | private String mobile; |
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/app/auth/vo/AppAuthSmsLoginReqVO.java
| @@ -22,12 +22,12 @@ import javax.validation.constraints.Pattern; | @@ -22,12 +22,12 @@ import javax.validation.constraints.Pattern; | ||
| 22 | @Builder | 22 | @Builder |
| 23 | public class AppAuthSmsLoginReqVO { | 23 | public class AppAuthSmsLoginReqVO { |
| 24 | 24 | ||
| 25 | - @Schema(description = "手机号", required = true, example = "15601691300") | 25 | + @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15601691300") |
| 26 | @NotEmpty(message = "手机号不能为空") | 26 | @NotEmpty(message = "手机号不能为空") |
| 27 | @Mobile | 27 | @Mobile |
| 28 | private String mobile; | 28 | private String mobile; |
| 29 | 29 | ||
| 30 | - @Schema(description = "手机验证码", required = true, example = "1024") | 30 | + @Schema(description = "手机验证码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 31 | @NotEmpty(message = "手机验证码不能为空") | 31 | @NotEmpty(message = "手机验证码不能为空") |
| 32 | @Length(min = 4, max = 6, message = "手机验证码长度为 4-6 位") | 32 | @Length(min = 4, max = 6, message = "手机验证码长度为 4-6 位") |
| 33 | @Pattern(regexp = "^[0-9]+$", message = "手机验证码必须都是数字") | 33 | @Pattern(regexp = "^[0-9]+$", message = "手机验证码必须都是数字") |
| @@ -35,14 +35,14 @@ public class AppAuthSmsLoginReqVO { | @@ -35,14 +35,14 @@ public class AppAuthSmsLoginReqVO { | ||
| 35 | 35 | ||
| 36 | // ========== 绑定社交登录时,需要传递如下参数 ========== | 36 | // ========== 绑定社交登录时,需要传递如下参数 ========== |
| 37 | 37 | ||
| 38 | - @Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", required = true, example = "10") | 38 | + @Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 39 | @InEnum(SocialTypeEnum.class) | 39 | @InEnum(SocialTypeEnum.class) |
| 40 | private Integer socialType; | 40 | private Integer socialType; |
| 41 | 41 | ||
| 42 | - @Schema(description = "授权码", required = true, example = "1024") | 42 | + @Schema(description = "授权码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 43 | private String socialCode; | 43 | private String socialCode; |
| 44 | 44 | ||
| 45 | - @Schema(description = "state", required = true, example = "9b2ffbc1-7425-4155-9894-9d5c08541d62") | 45 | + @Schema(description = "state", requiredMode = Schema.RequiredMode.REQUIRED, example = "9b2ffbc1-7425-4155-9894-9d5c08541d62") |
| 46 | private String socialState; | 46 | private String socialState; |
| 47 | 47 | ||
| 48 | @AssertTrue(message = "授权码不能为空") | 48 | @AssertTrue(message = "授权码不能为空") |
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/app/auth/vo/AppAuthSocialLoginReqVO.java
| @@ -18,16 +18,16 @@ import javax.validation.constraints.NotNull; | @@ -18,16 +18,16 @@ import javax.validation.constraints.NotNull; | ||
| 18 | @Builder | 18 | @Builder |
| 19 | public class AppAuthSocialLoginReqVO { | 19 | public class AppAuthSocialLoginReqVO { |
| 20 | 20 | ||
| 21 | - @Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", required = true, example = "10") | 21 | + @Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 22 | @InEnum(SocialTypeEnum.class) | 22 | @InEnum(SocialTypeEnum.class) |
| 23 | @NotNull(message = "社交平台的类型不能为空") | 23 | @NotNull(message = "社交平台的类型不能为空") |
| 24 | private Integer type; | 24 | private Integer type; |
| 25 | 25 | ||
| 26 | - @Schema(description = "授权码", required = true, example = "1024") | 26 | + @Schema(description = "授权码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 27 | @NotEmpty(message = "授权码不能为空") | 27 | @NotEmpty(message = "授权码不能为空") |
| 28 | private String code; | 28 | private String code; |
| 29 | 29 | ||
| 30 | - @Schema(description = "state", required = true, example = "9b2ffbc1-7425-4155-9894-9d5c08541d62") | 30 | + @Schema(description = "state", requiredMode = Schema.RequiredMode.REQUIRED, example = "9b2ffbc1-7425-4155-9894-9d5c08541d62") |
| 31 | @NotEmpty(message = "state 不能为空") | 31 | @NotEmpty(message = "state 不能为空") |
| 32 | private String state; | 32 | private String state; |
| 33 | 33 |
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/app/auth/vo/AppAuthUpdatePasswordReqVO.java
| @@ -18,12 +18,12 @@ import javax.validation.constraints.NotEmpty; | @@ -18,12 +18,12 @@ import javax.validation.constraints.NotEmpty; | ||
| 18 | @Builder | 18 | @Builder |
| 19 | public class AppAuthUpdatePasswordReqVO { | 19 | public class AppAuthUpdatePasswordReqVO { |
| 20 | 20 | ||
| 21 | - @Schema(description = "用户旧密码", required = true, example = "123456") | 21 | + @Schema(description = "用户旧密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456") |
| 22 | @NotBlank(message = "旧密码不能为空") | 22 | @NotBlank(message = "旧密码不能为空") |
| 23 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") | 23 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") |
| 24 | private String oldPassword; | 24 | private String oldPassword; |
| 25 | 25 | ||
| 26 | - @Schema(description = "新密码", required = true, example = "buzhidao") | 26 | + @Schema(description = "新密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "buzhidao") |
| 27 | @NotEmpty(message = "新密码不能为空") | 27 | @NotEmpty(message = "新密码不能为空") |
| 28 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") | 28 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") |
| 29 | private String password; | 29 | private String password; |
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/app/auth/vo/AppAuthWeixinMiniAppLoginReqVO.java
| @@ -15,11 +15,11 @@ import javax.validation.constraints.NotEmpty; | @@ -15,11 +15,11 @@ import javax.validation.constraints.NotEmpty; | ||
| 15 | @Builder | 15 | @Builder |
| 16 | public class AppAuthWeixinMiniAppLoginReqVO { | 16 | public class AppAuthWeixinMiniAppLoginReqVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "手机 code,小程序通过 wx.getPhoneNumber 方法获得", required = true, example = "hello") | 18 | + @Schema(description = "手机 code,小程序通过 wx.getPhoneNumber 方法获得", requiredMode = Schema.RequiredMode.REQUIRED, example = "hello") |
| 19 | @NotEmpty(message = "手机 code 不能为空") | 19 | @NotEmpty(message = "手机 code 不能为空") |
| 20 | private String phoneCode; | 20 | private String phoneCode; |
| 21 | 21 | ||
| 22 | - @Schema(description = "登录 code,小程序通过 wx.login 方法获得", required = true, example = "word") | 22 | + @Schema(description = "登录 code,小程序通过 wx.login 方法获得", requiredMode = Schema.RequiredMode.REQUIRED, example = "word") |
| 23 | @NotEmpty(message = "登录 code 不能为空") | 23 | @NotEmpty(message = "登录 code 不能为空") |
| 24 | private String loginCode; | 24 | private String loginCode; |
| 25 | 25 |
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/app/social/vo/AppSocialUserBindReqVO.java
| @@ -18,16 +18,16 @@ import javax.validation.constraints.NotNull; | @@ -18,16 +18,16 @@ import javax.validation.constraints.NotNull; | ||
| 18 | @Builder | 18 | @Builder |
| 19 | public class AppSocialUserBindReqVO { | 19 | public class AppSocialUserBindReqVO { |
| 20 | 20 | ||
| 21 | - @Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", required = true, example = "10") | 21 | + @Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 22 | @InEnum(SocialTypeEnum.class) | 22 | @InEnum(SocialTypeEnum.class) |
| 23 | @NotNull(message = "社交平台的类型不能为空") | 23 | @NotNull(message = "社交平台的类型不能为空") |
| 24 | private Integer type; | 24 | private Integer type; |
| 25 | 25 | ||
| 26 | - @Schema(description = "授权码", required = true, example = "1024") | 26 | + @Schema(description = "授权码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 27 | @NotEmpty(message = "授权码不能为空") | 27 | @NotEmpty(message = "授权码不能为空") |
| 28 | private String code; | 28 | private String code; |
| 29 | 29 | ||
| 30 | - @Schema(description = "state", required = true, example = "9b2ffbc1-7425-4155-9894-9d5c08541d62") | 30 | + @Schema(description = "state", requiredMode = Schema.RequiredMode.REQUIRED, example = "9b2ffbc1-7425-4155-9894-9d5c08541d62") |
| 31 | @NotEmpty(message = "state 不能为空") | 31 | @NotEmpty(message = "state 不能为空") |
| 32 | private String state; | 32 | private String state; |
| 33 | 33 |
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/app/social/vo/AppSocialUserUnbindReqVO.java
| @@ -18,12 +18,12 @@ import javax.validation.constraints.NotNull; | @@ -18,12 +18,12 @@ import javax.validation.constraints.NotNull; | ||
| 18 | @Builder | 18 | @Builder |
| 19 | public class AppSocialUserUnbindReqVO { | 19 | public class AppSocialUserUnbindReqVO { |
| 20 | 20 | ||
| 21 | - @Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", required = true, example = "10") | 21 | + @Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 22 | @InEnum(SocialTypeEnum.class) | 22 | @InEnum(SocialTypeEnum.class) |
| 23 | @NotNull(message = "社交平台的类型不能为空") | 23 | @NotNull(message = "社交平台的类型不能为空") |
| 24 | private Integer type; | 24 | private Integer type; |
| 25 | 25 | ||
| 26 | - @Schema(description = "社交用户的 openid", required = true, example = "IPRmJ0wvBptiPIlGEZiPewGwiEiE") | 26 | + @Schema(description = "社交用户的 openid", requiredMode = Schema.RequiredMode.REQUIRED, example = "IPRmJ0wvBptiPIlGEZiPewGwiEiE") |
| 27 | @NotEmpty(message = "社交用户的 openid 不能为空") | 27 | @NotEmpty(message = "社交用户的 openid 不能为空") |
| 28 | private String openid; | 28 | private String openid; |
| 29 | 29 |
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/app/user/vo/AppUserInfoRespVO.java
| @@ -11,12 +11,12 @@ import lombok.NoArgsConstructor; | @@ -11,12 +11,12 @@ import lombok.NoArgsConstructor; | ||
| 11 | @AllArgsConstructor | 11 | @AllArgsConstructor |
| 12 | public class AppUserInfoRespVO { | 12 | public class AppUserInfoRespVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "用户昵称", required = true, example = "芋艿") | 14 | + @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿") |
| 15 | private String nickname; | 15 | private String nickname; |
| 16 | 16 | ||
| 17 | - @Schema(description = "用户头像", required = true, example = "/infra/file/get/35a12e57-4297-4faa-bf7d-7ed2f211c952") | 17 | + @Schema(description = "用户头像", requiredMode = Schema.RequiredMode.REQUIRED, example = "/infra/file/get/35a12e57-4297-4faa-bf7d-7ed2f211c952") |
| 18 | private String avatar; | 18 | private String avatar; |
| 19 | 19 | ||
| 20 | - @Schema(description = "用户手机号", required = true, example = "15601691300") | 20 | + @Schema(description = "用户手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15601691300") |
| 21 | private String mobile; | 21 | private String mobile; |
| 22 | } | 22 | } |
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/app/user/vo/AppUserUpdateMobileReqVO.java
| @@ -19,19 +19,19 @@ import javax.validation.constraints.Pattern; | @@ -19,19 +19,19 @@ import javax.validation.constraints.Pattern; | ||
| 19 | @Builder | 19 | @Builder |
| 20 | public class AppUserUpdateMobileReqVO { | 20 | public class AppUserUpdateMobileReqVO { |
| 21 | 21 | ||
| 22 | - @Schema(description = "手机验证码", required = true, example = "1024") | 22 | + @Schema(description = "手机验证码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 23 | @NotEmpty(message = "手机验证码不能为空") | 23 | @NotEmpty(message = "手机验证码不能为空") |
| 24 | @Length(min = 4, max = 6, message = "手机验证码长度为 4-6 位") | 24 | @Length(min = 4, max = 6, message = "手机验证码长度为 4-6 位") |
| 25 | @Pattern(regexp = "^[0-9]+$", message = "手机验证码必须都是数字") | 25 | @Pattern(regexp = "^[0-9]+$", message = "手机验证码必须都是数字") |
| 26 | private String code; | 26 | private String code; |
| 27 | 27 | ||
| 28 | - @Schema(description = "手机号",required = true,example = "15823654487") | 28 | + @Schema(description = "手机号",requiredMode = Schema.RequiredMode.REQUIRED,example = "15823654487") |
| 29 | @NotBlank(message = "手机号不能为空") | 29 | @NotBlank(message = "手机号不能为空") |
| 30 | @Length(min = 8, max = 11, message = "手机号码长度为 8-11 位") | 30 | @Length(min = 8, max = 11, message = "手机号码长度为 8-11 位") |
| 31 | @Mobile | 31 | @Mobile |
| 32 | private String mobile; | 32 | private String mobile; |
| 33 | 33 | ||
| 34 | - @Schema(description = "原手机验证码", required = true, example = "1024") | 34 | + @Schema(description = "原手机验证码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 35 | @NotEmpty(message = "原手机验证码不能为空") | 35 | @NotEmpty(message = "原手机验证码不能为空") |
| 36 | @Length(min = 4, max = 6, message = "手机验证码长度为 4-6 位") | 36 | @Length(min = 4, max = 6, message = "手机验证码长度为 4-6 位") |
| 37 | @Pattern(regexp = "^[0-9]+$", message = "手机验证码必须都是数字") | 37 | @Pattern(regexp = "^[0-9]+$", message = "手机验证码必须都是数字") |
| @@ -39,7 +39,7 @@ public class AppUserUpdateMobileReqVO { | @@ -39,7 +39,7 @@ public class AppUserUpdateMobileReqVO { | ||
| 39 | 39 | ||
| 40 | // TODO @芋艿:oldMobile 应该不用传递 | 40 | // TODO @芋艿:oldMobile 应该不用传递 |
| 41 | 41 | ||
| 42 | - @Schema(description = "原手机号",required = true,example = "15823654487") | 42 | + @Schema(description = "原手机号",requiredMode = Schema.RequiredMode.REQUIRED,example = "15823654487") |
| 43 | @NotBlank(message = "手机号不能为空") | 43 | @NotBlank(message = "手机号不能为空") |
| 44 | @Length(min = 8, max = 11, message = "手机号码长度为 8-11 位") | 44 | @Length(min = 8, max = 11, message = "手机号码长度为 8-11 位") |
| 45 | @Mobile | 45 | @Mobile |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/account/vo/MpAccountBaseVO.java
| @@ -14,23 +14,23 @@ import javax.validation.constraints.NotEmpty; | @@ -14,23 +14,23 @@ import javax.validation.constraints.NotEmpty; | ||
| 14 | @Data | 14 | @Data |
| 15 | public class MpAccountBaseVO { | 15 | public class MpAccountBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "公众号名称", required = true, example = "芋道源码") | 17 | + @Schema(description = "公众号名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码") |
| 18 | @NotEmpty(message = "公众号名称不能为空") | 18 | @NotEmpty(message = "公众号名称不能为空") |
| 19 | private String name; | 19 | private String name; |
| 20 | 20 | ||
| 21 | - @Schema(description = "公众号微信号", required = true, example = "yudaoyuanma") | 21 | + @Schema(description = "公众号微信号", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudaoyuanma") |
| 22 | @NotEmpty(message = "公众号微信号不能为空") | 22 | @NotEmpty(message = "公众号微信号不能为空") |
| 23 | private String account; | 23 | private String account; |
| 24 | 24 | ||
| 25 | - @Schema(description = "公众号 appId", required = true, example = "wx5b23ba7a5589ecbb") | 25 | + @Schema(description = "公众号 appId", requiredMode = Schema.RequiredMode.REQUIRED, example = "wx5b23ba7a5589ecbb") |
| 26 | @NotEmpty(message = "公众号 appId 不能为空") | 26 | @NotEmpty(message = "公众号 appId 不能为空") |
| 27 | private String appId; | 27 | private String appId; |
| 28 | 28 | ||
| 29 | - @Schema(description = "公众号密钥", required = true, example = "3a7b3b20c537e52e74afd395eb85f61f") | 29 | + @Schema(description = "公众号密钥", requiredMode = Schema.RequiredMode.REQUIRED, example = "3a7b3b20c537e52e74afd395eb85f61f") |
| 30 | @NotEmpty(message = "公众号密钥不能为空") | 30 | @NotEmpty(message = "公众号密钥不能为空") |
| 31 | private String appSecret; | 31 | private String appSecret; |
| 32 | 32 | ||
| 33 | - @Schema(description = "公众号 token", required = true, example = "kangdayuzhen") | 33 | + @Schema(description = "公众号 token", requiredMode = Schema.RequiredMode.REQUIRED, example = "kangdayuzhen") |
| 34 | @NotEmpty(message = "公众号 token 不能为空") | 34 | @NotEmpty(message = "公众号 token 不能为空") |
| 35 | private String token; | 35 | private String token; |
| 36 | 36 |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/account/vo/MpAccountRespVO.java
| @@ -13,13 +13,13 @@ import java.util.Date; | @@ -13,13 +13,13 @@ import java.util.Date; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class MpAccountRespVO extends MpAccountBaseVO { | 14 | public class MpAccountRespVO extends MpAccountBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1024") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | @Schema(description = "二维码图片URL", example = "https://www.iocoder.cn/1024.png") | 19 | @Schema(description = "二维码图片URL", example = "https://www.iocoder.cn/1024.png") |
| 20 | private String qrCodeUrl; | 20 | private String qrCodeUrl; |
| 21 | 21 | ||
| 22 | - @Schema(description = "创建时间", required = true) | 22 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 23 | private Date createTime; | 23 | private Date createTime; |
| 24 | 24 | ||
| 25 | } | 25 | } |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/account/vo/MpAccountSimpleRespVO.java
| @@ -7,10 +7,10 @@ import lombok.Data; | @@ -7,10 +7,10 @@ import lombok.Data; | ||
| 7 | @Data | 7 | @Data |
| 8 | public class MpAccountSimpleRespVO { | 8 | public class MpAccountSimpleRespVO { |
| 9 | 9 | ||
| 10 | - @Schema(description = "编号", required = true, example = "1024") | 10 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 11 | private Long id; | 11 | private Long id; |
| 12 | 12 | ||
| 13 | - @Schema(description = "公众号名称", required = true, example = "芋道源码") | 13 | + @Schema(description = "公众号名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码") |
| 14 | private String name; | 14 | private String name; |
| 15 | 15 | ||
| 16 | } | 16 | } |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/account/vo/MpAccountUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class MpAccountUpdateReqVO extends MpAccountBaseVO { | 14 | public class MpAccountUpdateReqVO extends MpAccountBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1024") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "编号不能为空") | 17 | @NotNull(message = "编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/vo/MpMaterialPageReqVO.java
| @@ -14,7 +14,7 @@ import javax.validation.constraints.NotNull; | @@ -14,7 +14,7 @@ import javax.validation.constraints.NotNull; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class MpMaterialPageReqVO extends PageParam { | 15 | public class MpMaterialPageReqVO extends PageParam { |
| 16 | 16 | ||
| 17 | - @Schema(description = "公众号账号的编号", required = true, example = "2048") | 17 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 18 | @NotNull(message = "公众号账号的编号不能为空") | 18 | @NotNull(message = "公众号账号的编号不能为空") |
| 19 | private Long accountId; | 19 | private Long accountId; |
| 20 | 20 |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/vo/MpMaterialRespVO.java
| @@ -9,24 +9,24 @@ import java.util.Date; | @@ -9,24 +9,24 @@ import java.util.Date; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class MpMaterialRespVO { | 10 | public class MpMaterialRespVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "主键", required = true, example = "1024") | 12 | + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 13 | private Long id; | 13 | private Long id; |
| 14 | 14 | ||
| 15 | - @Schema(description = "公众号账号的编号", required = true, example = "1") | 15 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 16 | private Long accountId; | 16 | private Long accountId; |
| 17 | - @Schema(description = "公众号账号的 appId", required = true, example = "wx1234567890") | 17 | + @Schema(description = "公众号账号的 appId", requiredMode = Schema.RequiredMode.REQUIRED, example = "wx1234567890") |
| 18 | private String appId; | 18 | private String appId; |
| 19 | 19 | ||
| 20 | - @Schema(description = "素材的 media_id", required = true, example = "123") | 20 | + @Schema(description = "素材的 media_id", requiredMode = Schema.RequiredMode.REQUIRED, example = "123") |
| 21 | private String mediaId; | 21 | private String mediaId; |
| 22 | 22 | ||
| 23 | - @Schema(description = "文件类型 参见 WxConsts.MediaFileType 枚举", required = true, example = "image") | 23 | + @Schema(description = "文件类型 参见 WxConsts.MediaFileType 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "image") |
| 24 | private String type; | 24 | private String type; |
| 25 | 25 | ||
| 26 | - @Schema(description = "是否永久 true - 永久;false - 临时", required = true, example = "true") | 26 | + @Schema(description = "是否永久 true - 永久;false - 临时", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 27 | private Boolean permanent; | 27 | private Boolean permanent; |
| 28 | 28 | ||
| 29 | - @Schema(description = "素材的 URL", required = true, example = "https://www.iocoder.cn/1.png") | 29 | + @Schema(description = "素材的 URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/1.png") |
| 30 | private String url; | 30 | private String url; |
| 31 | 31 | ||
| 32 | 32 | ||
| @@ -41,7 +41,7 @@ public class MpMaterialRespVO { | @@ -41,7 +41,7 @@ public class MpMaterialRespVO { | ||
| 41 | @Schema(description = "视频素材的描述 只有【永久素材】使用", example = "我是介绍") | 41 | @Schema(description = "视频素材的描述 只有【永久素材】使用", example = "我是介绍") |
| 42 | private String introduction; | 42 | private String introduction; |
| 43 | 43 | ||
| 44 | - @Schema(description = "创建时间", required = true) | 44 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 45 | private Date createTime; | 45 | private Date createTime; |
| 46 | 46 | ||
| 47 | } | 47 | } |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/vo/MpMaterialUploadNewsImageReqVO.java
| @@ -11,11 +11,11 @@ import javax.validation.constraints.NotNull; | @@ -11,11 +11,11 @@ import javax.validation.constraints.NotNull; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class MpMaterialUploadNewsImageReqVO { | 12 | public class MpMaterialUploadNewsImageReqVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "公众号账号的编号", required = true, example = "2048") | 14 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 15 | @NotNull(message = "公众号账号的编号不能为空") | 15 | @NotNull(message = "公众号账号的编号不能为空") |
| 16 | private Long accountId; | 16 | private Long accountId; |
| 17 | 17 | ||
| 18 | - @Schema(description = "文件附件", required = true) | 18 | + @Schema(description = "文件附件", requiredMode = Schema.RequiredMode.REQUIRED) |
| 19 | @NotNull(message = "文件不能为空") | 19 | @NotNull(message = "文件不能为空") |
| 20 | @JsonIgnore // 避免被操作日志,进行序列化,导致报错 | 20 | @JsonIgnore // 避免被操作日志,进行序列化,导致报错 |
| 21 | private MultipartFile file; | 21 | private MultipartFile file; |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/vo/MpMaterialUploadPermanentReqVO.java
| @@ -15,15 +15,15 @@ import javax.validation.constraints.NotNull; | @@ -15,15 +15,15 @@ import javax.validation.constraints.NotNull; | ||
| 15 | @Data | 15 | @Data |
| 16 | public class MpMaterialUploadPermanentReqVO { | 16 | public class MpMaterialUploadPermanentReqVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "公众号账号的编号", required = true, example = "2048") | 18 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 19 | @NotNull(message = "公众号账号的编号不能为空") | 19 | @NotNull(message = "公众号账号的编号不能为空") |
| 20 | private Long accountId; | 20 | private Long accountId; |
| 21 | 21 | ||
| 22 | - @Schema(description = "文件类型 参见 WxConsts.MediaFileType 枚举", required = true, example = "image") | 22 | + @Schema(description = "文件类型 参见 WxConsts.MediaFileType 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "image") |
| 23 | @NotEmpty(message = "文件类型不能为空") | 23 | @NotEmpty(message = "文件类型不能为空") |
| 24 | private String type; | 24 | private String type; |
| 25 | 25 | ||
| 26 | - @Schema(description = "文件附件", required = true) | 26 | + @Schema(description = "文件附件", requiredMode = Schema.RequiredMode.REQUIRED) |
| 27 | @NotNull(message = "文件不能为空") | 27 | @NotNull(message = "文件不能为空") |
| 28 | @JsonIgnore // 避免被操作日志,进行序列化,导致报错 | 28 | @JsonIgnore // 避免被操作日志,进行序列化,导致报错 |
| 29 | private MultipartFile file; | 29 | private MultipartFile file; |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/vo/MpMaterialUploadRespVO.java
| @@ -7,10 +7,10 @@ import lombok.Data; | @@ -7,10 +7,10 @@ import lombok.Data; | ||
| 7 | @Data | 7 | @Data |
| 8 | public class MpMaterialUploadRespVO { | 8 | public class MpMaterialUploadRespVO { |
| 9 | 9 | ||
| 10 | - @Schema(description = "素材的 media_id", required = true, example = "123") | 10 | + @Schema(description = "素材的 media_id", requiredMode = Schema.RequiredMode.REQUIRED, example = "123") |
| 11 | private String mediaId; | 11 | private String mediaId; |
| 12 | 12 | ||
| 13 | - @Schema(description = "素材的 URL", required = true, example = "https://www.iocoder.cn/1.png") | 13 | + @Schema(description = "素材的 URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/1.png") |
| 14 | private String url; | 14 | private String url; |
| 15 | 15 | ||
| 16 | } | 16 | } |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/vo/MpMaterialUploadTemporaryReqVO.java
| @@ -12,15 +12,15 @@ import javax.validation.constraints.NotNull; | @@ -12,15 +12,15 @@ import javax.validation.constraints.NotNull; | ||
| 12 | @Data | 12 | @Data |
| 13 | public class MpMaterialUploadTemporaryReqVO { | 13 | public class MpMaterialUploadTemporaryReqVO { |
| 14 | 14 | ||
| 15 | - @Schema(description = "公众号账号的编号", required = true, example = "2048") | 15 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 16 | @NotNull(message = "公众号账号的编号不能为空") | 16 | @NotNull(message = "公众号账号的编号不能为空") |
| 17 | private Long accountId; | 17 | private Long accountId; |
| 18 | 18 | ||
| 19 | - @Schema(description = "文件类型 参见 WxConsts.MediaFileType 枚举", required = true, example = "image") | 19 | + @Schema(description = "文件类型 参见 WxConsts.MediaFileType 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "image") |
| 20 | @NotEmpty(message = "文件类型不能为空") | 20 | @NotEmpty(message = "文件类型不能为空") |
| 21 | private String type; | 21 | private String type; |
| 22 | 22 | ||
| 23 | - @Schema(description = "文件附件", required = true) | 23 | + @Schema(description = "文件附件", requiredMode = Schema.RequiredMode.REQUIRED) |
| 24 | @NotNull(message = "文件不能为空") | 24 | @NotNull(message = "文件不能为空") |
| 25 | @JsonIgnore // 避免被操作日志,进行序列化,导致报错 | 25 | @JsonIgnore // 避免被操作日志,进行序列化,导致报错 |
| 26 | private MultipartFile file; | 26 | private MultipartFile file; |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/menu/vo/MpMenuRespVO.java
| @@ -13,16 +13,16 @@ import java.util.Date; | @@ -13,16 +13,16 @@ import java.util.Date; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class MpMenuRespVO extends MpMenuBaseVO { | 14 | public class MpMenuRespVO extends MpMenuBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "主键", required = true, example = "1024") | 16 | + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "公众号账号的编号", required = true, example = "2048") | 19 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 20 | private Long accountId; | 20 | private Long accountId; |
| 21 | 21 | ||
| 22 | - @Schema(description = "公众号 appId", required = true, example = "wx1234567890ox") | 22 | + @Schema(description = "公众号 appId", requiredMode = Schema.RequiredMode.REQUIRED, example = "wx1234567890ox") |
| 23 | private String appId; | 23 | private String appId; |
| 24 | 24 | ||
| 25 | - @Schema(description = "创建时间", required = true) | 25 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 26 | private Date createTime; | 26 | private Date createTime; |
| 27 | 27 | ||
| 28 | } | 28 | } |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/menu/vo/MpMenuSaveReqVO.java
| @@ -12,7 +12,7 @@ import java.util.List; | @@ -12,7 +12,7 @@ import java.util.List; | ||
| 12 | @Data | 12 | @Data |
| 13 | public class MpMenuSaveReqVO { | 13 | public class MpMenuSaveReqVO { |
| 14 | 14 | ||
| 15 | - @Schema(description = "公众号账号的编号", required = true, example = "2048") | 15 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 16 | @NotNull(message = "公众号账号的编号不能为空") | 16 | @NotNull(message = "公众号账号的编号不能为空") |
| 17 | private Long accountId; | 17 | private Long accountId; |
| 18 | 18 |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/message/vo/autoreply/MpAutoReplyCreateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class MpAutoReplyCreateReqVO extends MpAutoReplyBaseVO { | 14 | public class MpAutoReplyCreateReqVO extends MpAutoReplyBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "公众号账号的编号", required = true, example = "1024") | 16 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "公众号账号的编号不能为空") | 17 | @NotNull(message = "公众号账号的编号不能为空") |
| 18 | private Long accountId; | 18 | private Long accountId; |
| 19 | 19 |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/message/vo/autoreply/MpAutoReplyPageReqVO.java
| @@ -14,7 +14,7 @@ import javax.validation.constraints.NotNull; | @@ -14,7 +14,7 @@ import javax.validation.constraints.NotNull; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class MpAutoReplyPageReqVO extends PageParam { | 15 | public class MpAutoReplyPageReqVO extends PageParam { |
| 16 | 16 | ||
| 17 | - @Schema(description = "公众号账号的编号", required = true, example = "1") | 17 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 18 | @NotNull(message = "公众号账号的编号不能为空") | 18 | @NotNull(message = "公众号账号的编号不能为空") |
| 19 | private Long accountId; | 19 | private Long accountId; |
| 20 | 20 |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/message/vo/autoreply/MpAutoReplyRespVO.java
| @@ -13,15 +13,15 @@ import java.util.Date; | @@ -13,15 +13,15 @@ import java.util.Date; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class MpAutoReplyRespVO extends MpAutoReplyBaseVO { | 14 | public class MpAutoReplyRespVO extends MpAutoReplyBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "主键", required = true, example = "1024") | 16 | + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "公众号账号的编号", required = true, example = "1024") | 19 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 20 | private Long accountId; | 20 | private Long accountId; |
| 21 | - @Schema(description = "公众号 appId", required = true, example = "wx1234567890") | 21 | + @Schema(description = "公众号 appId", requiredMode = Schema.RequiredMode.REQUIRED, example = "wx1234567890") |
| 22 | private String appId; | 22 | private String appId; |
| 23 | 23 | ||
| 24 | - @Schema(description = "创建时间", required = true) | 24 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 25 | private Date createTime; | 25 | private Date createTime; |
| 26 | 26 | ||
| 27 | } | 27 | } |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/message/vo/autoreply/MpAutoReplyUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class MpAutoReplyUpdateReqVO extends MpAutoReplyBaseVO { | 14 | public class MpAutoReplyUpdateReqVO extends MpAutoReplyBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "主键", required = true, example = "1024") | 16 | + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "主键不能为空") | 17 | @NotNull(message = "主键不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/message/vo/message/MpMessagePageReqVO.java
| @@ -18,7 +18,7 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | @@ -18,7 +18,7 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | ||
| 18 | @ToString(callSuper = true) | 18 | @ToString(callSuper = true) |
| 19 | public class MpMessagePageReqVO extends PageParam { | 19 | public class MpMessagePageReqVO extends PageParam { |
| 20 | 20 | ||
| 21 | - @Schema(description = "公众号账号的编号", required = true, example = "1024") | 21 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 22 | @NotNull(message = "公众号账号的编号不能为空") | 22 | @NotNull(message = "公众号账号的编号不能为空") |
| 23 | private Long accountId; | 23 | private Long accountId; |
| 24 | 24 |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/message/vo/message/MpMessageRespVO.java
| @@ -13,25 +13,25 @@ import java.util.List; | @@ -13,25 +13,25 @@ import java.util.List; | ||
| 13 | @Data | 13 | @Data |
| 14 | public class MpMessageRespVO { | 14 | public class MpMessageRespVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "主键", required = true, example = "1024") | 16 | + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Integer id; | 17 | private Integer id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "微信公众号消息 id", required = true, example = "23953173569869169") | 19 | + @Schema(description = "微信公众号消息 id", requiredMode = Schema.RequiredMode.REQUIRED, example = "23953173569869169") |
| 20 | private Long msgId; | 20 | private Long msgId; |
| 21 | 21 | ||
| 22 | - @Schema(description = "公众号账号的编号", required = true, example = "1") | 22 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 23 | private Long accountId; | 23 | private Long accountId; |
| 24 | - @Schema(description = "公众号账号的 appid", required = true, example = "wx1234567890") | 24 | + @Schema(description = "公众号账号的 appid", requiredMode = Schema.RequiredMode.REQUIRED, example = "wx1234567890") |
| 25 | private String appId; | 25 | private String appId; |
| 26 | 26 | ||
| 27 | - @Schema(description = "公众号粉丝编号", required = true, example = "2048") | 27 | + @Schema(description = "公众号粉丝编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 28 | private Long userId; | 28 | private Long userId; |
| 29 | - @Schema(description = "公众号粉丝标志", required = true, example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M") | 29 | + @Schema(description = "公众号粉丝标志", requiredMode = Schema.RequiredMode.REQUIRED, example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M") |
| 30 | private String openid; | 30 | private String openid; |
| 31 | 31 | ||
| 32 | - @Schema(description = "消息类型 参见 WxConsts.XmlMsgType 枚举", required = true, example = "text") | 32 | + @Schema(description = "消息类型 参见 WxConsts.XmlMsgType 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "text") |
| 33 | private String type; | 33 | private String type; |
| 34 | - @Schema(description = "消息来源 参见 MpMessageSendFromEnum 枚举", required = true, example = "1") | 34 | + @Schema(description = "消息来源 参见 MpMessageSendFromEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 35 | private Integer sendFrom; | 35 | private Integer sendFrom; |
| 36 | 36 | ||
| 37 | // ========= 普通消息内容 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Receiving_standard_messages.html | 37 | // ========= 普通消息内容 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Receiving_standard_messages.html |
| @@ -95,7 +95,7 @@ public class MpMessageRespVO { | @@ -95,7 +95,7 @@ public class MpMessageRespVO { | ||
| 95 | @Schema(description = "事件 Key 参见 WxConsts.EventType 枚举", example = "qrscene_123456") | 95 | @Schema(description = "事件 Key 参见 WxConsts.EventType 枚举", example = "qrscene_123456") |
| 96 | private String eventKey; | 96 | private String eventKey; |
| 97 | 97 | ||
| 98 | - @Schema(description = "创建时间", required = true) | 98 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 99 | private Date createTime; | 99 | private Date createTime; |
| 100 | 100 | ||
| 101 | } | 101 | } |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/message/vo/message/MpMessageSendReqVO.java
| @@ -14,37 +14,37 @@ import java.util.List; | @@ -14,37 +14,37 @@ import java.util.List; | ||
| 14 | @Data | 14 | @Data |
| 15 | public class MpMessageSendReqVO { | 15 | public class MpMessageSendReqVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "公众号粉丝的编号", required = true, example = "1024") | 17 | + @Schema(description = "公众号粉丝的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 18 | @NotNull(message = "公众号粉丝的编号不能为空") | 18 | @NotNull(message = "公众号粉丝的编号不能为空") |
| 19 | private Long userId; | 19 | private Long userId; |
| 20 | 20 | ||
| 21 | // ========== 消息内容 ========== | 21 | // ========== 消息内容 ========== |
| 22 | 22 | ||
| 23 | - @Schema(description = "消息类型 TEXT/IMAGE/VOICE/VIDEO/NEWS", required = true, example = "text") | 23 | + @Schema(description = "消息类型 TEXT/IMAGE/VOICE/VIDEO/NEWS", requiredMode = Schema.RequiredMode.REQUIRED, example = "text") |
| 24 | @NotEmpty(message = "消息类型不能为空") | 24 | @NotEmpty(message = "消息类型不能为空") |
| 25 | public String type; | 25 | public String type; |
| 26 | 26 | ||
| 27 | - @Schema(description = "消息内容", required = true, example = "你好呀") | 27 | + @Schema(description = "消息内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "你好呀") |
| 28 | @NotEmpty(message = "消息内容不能为空", groups = TextMessageGroup.class) | 28 | @NotEmpty(message = "消息内容不能为空", groups = TextMessageGroup.class) |
| 29 | private String content; | 29 | private String content; |
| 30 | 30 | ||
| 31 | - @Schema(description = "媒体 ID", required = true, example = "qqc_2Fot30Jse-HDoZmo5RrUDijz2nGUkP") | 31 | + @Schema(description = "媒体 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "qqc_2Fot30Jse-HDoZmo5RrUDijz2nGUkP") |
| 32 | @NotEmpty(message = "消息内容不能为空", groups = {ImageMessageGroup.class, VoiceMessageGroup.class, VideoMessageGroup.class}) | 32 | @NotEmpty(message = "消息内容不能为空", groups = {ImageMessageGroup.class, VoiceMessageGroup.class, VideoMessageGroup.class}) |
| 33 | private String mediaId; | 33 | private String mediaId; |
| 34 | 34 | ||
| 35 | - @Schema(description = "标题", required = true, example = "没有标题") | 35 | + @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "没有标题") |
| 36 | @NotEmpty(message = "消息内容不能为空", groups = VideoMessageGroup.class) | 36 | @NotEmpty(message = "消息内容不能为空", groups = VideoMessageGroup.class) |
| 37 | private String title; | 37 | private String title; |
| 38 | 38 | ||
| 39 | - @Schema(description = "描述", required = true, example = "你猜") | 39 | + @Schema(description = "描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜") |
| 40 | @NotEmpty(message = "消息描述不能为空", groups = VideoMessageGroup.class) | 40 | @NotEmpty(message = "消息描述不能为空", groups = VideoMessageGroup.class) |
| 41 | private String description; | 41 | private String description; |
| 42 | 42 | ||
| 43 | - @Schema(description = "缩略图的媒体 id", required = true, example = "qqc_2Fot30Jse-HDoZmo5RrUDijz2nGUkP") | 43 | + @Schema(description = "缩略图的媒体 id", requiredMode = Schema.RequiredMode.REQUIRED, example = "qqc_2Fot30Jse-HDoZmo5RrUDijz2nGUkP") |
| 44 | @NotEmpty(message = "缩略图的媒体 id 不能为空", groups = MusicMessageGroup.class) | 44 | @NotEmpty(message = "缩略图的媒体 id 不能为空", groups = MusicMessageGroup.class) |
| 45 | private String thumbMediaId; | 45 | private String thumbMediaId; |
| 46 | 46 | ||
| 47 | - @Schema(description = "图文消息", required = true) | 47 | + @Schema(description = "图文消息", requiredMode = Schema.RequiredMode.REQUIRED) |
| 48 | @Valid | 48 | @Valid |
| 49 | @NotNull(message = "图文消息不能为空", groups = NewsMessageGroup.class) | 49 | @NotNull(message = "图文消息不能为空", groups = NewsMessageGroup.class) |
| 50 | private List<MpMessageDO.Article> articles; | 50 | private List<MpMessageDO.Article> articles; |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/news/vo/MpDraftPageReqVO.java
| @@ -14,7 +14,7 @@ import javax.validation.constraints.NotNull; | @@ -14,7 +14,7 @@ import javax.validation.constraints.NotNull; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class MpDraftPageReqVO extends PageParam { | 15 | public class MpDraftPageReqVO extends PageParam { |
| 16 | 16 | ||
| 17 | - @Schema(description = "公众号账号的编号", required = true, example = "1024") | 17 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 18 | @NotNull(message = "公众号账号的编号不能为空") | 18 | @NotNull(message = "公众号账号的编号不能为空") |
| 19 | private Long accountId; | 19 | private Long accountId; |
| 20 | 20 |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/news/vo/MpFreePublishPageReqVO.java
| @@ -14,7 +14,7 @@ import javax.validation.constraints.NotNull; | @@ -14,7 +14,7 @@ import javax.validation.constraints.NotNull; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class MpFreePublishPageReqVO extends PageParam { | 15 | public class MpFreePublishPageReqVO extends PageParam { |
| 16 | 16 | ||
| 17 | - @Schema(description = "公众号账号的编号", required = true, example = "1024") | 17 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 18 | @NotNull(message = "公众号账号的编号不能为空") | 18 | @NotNull(message = "公众号账号的编号不能为空") |
| 19 | private Long accountId; | 19 | private Long accountId; |
| 20 | 20 |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/open/vo/MpOpenCheckSignatureReqVO.java
| @@ -9,19 +9,19 @@ import javax.validation.constraints.NotEmpty; | @@ -9,19 +9,19 @@ import javax.validation.constraints.NotEmpty; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class MpOpenCheckSignatureReqVO { | 10 | public class MpOpenCheckSignatureReqVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "微信加密签名", required = true, example = "490eb57f448b87bd5f20ccef58aa4de46aa1908e") | 12 | + @Schema(description = "微信加密签名", requiredMode = Schema.RequiredMode.REQUIRED, example = "490eb57f448b87bd5f20ccef58aa4de46aa1908e") |
| 13 | @NotEmpty(message = "微信加密签名不能为空") | 13 | @NotEmpty(message = "微信加密签名不能为空") |
| 14 | private String signature; | 14 | private String signature; |
| 15 | 15 | ||
| 16 | - @Schema(description = "时间戳", required = true, example = "1672587863") | 16 | + @Schema(description = "时间戳", requiredMode = Schema.RequiredMode.REQUIRED, example = "1672587863") |
| 17 | @NotEmpty(message = "时间戳不能为空") | 17 | @NotEmpty(message = "时间戳不能为空") |
| 18 | private String timestamp; | 18 | private String timestamp; |
| 19 | 19 | ||
| 20 | - @Schema(description = "随机数", required = true, example = "1827365808") | 20 | + @Schema(description = "随机数", requiredMode = Schema.RequiredMode.REQUIRED, example = "1827365808") |
| 21 | @NotEmpty(message = "随机数不能为空") | 21 | @NotEmpty(message = "随机数不能为空") |
| 22 | private String nonce; | 22 | private String nonce; |
| 23 | 23 | ||
| 24 | - @Schema(description = "随机字符串", required = true, example = "2721154047828672511") | 24 | + @Schema(description = "随机字符串", requiredMode = Schema.RequiredMode.REQUIRED, example = "2721154047828672511") |
| 25 | @NotEmpty(message = "随机字符串不能为空") | 25 | @NotEmpty(message = "随机字符串不能为空") |
| 26 | @SuppressWarnings("SpellCheckingInspection") | 26 | @SuppressWarnings("SpellCheckingInspection") |
| 27 | private String echostr; | 27 | private String echostr; |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/open/vo/MpOpenHandleMessageReqVO.java
| @@ -12,19 +12,19 @@ public class MpOpenHandleMessageReqVO { | @@ -12,19 +12,19 @@ public class MpOpenHandleMessageReqVO { | ||
| 12 | 12 | ||
| 13 | public static final String ENCRYPT_TYPE_AES = "aes"; | 13 | public static final String ENCRYPT_TYPE_AES = "aes"; |
| 14 | 14 | ||
| 15 | - @Schema(description = "微信加密签名", required = true, example = "490eb57f448b87bd5f20ccef58aa4de46aa1908e") | 15 | + @Schema(description = "微信加密签名", requiredMode = Schema.RequiredMode.REQUIRED, example = "490eb57f448b87bd5f20ccef58aa4de46aa1908e") |
| 16 | @NotEmpty(message = "微信加密签名不能为空") | 16 | @NotEmpty(message = "微信加密签名不能为空") |
| 17 | private String signature; | 17 | private String signature; |
| 18 | 18 | ||
| 19 | - @Schema(description = "时间戳", required = true, example = "1672587863") | 19 | + @Schema(description = "时间戳", requiredMode = Schema.RequiredMode.REQUIRED, example = "1672587863") |
| 20 | @NotEmpty(message = "时间戳不能为空") | 20 | @NotEmpty(message = "时间戳不能为空") |
| 21 | private String timestamp; | 21 | private String timestamp; |
| 22 | 22 | ||
| 23 | - @Schema(description = "随机数", required = true, example = "1827365808") | 23 | + @Schema(description = "随机数", requiredMode = Schema.RequiredMode.REQUIRED, example = "1827365808") |
| 24 | @NotEmpty(message = "随机数不能为空") | 24 | @NotEmpty(message = "随机数不能为空") |
| 25 | private String nonce; | 25 | private String nonce; |
| 26 | 26 | ||
| 27 | - @Schema(description = "粉丝 openid", required = true, example = "oz-Jdtyn-WGm4C4I5Z-nvBMO_ZfY") | 27 | + @Schema(description = "粉丝 openid", requiredMode = Schema.RequiredMode.REQUIRED, example = "oz-Jdtyn-WGm4C4I5Z-nvBMO_ZfY") |
| 28 | @NotEmpty(message = "粉丝 openid 不能为空") | 28 | @NotEmpty(message = "粉丝 openid 不能为空") |
| 29 | private String openid; | 29 | private String openid; |
| 30 | 30 |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/statistics/vo/MpStatisticsGetReqVO.java
| @@ -13,7 +13,7 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | @@ -13,7 +13,7 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | ||
| 13 | @Data | 13 | @Data |
| 14 | public class MpStatisticsGetReqVO { | 14 | public class MpStatisticsGetReqVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "公众号账号的编号", required = true, example = "1024") | 16 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "公众号账号的编号不能为空") | 17 | @NotNull(message = "公众号账号的编号不能为空") |
| 18 | private Long accountId; | 18 | private Long accountId; |
| 19 | 19 |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/statistics/vo/MpStatisticsInterfaceSummaryRespVO.java
| @@ -9,19 +9,19 @@ import java.util.Date; | @@ -9,19 +9,19 @@ import java.util.Date; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class MpStatisticsInterfaceSummaryRespVO { | 10 | public class MpStatisticsInterfaceSummaryRespVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "日期", required = true) | 12 | + @Schema(description = "日期", requiredMode = Schema.RequiredMode.REQUIRED) |
| 13 | private Date refDate; | 13 | private Date refDate; |
| 14 | 14 | ||
| 15 | - @Schema(description = "通过服务器配置地址获得消息后,被动回复粉丝消息的次数", required = true, example = "10") | 15 | + @Schema(description = "通过服务器配置地址获得消息后,被动回复粉丝消息的次数", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 16 | private Integer callbackCount; | 16 | private Integer callbackCount; |
| 17 | 17 | ||
| 18 | - @Schema(description = "上述动作的失败次数", required = true, example = "20") | 18 | + @Schema(description = "上述动作的失败次数", requiredMode = Schema.RequiredMode.REQUIRED, example = "20") |
| 19 | private Integer failCount; | 19 | private Integer failCount; |
| 20 | 20 | ||
| 21 | - @Schema(description = "总耗时,除以 callback_count 即为平均耗时", required = true, example = "30") | 21 | + @Schema(description = "总耗时,除以 callback_count 即为平均耗时", requiredMode = Schema.RequiredMode.REQUIRED, example = "30") |
| 22 | private Integer totalTimeCost; | 22 | private Integer totalTimeCost; |
| 23 | 23 | ||
| 24 | - @Schema(description = "最大耗时", required = true, example = "40") | 24 | + @Schema(description = "最大耗时", requiredMode = Schema.RequiredMode.REQUIRED, example = "40") |
| 25 | private Integer maxTimeCost; | 25 | private Integer maxTimeCost; |
| 26 | 26 | ||
| 27 | } | 27 | } |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/statistics/vo/MpStatisticsUpstreamMessageRespVO.java
| @@ -9,13 +9,13 @@ import java.util.Date; | @@ -9,13 +9,13 @@ import java.util.Date; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class MpStatisticsUpstreamMessageRespVO { | 10 | public class MpStatisticsUpstreamMessageRespVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "日期", required = true) | 12 | + @Schema(description = "日期", requiredMode = Schema.RequiredMode.REQUIRED) |
| 13 | private Date refDate; | 13 | private Date refDate; |
| 14 | 14 | ||
| 15 | - @Schema(description = "上行发送了(向公众号发送了)消息的粉丝数", required = true, example = "10") | 15 | + @Schema(description = "上行发送了(向公众号发送了)消息的粉丝数", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 16 | private Integer messageUser; | 16 | private Integer messageUser; |
| 17 | 17 | ||
| 18 | - @Schema(description = "上行发送了消息的消息总数", required = true, example = "20") | 18 | + @Schema(description = "上行发送了消息的消息总数", requiredMode = Schema.RequiredMode.REQUIRED, example = "20") |
| 19 | private Integer messageCount; | 19 | private Integer messageCount; |
| 20 | 20 | ||
| 21 | } | 21 | } |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/statistics/vo/MpStatisticsUserCumulateRespVO.java
| @@ -9,10 +9,10 @@ import java.util.Date; | @@ -9,10 +9,10 @@ import java.util.Date; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class MpStatisticsUserCumulateRespVO { | 10 | public class MpStatisticsUserCumulateRespVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "日期", required = true) | 12 | + @Schema(description = "日期", requiredMode = Schema.RequiredMode.REQUIRED) |
| 13 | private Date refDate; | 13 | private Date refDate; |
| 14 | 14 | ||
| 15 | - @Schema(description = "累计粉丝量", required = true, example = "10") | 15 | + @Schema(description = "累计粉丝量", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 16 | private Integer cumulateUser; | 16 | private Integer cumulateUser; |
| 17 | 17 | ||
| 18 | } | 18 | } |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/statistics/vo/MpStatisticsUserSummaryRespVO.java
| @@ -9,16 +9,16 @@ import java.util.Date; | @@ -9,16 +9,16 @@ import java.util.Date; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class MpStatisticsUserSummaryRespVO { | 10 | public class MpStatisticsUserSummaryRespVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "日期", required = true) | 12 | + @Schema(description = "日期", requiredMode = Schema.RequiredMode.REQUIRED) |
| 13 | private Date refDate; | 13 | private Date refDate; |
| 14 | 14 | ||
| 15 | - @Schema(description = "粉丝来源", required = true, example = "0") | 15 | + @Schema(description = "粉丝来源", requiredMode = Schema.RequiredMode.REQUIRED, example = "0") |
| 16 | private Integer userSource; | 16 | private Integer userSource; |
| 17 | 17 | ||
| 18 | - @Schema(description = "新关注的粉丝数量", required = true, example = "10") | 18 | + @Schema(description = "新关注的粉丝数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 19 | private Integer newUser; | 19 | private Integer newUser; |
| 20 | 20 | ||
| 21 | - @Schema(description = "取消关注的粉丝数量", required = true, example = "20") | 21 | + @Schema(description = "取消关注的粉丝数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "20") |
| 22 | private Integer cancelUser; | 22 | private Integer cancelUser; |
| 23 | 23 | ||
| 24 | } | 24 | } |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/tag/vo/MpTagBaseVO.java
| @@ -14,7 +14,7 @@ import javax.validation.constraints.NotEmpty; | @@ -14,7 +14,7 @@ import javax.validation.constraints.NotEmpty; | ||
| 14 | @Data | 14 | @Data |
| 15 | public class MpTagBaseVO { | 15 | public class MpTagBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "标签名", required = true, example = "土豆") | 17 | + @Schema(description = "标签名", requiredMode = Schema.RequiredMode.REQUIRED, example = "土豆") |
| 18 | @NotEmpty(message = "标签名不能为空") | 18 | @NotEmpty(message = "标签名不能为空") |
| 19 | private String name; | 19 | private String name; |
| 20 | 20 |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/tag/vo/MpTagCreateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class MpTagCreateReqVO extends MpTagBaseVO { | 14 | public class MpTagCreateReqVO extends MpTagBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "公众号账号的编号", required = true, example = "2048") | 16 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 17 | @NotNull(message = "公众号账号的编号不能为空") | 17 | @NotNull(message = "公众号账号的编号不能为空") |
| 18 | private Long accountId; | 18 | private Long accountId; |
| 19 | 19 |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/tag/vo/MpTagPageReqVO.java
| @@ -14,7 +14,7 @@ import javax.validation.constraints.NotEmpty; | @@ -14,7 +14,7 @@ import javax.validation.constraints.NotEmpty; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class MpTagPageReqVO extends PageParam { | 15 | public class MpTagPageReqVO extends PageParam { |
| 16 | 16 | ||
| 17 | - @Schema(description = "公众号账号的编号", required = true, example = "2048") | 17 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 18 | @NotEmpty(message = "公众号账号的编号不能为空") | 18 | @NotEmpty(message = "公众号账号的编号不能为空") |
| 19 | private Long accountId; | 19 | private Long accountId; |
| 20 | 20 |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/tag/vo/MpTagRespVO.java
| @@ -13,13 +13,13 @@ import java.util.Date; | @@ -13,13 +13,13 @@ import java.util.Date; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class MpTagRespVO extends MpTagBaseVO { | 14 | public class MpTagRespVO extends MpTagBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1024") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "此标签下粉丝数量", required = true, example = "0") | 19 | + @Schema(description = "此标签下粉丝数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "0") |
| 20 | private Integer count; | 20 | private Integer count; |
| 21 | 21 | ||
| 22 | - @Schema(description = "创建时间", required = true) | 22 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 23 | private Date createTime; | 23 | private Date createTime; |
| 24 | 24 | ||
| 25 | } | 25 | } |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/tag/vo/MpTagSimpleRespVO.java
| @@ -7,13 +7,13 @@ import lombok.Data; | @@ -7,13 +7,13 @@ import lombok.Data; | ||
| 7 | @Data | 7 | @Data |
| 8 | public class MpTagSimpleRespVO { | 8 | public class MpTagSimpleRespVO { |
| 9 | 9 | ||
| 10 | - @Schema(description = "编号", required = true, example = "1024") | 10 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 11 | private Long id; | 11 | private Long id; |
| 12 | 12 | ||
| 13 | - @Schema(description = "公众号的标签编号", required = true, example = "2048") | 13 | + @Schema(description = "公众号的标签编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 14 | private Long tagId; | 14 | private Long tagId; |
| 15 | 15 | ||
| 16 | - @Schema(description = "标签名称", required = true, example = "快乐") | 16 | + @Schema(description = "标签名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "快乐") |
| 17 | private String name; | 17 | private String name; |
| 18 | 18 | ||
| 19 | } | 19 | } |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/tag/vo/MpTagUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class MpTagUpdateReqVO extends MpTagBaseVO { | 14 | public class MpTagUpdateReqVO extends MpTagBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true) | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 17 | @NotNull(message = "编号不能为空") | 17 | @NotNull(message = "编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/user/vo/MpUserPageReqVO.java
| @@ -14,7 +14,7 @@ import javax.validation.constraints.NotNull; | @@ -14,7 +14,7 @@ import javax.validation.constraints.NotNull; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class MpUserPageReqVO extends PageParam { | 15 | public class MpUserPageReqVO extends PageParam { |
| 16 | 16 | ||
| 17 | - @Schema(description = "公众号账号的编号", required = true, example = "2048") | 17 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
| 18 | @NotNull(message = "公众号账号的编号不能为空") | 18 | @NotNull(message = "公众号账号的编号不能为空") |
| 19 | private Long accountId; | 19 | private Long accountId; |
| 20 | 20 |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/user/vo/MpUserRespVO.java
| @@ -11,15 +11,15 @@ import java.util.List; | @@ -11,15 +11,15 @@ import java.util.List; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class MpUserRespVO { | 12 | public class MpUserRespVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "编号", required = true, example = "1024") | 14 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "公众号粉丝标识", required = true, example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M") | 17 | + @Schema(description = "公众号粉丝标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M") |
| 18 | private String openid; | 18 | private String openid; |
| 19 | 19 | ||
| 20 | - @Schema(description = "关注状态 参见 CommonStatusEnum 枚举", required = true, example = "1") | 20 | + @Schema(description = "关注状态 参见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 21 | private Integer subscribeStatus; | 21 | private Integer subscribeStatus; |
| 22 | - @Schema(description = "关注时间", required = true) | 22 | + @Schema(description = "关注时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 23 | private LocalDateTime subscribeTime; | 23 | private LocalDateTime subscribeTime; |
| 24 | @Schema(description = "取消关注时间") | 24 | @Schema(description = "取消关注时间") |
| 25 | private LocalDateTime unsubscribeTime; | 25 | private LocalDateTime unsubscribeTime; |
| @@ -42,12 +42,12 @@ public class MpUserRespVO { | @@ -42,12 +42,12 @@ public class MpUserRespVO { | ||
| 42 | @Schema(description = "标签编号数组", example = "1,2,3") | 42 | @Schema(description = "标签编号数组", example = "1,2,3") |
| 43 | private List<Long> tagIds; | 43 | private List<Long> tagIds; |
| 44 | 44 | ||
| 45 | - @Schema(description = "公众号账号的编号", required = true, example = "1") | 45 | + @Schema(description = "公众号账号的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 46 | private Long accountId; | 46 | private Long accountId; |
| 47 | - @Schema(description = "公众号账号的 appId", required = true, example = "wx1234567890") | 47 | + @Schema(description = "公众号账号的 appId", requiredMode = Schema.RequiredMode.REQUIRED, example = "wx1234567890") |
| 48 | private String appId; | 48 | private String appId; |
| 49 | 49 | ||
| 50 | - @Schema(description = "创建时间", required = true) | 50 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 51 | private Date createTime; | 51 | private Date createTime; |
| 52 | 52 | ||
| 53 | } | 53 | } |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/user/vo/MpUserUpdateReqVO.java
| @@ -10,7 +10,7 @@ import java.util.List; | @@ -10,7 +10,7 @@ import java.util.List; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class MpUserUpdateReqVO { | 11 | public class MpUserUpdateReqVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "编号", required = true, example = "1024") | 13 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 14 | @NotNull(message = "编号不能为空") | 14 | @NotNull(message = "编号不能为空") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/demo/vo/PayDemoOrderCreateReqVO.java
| @@ -10,7 +10,7 @@ import javax.validation.constraints.NotNull; | @@ -10,7 +10,7 @@ import javax.validation.constraints.NotNull; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class PayDemoOrderCreateReqVO { | 11 | public class PayDemoOrderCreateReqVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "商品编号", required = true, example = "17682") | 13 | + @Schema(description = "商品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "17682") |
| 14 | @NotNull(message = "商品编号不能为空") | 14 | @NotNull(message = "商品编号不能为空") |
| 15 | private Long spuId; | 15 | private Long spuId; |
| 16 | 16 |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/demo/vo/PayDemoOrderRespVO.java
| @@ -12,22 +12,22 @@ import java.time.LocalDateTime; | @@ -12,22 +12,22 @@ import java.time.LocalDateTime; | ||
| 12 | @Data | 12 | @Data |
| 13 | public class PayDemoOrderRespVO { | 13 | public class PayDemoOrderRespVO { |
| 14 | 14 | ||
| 15 | - @Schema(description = "订单编号", required = true, example = "1024") | 15 | + @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 16 | private Long id; | 16 | private Long id; |
| 17 | 17 | ||
| 18 | - @Schema(description = "用户编号", required = true, example = "23199") | 18 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "23199") |
| 19 | private Long userId; | 19 | private Long userId; |
| 20 | 20 | ||
| 21 | - @Schema(description = "商品编号", required = true, example = "17682") | 21 | + @Schema(description = "商品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "17682") |
| 22 | private Long spuId; | 22 | private Long spuId; |
| 23 | 23 | ||
| 24 | @Schema(description = "商家备注", example = "李四") | 24 | @Schema(description = "商家备注", example = "李四") |
| 25 | private String spuName; | 25 | private String spuName; |
| 26 | 26 | ||
| 27 | - @Schema(description = "价格,单位:分", required = true, example = "30381") | 27 | + @Schema(description = "价格,单位:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "30381") |
| 28 | private Integer price; | 28 | private Integer price; |
| 29 | 29 | ||
| 30 | - @Schema(description = "是否已支付", required = true) | 30 | + @Schema(description = "是否已支付", requiredMode = Schema.RequiredMode.REQUIRED) |
| 31 | private Boolean payed; | 31 | private Boolean payed; |
| 32 | 32 | ||
| 33 | @Schema(description = "支付订单编号", example = "16863") | 33 | @Schema(description = "支付订单编号", example = "16863") |
| @@ -42,13 +42,13 @@ public class PayDemoOrderRespVO { | @@ -42,13 +42,13 @@ public class PayDemoOrderRespVO { | ||
| 42 | @Schema(description = "支付退款编号", example = "23366") | 42 | @Schema(description = "支付退款编号", example = "23366") |
| 43 | private Long payRefundId; | 43 | private Long payRefundId; |
| 44 | 44 | ||
| 45 | - @Schema(description = "退款金额,单位:分", required = true, example = "14039") | 45 | + @Schema(description = "退款金额,单位:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "14039") |
| 46 | private Integer refundPrice; | 46 | private Integer refundPrice; |
| 47 | 47 | ||
| 48 | @Schema(description = "退款时间") | 48 | @Schema(description = "退款时间") |
| 49 | private LocalDateTime refundTime; | 49 | private LocalDateTime refundTime; |
| 50 | 50 | ||
| 51 | - @Schema(description = "创建时间", required = true) | 51 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 52 | private LocalDateTime createTime; | 52 | private LocalDateTime createTime; |
| 53 | 53 | ||
| 54 | } | 54 | } |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/merchant/vo/app/PayAppBaseVO.java
| @@ -10,26 +10,26 @@ import javax.validation.constraints.*; | @@ -10,26 +10,26 @@ import javax.validation.constraints.*; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class PayAppBaseVO { | 11 | public class PayAppBaseVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "应用名", required = true) | 13 | + @Schema(description = "应用名", requiredMode = Schema.RequiredMode.REQUIRED) |
| 14 | @NotNull(message = "应用名不能为空") | 14 | @NotNull(message = "应用名不能为空") |
| 15 | private String name; | 15 | private String name; |
| 16 | 16 | ||
| 17 | - @Schema(description = "开启状态", required = true) | 17 | + @Schema(description = "开启状态", requiredMode = Schema.RequiredMode.REQUIRED) |
| 18 | @NotNull(message = "开启状态不能为空") | 18 | @NotNull(message = "开启状态不能为空") |
| 19 | private Integer status; | 19 | private Integer status; |
| 20 | 20 | ||
| 21 | @Schema(description = "备注") | 21 | @Schema(description = "备注") |
| 22 | private String remark; | 22 | private String remark; |
| 23 | 23 | ||
| 24 | - @Schema(description = "支付结果的回调地址", required = true) | 24 | + @Schema(description = "支付结果的回调地址", requiredMode = Schema.RequiredMode.REQUIRED) |
| 25 | @NotNull(message = "支付结果的回调地址不能为空") | 25 | @NotNull(message = "支付结果的回调地址不能为空") |
| 26 | private String payNotifyUrl; | 26 | private String payNotifyUrl; |
| 27 | 27 | ||
| 28 | - @Schema(description = "退款结果的回调地址", required = true) | 28 | + @Schema(description = "退款结果的回调地址", requiredMode = Schema.RequiredMode.REQUIRED) |
| 29 | @NotNull(message = "退款结果的回调地址不能为空") | 29 | @NotNull(message = "退款结果的回调地址不能为空") |
| 30 | private String refundNotifyUrl; | 30 | private String refundNotifyUrl; |
| 31 | 31 | ||
| 32 | - @Schema(description = "商户编号", required = true) | 32 | + @Schema(description = "商户编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 33 | @NotNull(message = "商户编号不能为空") | 33 | @NotNull(message = "商户编号不能为空") |
| 34 | private Long merchantId; | 34 | private Long merchantId; |
| 35 | 35 |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/merchant/vo/app/PayAppPageItemRespVO.java
| @@ -14,10 +14,10 @@ import java.util.Set; | @@ -14,10 +14,10 @@ import java.util.Set; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class PayAppPageItemRespVO extends PayAppBaseVO { | 15 | public class PayAppPageItemRespVO extends PayAppBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "应用编号", required = true) | 17 | + @Schema(description = "应用编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 | ||
| 20 | - @Schema(description = "创建时间", required = true) | 20 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 21 | private LocalDateTime createTime; | 21 | private LocalDateTime createTime; |
| 22 | 22 | ||
| 23 | /** | 23 | /** |
| @@ -29,15 +29,15 @@ public class PayAppPageItemRespVO extends PayAppBaseVO { | @@ -29,15 +29,15 @@ public class PayAppPageItemRespVO extends PayAppBaseVO { | ||
| 29 | @Data | 29 | @Data |
| 30 | public static class PayMerchant { | 30 | public static class PayMerchant { |
| 31 | 31 | ||
| 32 | - @Schema(description = "商户编号", required = true, example = "1") | 32 | + @Schema(description = "商户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 33 | private Long id; | 33 | private Long id; |
| 34 | 34 | ||
| 35 | - @Schema(description = "商户名称", required = true, example = "研发部") | 35 | + @Schema(description = "商户名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "研发部") |
| 36 | private String name; | 36 | private String name; |
| 37 | 37 | ||
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | - @Schema(description = "渠道编码集合", required = true, example = "alipay_pc,alipay_wap...") | 40 | + @Schema(description = "渠道编码集合", requiredMode = Schema.RequiredMode.REQUIRED, example = "alipay_pc,alipay_wap...") |
| 41 | private Set<String> channelCodes; | 41 | private Set<String> channelCodes; |
| 42 | 42 | ||
| 43 | 43 |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/merchant/vo/app/PayAppRespVO.java
| @@ -10,10 +10,10 @@ import java.time.LocalDateTime; | @@ -10,10 +10,10 @@ import java.time.LocalDateTime; | ||
| 10 | @ToString(callSuper = true) | 10 | @ToString(callSuper = true) |
| 11 | public class PayAppRespVO extends PayAppBaseVO { | 11 | public class PayAppRespVO extends PayAppBaseVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "应用编号", required = true) | 13 | + @Schema(description = "应用编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "创建时间", required = true) | 16 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 17 | private LocalDateTime createTime; | 17 | private LocalDateTime createTime; |
| 18 | 18 | ||
| 19 | } | 19 | } |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/merchant/vo/app/PayAppUpdateReqVO.java
| @@ -9,7 +9,7 @@ import javax.validation.constraints.*; | @@ -9,7 +9,7 @@ import javax.validation.constraints.*; | ||
| 9 | @ToString(callSuper = true) | 9 | @ToString(callSuper = true) |
| 10 | public class PayAppUpdateReqVO extends PayAppBaseVO { | 10 | public class PayAppUpdateReqVO extends PayAppBaseVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "应用编号", required = true) | 12 | + @Schema(description = "应用编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 13 | @NotNull(message = "应用编号不能为空") | 13 | @NotNull(message = "应用编号不能为空") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/merchant/vo/app/PayAppUpdateStatusReqVO.java
| @@ -9,11 +9,11 @@ import javax.validation.constraints.NotNull; | @@ -9,11 +9,11 @@ import javax.validation.constraints.NotNull; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class PayAppUpdateStatusReqVO { | 10 | public class PayAppUpdateStatusReqVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "商户编号", required = true, example = "1024") | 12 | + @Schema(description = "商户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 13 | @NotNull(message = "商户编号不能为空") | 13 | @NotNull(message = "商户编号不能为空") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "状态,见 SysCommonStatusEnum 枚举", required = true, example = "1") | 16 | + @Schema(description = "状态,见 SysCommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | @NotNull(message = "状态不能为空") | 17 | @NotNull(message = "状态不能为空") |
| 18 | private Integer status; | 18 | private Integer status; |
| 19 | 19 |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/merchant/vo/channel/PayChannelBaseVO.java
| @@ -10,26 +10,26 @@ import javax.validation.constraints.*; | @@ -10,26 +10,26 @@ import javax.validation.constraints.*; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class PayChannelBaseVO { | 11 | public class PayChannelBaseVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "渠道编码", required = true) | 13 | + @Schema(description = "渠道编码", requiredMode = Schema.RequiredMode.REQUIRED) |
| 14 | @NotNull(message = "渠道编码不能为空") | 14 | @NotNull(message = "渠道编码不能为空") |
| 15 | private String code; | 15 | private String code; |
| 16 | 16 | ||
| 17 | - @Schema(description = "开启状态", required = true) | 17 | + @Schema(description = "开启状态", requiredMode = Schema.RequiredMode.REQUIRED) |
| 18 | @NotNull(message = "开启状态不能为空") | 18 | @NotNull(message = "开启状态不能为空") |
| 19 | private Integer status; | 19 | private Integer status; |
| 20 | 20 | ||
| 21 | @Schema(description = "备注") | 21 | @Schema(description = "备注") |
| 22 | private String remark; | 22 | private String remark; |
| 23 | 23 | ||
| 24 | - @Schema(description = "渠道费率,单位:百分比", required = true) | 24 | + @Schema(description = "渠道费率,单位:百分比", requiredMode = Schema.RequiredMode.REQUIRED) |
| 25 | @NotNull(message = "渠道费率,单位:百分比不能为空") | 25 | @NotNull(message = "渠道费率,单位:百分比不能为空") |
| 26 | private Double feeRate; | 26 | private Double feeRate; |
| 27 | 27 | ||
| 28 | - @Schema(description = "商户编号", required = true) | 28 | + @Schema(description = "商户编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 29 | @NotNull(message = "商户编号不能为空") | 29 | @NotNull(message = "商户编号不能为空") |
| 30 | private Long merchantId; | 30 | private Long merchantId; |
| 31 | 31 | ||
| 32 | - @Schema(description = "应用编号", required = true) | 32 | + @Schema(description = "应用编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 33 | @NotNull(message = "应用编号不能为空") | 33 | @NotNull(message = "应用编号不能为空") |
| 34 | private Long appId; | 34 | private Long appId; |
| 35 | 35 |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/merchant/vo/channel/PayChannelRespVO.java
| @@ -10,12 +10,12 @@ import java.time.LocalDateTime; | @@ -10,12 +10,12 @@ import java.time.LocalDateTime; | ||
| 10 | @ToString(callSuper = true) | 10 | @ToString(callSuper = true) |
| 11 | public class PayChannelRespVO extends PayChannelBaseVO { | 11 | public class PayChannelRespVO extends PayChannelBaseVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "商户编号", required = true) | 13 | + @Schema(description = "商户编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "创建时间", required = true) | 16 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 17 | private LocalDateTime createTime; | 17 | private LocalDateTime createTime; |
| 18 | 18 | ||
| 19 | - @Schema(description = "配置", required = true) | 19 | + @Schema(description = "配置", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private String config; | 20 | private String config; |
| 21 | } | 21 | } |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/merchant/vo/channel/PayChannelUpdateReqVO.java
| @@ -9,7 +9,7 @@ import javax.validation.constraints.*; | @@ -9,7 +9,7 @@ import javax.validation.constraints.*; | ||
| 9 | @ToString(callSuper = true) | 9 | @ToString(callSuper = true) |
| 10 | public class PayChannelUpdateReqVO extends PayChannelBaseVO { | 10 | public class PayChannelUpdateReqVO extends PayChannelBaseVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "商户编号", required = true) | 12 | + @Schema(description = "商户编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 13 | @NotNull(message = "商户编号不能为空") | 13 | @NotNull(message = "商户编号不能为空") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/merchant/vo/merchant/PayMerchantBaseVO.java
| @@ -11,15 +11,15 @@ import javax.validation.constraints.NotNull; | @@ -11,15 +11,15 @@ import javax.validation.constraints.NotNull; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class PayMerchantBaseVO { | 12 | public class PayMerchantBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "商户全称", required = true) | 14 | + @Schema(description = "商户全称", requiredMode = Schema.RequiredMode.REQUIRED) |
| 15 | @NotNull(message = "商户全称不能为空") | 15 | @NotNull(message = "商户全称不能为空") |
| 16 | private String name; | 16 | private String name; |
| 17 | 17 | ||
| 18 | - @Schema(description = "商户简称", required = true) | 18 | + @Schema(description = "商户简称", requiredMode = Schema.RequiredMode.REQUIRED) |
| 19 | @NotNull(message = "商户简称不能为空") | 19 | @NotNull(message = "商户简称不能为空") |
| 20 | private String shortName; | 20 | private String shortName; |
| 21 | 21 | ||
| 22 | - @Schema(description = "开启状态", required = true) | 22 | + @Schema(description = "开启状态", requiredMode = Schema.RequiredMode.REQUIRED) |
| 23 | @NotNull(message = "开启状态不能为空") | 23 | @NotNull(message = "开启状态不能为空") |
| 24 | private Integer status; | 24 | private Integer status; |
| 25 | 25 |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/merchant/vo/merchant/PayMerchantRespVO.java
| @@ -13,13 +13,13 @@ import java.time.LocalDateTime; | @@ -13,13 +13,13 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class PayMerchantRespVO extends PayMerchantBaseVO { | 14 | public class PayMerchantRespVO extends PayMerchantBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "商户编号", required = true) | 16 | + @Schema(description = "商户编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "创建时间", required = true) | 19 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private LocalDateTime createTime; | 20 | private LocalDateTime createTime; |
| 21 | 21 | ||
| 22 | - @Schema(description = "商户号", required = true, example = "M233666999") | 22 | + @Schema(description = "商户号", requiredMode = Schema.RequiredMode.REQUIRED, example = "M233666999") |
| 23 | private String no; | 23 | private String no; |
| 24 | 24 | ||
| 25 | } | 25 | } |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/merchant/vo/merchant/PayMerchantUpdateReqVO.java
| @@ -9,7 +9,7 @@ import javax.validation.constraints.*; | @@ -9,7 +9,7 @@ import javax.validation.constraints.*; | ||
| 9 | @ToString(callSuper = true) | 9 | @ToString(callSuper = true) |
| 10 | public class PayMerchantUpdateReqVO extends PayMerchantBaseVO { | 10 | public class PayMerchantUpdateReqVO extends PayMerchantBaseVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "商户编号", required = true) | 12 | + @Schema(description = "商户编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 13 | @NotNull(message = "商户编号不能为空") | 13 | @NotNull(message = "商户编号不能为空") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/merchant/vo/merchant/PayMerchantUpdateStatusReqVO.java
| @@ -9,11 +9,11 @@ import javax.validation.constraints.NotNull; | @@ -9,11 +9,11 @@ import javax.validation.constraints.NotNull; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class PayMerchantUpdateStatusReqVO { | 10 | public class PayMerchantUpdateStatusReqVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "商户编号", required = true, example = "1024") | 12 | + @Schema(description = "商户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 13 | @NotNull(message = "商户编号不能为空") | 13 | @NotNull(message = "商户编号不能为空") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "状态,见 SysCommonStatusEnum 枚举", required = true, example = "1") | 16 | + @Schema(description = "状态,见 SysCommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | @NotNull(message = "状态不能为空") | 17 | @NotNull(message = "状态不能为空") |
| 18 | private Integer status; | 18 | private Integer status; |
| 19 | 19 |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/order/vo/PayOrderBaseVO.java
| @@ -17,11 +17,11 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | @@ -17,11 +17,11 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | ||
| 17 | @Data | 17 | @Data |
| 18 | public class PayOrderBaseVO { | 18 | public class PayOrderBaseVO { |
| 19 | 19 | ||
| 20 | - @Schema(description = "商户编号", required = true) | 20 | + @Schema(description = "商户编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 21 | @NotNull(message = "商户编号不能为空") | 21 | @NotNull(message = "商户编号不能为空") |
| 22 | private Long merchantId; | 22 | private Long merchantId; |
| 23 | 23 | ||
| 24 | - @Schema(description = "应用编号", required = true) | 24 | + @Schema(description = "应用编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 25 | @NotNull(message = "应用编号不能为空") | 25 | @NotNull(message = "应用编号不能为空") |
| 26 | private Long appId; | 26 | private Long appId; |
| 27 | 27 | ||
| @@ -31,27 +31,27 @@ public class PayOrderBaseVO { | @@ -31,27 +31,27 @@ public class PayOrderBaseVO { | ||
| 31 | @Schema(description = "渠道编码") | 31 | @Schema(description = "渠道编码") |
| 32 | private String channelCode; | 32 | private String channelCode; |
| 33 | 33 | ||
| 34 | - @Schema(description = "商户订单编号", required = true) | 34 | + @Schema(description = "商户订单编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 35 | @NotNull(message = "商户订单编号不能为空") | 35 | @NotNull(message = "商户订单编号不能为空") |
| 36 | private String merchantOrderId; | 36 | private String merchantOrderId; |
| 37 | 37 | ||
| 38 | - @Schema(description = "商品标题", required = true) | 38 | + @Schema(description = "商品标题", requiredMode = Schema.RequiredMode.REQUIRED) |
| 39 | @NotNull(message = "商品标题不能为空") | 39 | @NotNull(message = "商品标题不能为空") |
| 40 | private String subject; | 40 | private String subject; |
| 41 | 41 | ||
| 42 | - @Schema(description = "商品描述", required = true) | 42 | + @Schema(description = "商品描述", requiredMode = Schema.RequiredMode.REQUIRED) |
| 43 | @NotNull(message = "商品描述不能为空") | 43 | @NotNull(message = "商品描述不能为空") |
| 44 | private String body; | 44 | private String body; |
| 45 | 45 | ||
| 46 | - @Schema(description = "异步通知地址", required = true) | 46 | + @Schema(description = "异步通知地址", requiredMode = Schema.RequiredMode.REQUIRED) |
| 47 | @NotNull(message = "异步通知地址不能为空") | 47 | @NotNull(message = "异步通知地址不能为空") |
| 48 | private String notifyUrl; | 48 | private String notifyUrl; |
| 49 | 49 | ||
| 50 | - @Schema(description = "通知商户支付结果的回调状态", required = true) | 50 | + @Schema(description = "通知商户支付结果的回调状态", requiredMode = Schema.RequiredMode.REQUIRED) |
| 51 | @NotNull(message = "通知商户支付结果的回调状态不能为空") | 51 | @NotNull(message = "通知商户支付结果的回调状态不能为空") |
| 52 | private Integer notifyStatus; | 52 | private Integer notifyStatus; |
| 53 | 53 | ||
| 54 | - @Schema(description = "支付金额,单位:分", required = true) | 54 | + @Schema(description = "支付金额,单位:分", requiredMode = Schema.RequiredMode.REQUIRED) |
| 55 | @NotNull(message = "支付金额,单位:分不能为空") | 55 | @NotNull(message = "支付金额,单位:分不能为空") |
| 56 | private Long amount; | 56 | private Long amount; |
| 57 | 57 | ||
| @@ -61,15 +61,15 @@ public class PayOrderBaseVO { | @@ -61,15 +61,15 @@ public class PayOrderBaseVO { | ||
| 61 | @Schema(description = "渠道手续金额,单位:分") | 61 | @Schema(description = "渠道手续金额,单位:分") |
| 62 | private Long channelFeeAmount; | 62 | private Long channelFeeAmount; |
| 63 | 63 | ||
| 64 | - @Schema(description = "支付状态", required = true) | 64 | + @Schema(description = "支付状态", requiredMode = Schema.RequiredMode.REQUIRED) |
| 65 | @NotNull(message = "支付状态不能为空") | 65 | @NotNull(message = "支付状态不能为空") |
| 66 | private Integer status; | 66 | private Integer status; |
| 67 | 67 | ||
| 68 | - @Schema(description = "用户 IP", required = true) | 68 | + @Schema(description = "用户 IP", requiredMode = Schema.RequiredMode.REQUIRED) |
| 69 | @NotNull(message = "用户 IP不能为空") | 69 | @NotNull(message = "用户 IP不能为空") |
| 70 | private String userIp; | 70 | private String userIp; |
| 71 | 71 | ||
| 72 | - @Schema(description = "订单失效时间", required = true) | 72 | + @Schema(description = "订单失效时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 73 | @NotNull(message = "订单失效时间不能为空") | 73 | @NotNull(message = "订单失效时间不能为空") |
| 74 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 74 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
| 75 | private LocalDateTime expireTime; | 75 | private LocalDateTime expireTime; |
| @@ -85,15 +85,15 @@ public class PayOrderBaseVO { | @@ -85,15 +85,15 @@ public class PayOrderBaseVO { | ||
| 85 | @Schema(description = "支付成功的订单拓展单编号") | 85 | @Schema(description = "支付成功的订单拓展单编号") |
| 86 | private Long successExtensionId; | 86 | private Long successExtensionId; |
| 87 | 87 | ||
| 88 | - @Schema(description = "退款状态", required = true) | 88 | + @Schema(description = "退款状态", requiredMode = Schema.RequiredMode.REQUIRED) |
| 89 | @NotNull(message = "退款状态不能为空") | 89 | @NotNull(message = "退款状态不能为空") |
| 90 | private Integer refundStatus; | 90 | private Integer refundStatus; |
| 91 | 91 | ||
| 92 | - @Schema(description = "退款次数", required = true) | 92 | + @Schema(description = "退款次数", requiredMode = Schema.RequiredMode.REQUIRED) |
| 93 | @NotNull(message = "退款次数不能为空") | 93 | @NotNull(message = "退款次数不能为空") |
| 94 | private Integer refundTimes; | 94 | private Integer refundTimes; |
| 95 | 95 | ||
| 96 | - @Schema(description = "退款总金额,单位:分", required = true) | 96 | + @Schema(description = "退款总金额,单位:分", requiredMode = Schema.RequiredMode.REQUIRED) |
| 97 | @NotNull(message = "退款总金额,单位:分不能为空") | 97 | @NotNull(message = "退款总金额,单位:分不能为空") |
| 98 | private Long refundAmount; | 98 | private Long refundAmount; |
| 99 | 99 |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/order/vo/PayOrderPageItemRespVO.java
| @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class PayOrderPageItemRespVO extends PayOrderBaseVO { | 14 | public class PayOrderPageItemRespVO extends PayOrderBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "支付订单编号", required = true) | 16 | + @Schema(description = "支付订单编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "创建时间", required = true) | 19 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private LocalDateTime createTime; | 20 | private LocalDateTime createTime; |
| 21 | 21 | ||
| 22 | @Schema(description = "商户名称") | 22 | @Schema(description = "商户名称") |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/order/vo/PayOrderRespVO.java
| @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class PayOrderRespVO extends PayOrderBaseVO { | 14 | public class PayOrderRespVO extends PayOrderBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "支付订单编号", required = true) | 16 | + @Schema(description = "支付订单编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "创建时间", required = true) | 19 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private LocalDateTime createTime; | 20 | private LocalDateTime createTime; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/order/vo/PayOrderSubmitReqVO.java
| @@ -13,11 +13,11 @@ import java.util.Map; | @@ -13,11 +13,11 @@ import java.util.Map; | ||
| 13 | @Data | 13 | @Data |
| 14 | public class PayOrderSubmitReqVO { | 14 | public class PayOrderSubmitReqVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "支付单编号", required = true, example = "1024") | 16 | + @Schema(description = "支付单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "支付单编号不能为空") | 17 | @NotNull(message = "支付单编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 | ||
| 20 | - @Schema(description = "支付渠道", required = true, example = "wx_pub") | 20 | + @Schema(description = "支付渠道", requiredMode = Schema.RequiredMode.REQUIRED, example = "wx_pub") |
| 21 | @NotEmpty(message = "支付渠道不能为空") | 21 | @NotEmpty(message = "支付渠道不能为空") |
| 22 | private String channelCode; | 22 | private String channelCode; |
| 23 | 23 |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/order/vo/PayOrderSubmitRespVO.java
| @@ -11,10 +11,10 @@ import lombok.experimental.Accessors; | @@ -11,10 +11,10 @@ import lombok.experimental.Accessors; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class PayOrderSubmitRespVO { | 12 | public class PayOrderSubmitRespVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "展示模式", required = true, example = "url") // 参见 PayDisplayModeEnum 枚举 | 14 | + @Schema(description = "展示模式", requiredMode = Schema.RequiredMode.REQUIRED, example = "url") // 参见 PayDisplayModeEnum 枚举 |
| 15 | private String displayMode; | 15 | private String displayMode; |
| 16 | 16 | ||
| 17 | - @Schema(description = "展示内容", required = true) | 17 | + @Schema(description = "展示内容", requiredMode = Schema.RequiredMode.REQUIRED) |
| 18 | private String displayContent; | 18 | private String displayContent; |
| 19 | 19 | ||
| 20 | } | 20 | } |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/refund/vo/PayRefundBaseVO.java
| @@ -15,70 +15,70 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | @@ -15,70 +15,70 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | ||
| 15 | @Data | 15 | @Data |
| 16 | public class PayRefundBaseVO { | 16 | public class PayRefundBaseVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "商户编号", required = true) | 18 | + @Schema(description = "商户编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 19 | @NotNull(message = "商户编号不能为空") | 19 | @NotNull(message = "商户编号不能为空") |
| 20 | private Long merchantId; | 20 | private Long merchantId; |
| 21 | 21 | ||
| 22 | - @Schema(description = "应用编号", required = true) | 22 | + @Schema(description = "应用编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 23 | @NotNull(message = "应用编号不能为空") | 23 | @NotNull(message = "应用编号不能为空") |
| 24 | private Long appId; | 24 | private Long appId; |
| 25 | 25 | ||
| 26 | - @Schema(description = "渠道编号", required = true) | 26 | + @Schema(description = "渠道编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 27 | @NotNull(message = "渠道编号不能为空") | 27 | @NotNull(message = "渠道编号不能为空") |
| 28 | private Long channelId; | 28 | private Long channelId; |
| 29 | 29 | ||
| 30 | - @Schema(description = "渠道编码", required = true) | 30 | + @Schema(description = "渠道编码", requiredMode = Schema.RequiredMode.REQUIRED) |
| 31 | @NotNull(message = "渠道编码不能为空") | 31 | @NotNull(message = "渠道编码不能为空") |
| 32 | private String channelCode; | 32 | private String channelCode; |
| 33 | 33 | ||
| 34 | - @Schema(description = "支付订单编号 pay_order 表id", required = true) | 34 | + @Schema(description = "支付订单编号 pay_order 表id", requiredMode = Schema.RequiredMode.REQUIRED) |
| 35 | @NotNull(message = "支付订单编号 pay_order 表id不能为空") | 35 | @NotNull(message = "支付订单编号 pay_order 表id不能为空") |
| 36 | private Long orderId; | 36 | private Long orderId; |
| 37 | 37 | ||
| 38 | - @Schema(description = "交易订单号 pay_extension 表no 字段", required = true) | 38 | + @Schema(description = "交易订单号 pay_extension 表no 字段", requiredMode = Schema.RequiredMode.REQUIRED) |
| 39 | @NotNull(message = "交易订单号 pay_extension 表no 字段不能为空") | 39 | @NotNull(message = "交易订单号 pay_extension 表no 字段不能为空") |
| 40 | private String tradeNo; | 40 | private String tradeNo; |
| 41 | 41 | ||
| 42 | - @Schema(description = "商户订单编号(商户系统生成)", required = true) | 42 | + @Schema(description = "商户订单编号(商户系统生成)", requiredMode = Schema.RequiredMode.REQUIRED) |
| 43 | @NotNull(message = "商户订单编号(商户系统生成)不能为空") | 43 | @NotNull(message = "商户订单编号(商户系统生成)不能为空") |
| 44 | private String merchantOrderId; | 44 | private String merchantOrderId; |
| 45 | 45 | ||
| 46 | - @Schema(description = "商户退款订单号(商户系统生成)", required = true) | 46 | + @Schema(description = "商户退款订单号(商户系统生成)", requiredMode = Schema.RequiredMode.REQUIRED) |
| 47 | @NotNull(message = "商户退款订单号(商户系统生成)不能为空") | 47 | @NotNull(message = "商户退款订单号(商户系统生成)不能为空") |
| 48 | private String merchantRefundNo; | 48 | private String merchantRefundNo; |
| 49 | 49 | ||
| 50 | - @Schema(description = "异步通知商户地址", required = true) | 50 | + @Schema(description = "异步通知商户地址", requiredMode = Schema.RequiredMode.REQUIRED) |
| 51 | @NotNull(message = "异步通知商户地址不能为空") | 51 | @NotNull(message = "异步通知商户地址不能为空") |
| 52 | private String notifyUrl; | 52 | private String notifyUrl; |
| 53 | 53 | ||
| 54 | - @Schema(description = "通知商户退款结果的回调状态", required = true) | 54 | + @Schema(description = "通知商户退款结果的回调状态", requiredMode = Schema.RequiredMode.REQUIRED) |
| 55 | @NotNull(message = "通知商户退款结果的回调状态不能为空") | 55 | @NotNull(message = "通知商户退款结果的回调状态不能为空") |
| 56 | private Integer notifyStatus; | 56 | private Integer notifyStatus; |
| 57 | 57 | ||
| 58 | - @Schema(description = "退款状态", required = true) | 58 | + @Schema(description = "退款状态", requiredMode = Schema.RequiredMode.REQUIRED) |
| 59 | @NotNull(message = "退款状态不能为空") | 59 | @NotNull(message = "退款状态不能为空") |
| 60 | private Integer status; | 60 | private Integer status; |
| 61 | 61 | ||
| 62 | - @Schema(description = "退款类型(部分退款,全部退款)", required = true) | 62 | + @Schema(description = "退款类型(部分退款,全部退款)", requiredMode = Schema.RequiredMode.REQUIRED) |
| 63 | @NotNull(message = "退款类型(部分退款,全部退款)不能为空") | 63 | @NotNull(message = "退款类型(部分退款,全部退款)不能为空") |
| 64 | private Integer type; | 64 | private Integer type; |
| 65 | 65 | ||
| 66 | - @Schema(description = "支付金额,单位分", required = true) | 66 | + @Schema(description = "支付金额,单位分", requiredMode = Schema.RequiredMode.REQUIRED) |
| 67 | @NotNull(message = "支付金额,单位分不能为空") | 67 | @NotNull(message = "支付金额,单位分不能为空") |
| 68 | private Long payAmount; | 68 | private Long payAmount; |
| 69 | 69 | ||
| 70 | - @Schema(description = "退款金额,单位分", required = true) | 70 | + @Schema(description = "退款金额,单位分", requiredMode = Schema.RequiredMode.REQUIRED) |
| 71 | @NotNull(message = "退款金额,单位分不能为空") | 71 | @NotNull(message = "退款金额,单位分不能为空") |
| 72 | private Long refundAmount; | 72 | private Long refundAmount; |
| 73 | 73 | ||
| 74 | - @Schema(description = "退款原因", required = true) | 74 | + @Schema(description = "退款原因", requiredMode = Schema.RequiredMode.REQUIRED) |
| 75 | @NotNull(message = "退款原因不能为空") | 75 | @NotNull(message = "退款原因不能为空") |
| 76 | private String reason; | 76 | private String reason; |
| 77 | 77 | ||
| 78 | @Schema(description = "用户 IP") | 78 | @Schema(description = "用户 IP") |
| 79 | private String userIp; | 79 | private String userIp; |
| 80 | 80 | ||
| 81 | - @Schema(description = "渠道订单号,pay_order 中的channel_order_no 对应", required = true) | 81 | + @Schema(description = "渠道订单号,pay_order 中的channel_order_no 对应", requiredMode = Schema.RequiredMode.REQUIRED) |
| 82 | @NotNull(message = "渠道订单号,pay_order 中的channel_order_no 对应不能为空") | 82 | @NotNull(message = "渠道订单号,pay_order 中的channel_order_no 对应不能为空") |
| 83 | private String channelOrderNo; | 83 | private String channelOrderNo; |
| 84 | 84 |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/refund/vo/PayRefundDetailsRespVO.java
| @@ -14,7 +14,7 @@ import java.time.LocalDateTime; | @@ -14,7 +14,7 @@ import java.time.LocalDateTime; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class PayRefundDetailsRespVO extends PayRefundBaseVO { | 15 | public class PayRefundDetailsRespVO extends PayRefundBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "支付退款编号", required = true) | 17 | + @Schema(description = "支付退款编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 | ||
| 20 | @Schema(description = "商户名称") | 20 | @Schema(description = "商户名称") |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/refund/vo/PayRefundPageItemRespVO.java
| @@ -13,7 +13,7 @@ import java.time.LocalDateTime; | @@ -13,7 +13,7 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class PayRefundPageItemRespVO extends PayRefundBaseVO { | 14 | public class PayRefundPageItemRespVO extends PayRefundBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "支付订单编号", required = true) | 16 | + @Schema(description = "支付订单编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | @Schema(description = "商户名称") | 19 | @Schema(description = "商户名称") |
| @@ -25,7 +25,7 @@ public class PayRefundPageItemRespVO extends PayRefundBaseVO { | @@ -25,7 +25,7 @@ public class PayRefundPageItemRespVO extends PayRefundBaseVO { | ||
| 25 | @Schema(description = "渠道名称") | 25 | @Schema(description = "渠道名称") |
| 26 | private String channelCodeName; | 26 | private String channelCodeName; |
| 27 | 27 | ||
| 28 | - @Schema(description = "创建时间", required = true) | 28 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 29 | private LocalDateTime createTime; | 29 | private LocalDateTime createTime; |
| 30 | 30 | ||
| 31 | } | 31 | } |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/refund/vo/PayRefundRespVO.java
| @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class PayRefundRespVO extends PayRefundBaseVO { | 14 | public class PayRefundRespVO extends PayRefundBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "支付退款编号", required = true) | 16 | + @Schema(description = "支付退款编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "创建时间", required = true) | 19 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private LocalDateTime createTime; | 20 | private LocalDateTime createTime; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/refund/vo/PayRefundUpdateReqVO.java
| @@ -9,7 +9,7 @@ import javax.validation.constraints.*; | @@ -9,7 +9,7 @@ import javax.validation.constraints.*; | ||
| 9 | @ToString(callSuper = true) | 9 | @ToString(callSuper = true) |
| 10 | public class PayRefundUpdateReqVO extends PayRefundBaseVO { | 10 | public class PayRefundUpdateReqVO extends PayRefundBaseVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "支付退款编号", required = true) | 12 | + @Schema(description = "支付退款编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 13 | @NotNull(message = "支付退款编号不能为空") | 13 | @NotNull(message = "支付退款编号不能为空") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 |
yudao-module-report/yudao-module-report-biz/src/main/java/cn/iocoder/yudao/module/report/controller/admin/goview/vo/data/GoViewDataGetBySqlReqVO.java
| @@ -9,7 +9,7 @@ import javax.validation.constraints.NotEmpty; | @@ -9,7 +9,7 @@ import javax.validation.constraints.NotEmpty; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class GoViewDataGetBySqlReqVO { | 10 | public class GoViewDataGetBySqlReqVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "SQL 语句", required = true, example = "SELECT * FROM user") | 12 | + @Schema(description = "SQL 语句", requiredMode = Schema.RequiredMode.REQUIRED, example = "SELECT * FROM user") |
| 13 | @NotEmpty(message = "SQL 语句不能为空") | 13 | @NotEmpty(message = "SQL 语句不能为空") |
| 14 | private String sql; | 14 | private String sql; |
| 15 | 15 |
yudao-module-report/yudao-module-report-biz/src/main/java/cn/iocoder/yudao/module/report/controller/admin/goview/vo/data/GoViewDataRespVO.java
| @@ -10,10 +10,10 @@ import java.util.Map; | @@ -10,10 +10,10 @@ import java.util.Map; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class GoViewDataRespVO { | 11 | public class GoViewDataRespVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "数据维度", required = true, example = "['product', 'data1', 'data2']") | 13 | + @Schema(description = "数据维度", requiredMode = Schema.RequiredMode.REQUIRED, example = "['product', 'data1', 'data2']") |
| 14 | private List<String> dimensions; | 14 | private List<String> dimensions; |
| 15 | 15 | ||
| 16 | - @Schema(description = "数据明细列表", required = true) | 16 | + @Schema(description = "数据明细列表", requiredMode = Schema.RequiredMode.REQUIRED) |
| 17 | private List<Map<String, Object>> source; | 17 | private List<Map<String, Object>> source; |
| 18 | 18 | ||
| 19 | } | 19 | } |
yudao-module-report/yudao-module-report-biz/src/main/java/cn/iocoder/yudao/module/report/controller/admin/goview/vo/project/GoViewProjectCreateReqVO.java
| @@ -8,7 +8,7 @@ import javax.validation.constraints.*; | @@ -8,7 +8,7 @@ import javax.validation.constraints.*; | ||
| 8 | @Data | 8 | @Data |
| 9 | public class GoViewProjectCreateReqVO { | 9 | public class GoViewProjectCreateReqVO { |
| 10 | 10 | ||
| 11 | - @Schema(description = "项目名称", required = true, example = "王五") | 11 | + @Schema(description = "项目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五") |
| 12 | @NotEmpty(message = "项目名称不能为空") | 12 | @NotEmpty(message = "项目名称不能为空") |
| 13 | private String name; | 13 | private String name; |
| 14 | 14 |
yudao-module-report/yudao-module-report-biz/src/main/java/cn/iocoder/yudao/module/report/controller/admin/goview/vo/project/GoViewProjectRespVO.java
| @@ -9,13 +9,13 @@ import java.time.LocalDateTime; | @@ -9,13 +9,13 @@ import java.time.LocalDateTime; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class GoViewProjectRespVO { | 10 | public class GoViewProjectRespVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "编号", required = true, example = "18993") | 12 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18993") |
| 13 | private Long id; | 13 | private Long id; |
| 14 | 14 | ||
| 15 | - @Schema(description = "项目名称", required = true, example = "王五") | 15 | + @Schema(description = "项目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五") |
| 16 | private String name; | 16 | private String name; |
| 17 | 17 | ||
| 18 | - @Schema(description = "发布状态", required = true, example = "1") | 18 | + @Schema(description = "发布状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 19 | private Integer status; | 19 | private Integer status; |
| 20 | 20 | ||
| 21 | @Schema(description = "报表内容") // JSON 格式 | 21 | @Schema(description = "报表内容") // JSON 格式 |
| @@ -27,10 +27,10 @@ public class GoViewProjectRespVO { | @@ -27,10 +27,10 @@ public class GoViewProjectRespVO { | ||
| 27 | @Schema(description = "项目备注", example = "你猜") | 27 | @Schema(description = "项目备注", example = "你猜") |
| 28 | private String remark; | 28 | private String remark; |
| 29 | 29 | ||
| 30 | - @Schema(description = "创建人编号", required = true, example = "1024") | 30 | + @Schema(description = "创建人编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 31 | private String creator; | 31 | private String creator; |
| 32 | 32 | ||
| 33 | - @Schema(description = "创建时间", required = true) | 33 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 34 | private LocalDateTime createTime; | 34 | private LocalDateTime createTime; |
| 35 | 35 | ||
| 36 | } | 36 | } |
yudao-module-report/yudao-module-report-biz/src/main/java/cn/iocoder/yudao/module/report/controller/admin/goview/vo/project/GoViewProjectUpdateReqVO.java
| @@ -11,14 +11,14 @@ import javax.validation.constraints.*; | @@ -11,14 +11,14 @@ import javax.validation.constraints.*; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class GoViewProjectUpdateReqVO { | 12 | public class GoViewProjectUpdateReqVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "编号", required = true, example = "18993") | 14 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18993") |
| 15 | @NotNull(message = "编号不能为空") | 15 | @NotNull(message = "编号不能为空") |
| 16 | private Long id; | 16 | private Long id; |
| 17 | 17 | ||
| 18 | - @Schema(description = "项目名称", required = true, example = "王五") | 18 | + @Schema(description = "项目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五") |
| 19 | private String name; | 19 | private String name; |
| 20 | 20 | ||
| 21 | - @Schema(description = "发布状态", required = true, example = "1") | 21 | + @Schema(description = "发布状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 22 | @InEnum(value = CommonStatusEnum.class, message = "发布状态必须是 {value}") | 22 | @InEnum(value = CommonStatusEnum.class, message = "发布状态必须是 {value}") |
| 23 | private Integer status; | 23 | private Integer status; |
| 24 | 24 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/vo/AuthLoginReqVO.java
| @@ -21,34 +21,34 @@ import javax.validation.constraints.Pattern; | @@ -21,34 +21,34 @@ import javax.validation.constraints.Pattern; | ||
| 21 | @Builder | 21 | @Builder |
| 22 | public class AuthLoginReqVO { | 22 | public class AuthLoginReqVO { |
| 23 | 23 | ||
| 24 | - @Schema(description = "账号", required = true, example = "yudaoyuanma") | 24 | + @Schema(description = "账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudaoyuanma") |
| 25 | @NotEmpty(message = "登录账号不能为空") | 25 | @NotEmpty(message = "登录账号不能为空") |
| 26 | @Length(min = 4, max = 16, message = "账号长度为 4-16 位") | 26 | @Length(min = 4, max = 16, message = "账号长度为 4-16 位") |
| 27 | @Pattern(regexp = "^[A-Za-z0-9]+$", message = "账号格式为数字以及字母") | 27 | @Pattern(regexp = "^[A-Za-z0-9]+$", message = "账号格式为数字以及字母") |
| 28 | private String username; | 28 | private String username; |
| 29 | 29 | ||
| 30 | - @Schema(description = "密码", required = true, example = "buzhidao") | 30 | + @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "buzhidao") |
| 31 | @NotEmpty(message = "密码不能为空") | 31 | @NotEmpty(message = "密码不能为空") |
| 32 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") | 32 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") |
| 33 | private String password; | 33 | private String password; |
| 34 | 34 | ||
| 35 | // ========== 图片验证码相关 ========== | 35 | // ========== 图片验证码相关 ========== |
| 36 | 36 | ||
| 37 | - @Schema(description = "验证码,验证码开启时,需要传递", required = true, | 37 | + @Schema(description = "验证码,验证码开启时,需要传递", requiredMode = Schema.RequiredMode.REQUIRED, |
| 38 | example = "PfcH6mgr8tpXuMWFjvW6YVaqrswIuwmWI5dsVZSg7sGpWtDCUbHuDEXl3cFB1+VvCC/rAkSwK8Fad52FSuncVg==") | 38 | example = "PfcH6mgr8tpXuMWFjvW6YVaqrswIuwmWI5dsVZSg7sGpWtDCUbHuDEXl3cFB1+VvCC/rAkSwK8Fad52FSuncVg==") |
| 39 | @NotEmpty(message = "验证码不能为空", groups = CodeEnableGroup.class) | 39 | @NotEmpty(message = "验证码不能为空", groups = CodeEnableGroup.class) |
| 40 | private String captchaVerification; | 40 | private String captchaVerification; |
| 41 | 41 | ||
| 42 | // ========== 绑定社交登录时,需要传递如下参数 ========== | 42 | // ========== 绑定社交登录时,需要传递如下参数 ========== |
| 43 | 43 | ||
| 44 | - @Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", required = true, example = "10") | 44 | + @Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 45 | @InEnum(SocialTypeEnum.class) | 45 | @InEnum(SocialTypeEnum.class) |
| 46 | private Integer socialType; | 46 | private Integer socialType; |
| 47 | 47 | ||
| 48 | - @Schema(description = "授权码", required = true, example = "1024") | 48 | + @Schema(description = "授权码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 49 | private String socialCode; | 49 | private String socialCode; |
| 50 | 50 | ||
| 51 | - @Schema(description = "state", required = true, example = "9b2ffbc1-7425-4155-9894-9d5c08541d62") | 51 | + @Schema(description = "state", requiredMode = Schema.RequiredMode.REQUIRED, example = "9b2ffbc1-7425-4155-9894-9d5c08541d62") |
| 52 | private String socialState; | 52 | private String socialState; |
| 53 | 53 | ||
| 54 | /** | 54 | /** |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/vo/AuthLoginRespVO.java
| @@ -15,16 +15,16 @@ import java.time.LocalDateTime; | @@ -15,16 +15,16 @@ import java.time.LocalDateTime; | ||
| 15 | @Builder | 15 | @Builder |
| 16 | public class AuthLoginRespVO { | 16 | public class AuthLoginRespVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "用户编号", required = true, example = "1024") | 18 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 19 | private Long userId; | 19 | private Long userId; |
| 20 | 20 | ||
| 21 | - @Schema(description = "访问令牌", required = true, example = "happy") | 21 | + @Schema(description = "访问令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "happy") |
| 22 | private String accessToken; | 22 | private String accessToken; |
| 23 | 23 | ||
| 24 | - @Schema(description = "刷新令牌", required = true, example = "nice") | 24 | + @Schema(description = "刷新令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "nice") |
| 25 | private String refreshToken; | 25 | private String refreshToken; |
| 26 | 26 | ||
| 27 | - @Schema(description = "过期时间", required = true) | 27 | + @Schema(description = "过期时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 28 | private LocalDateTime expiresTime; | 28 | private LocalDateTime expiresTime; |
| 29 | 29 | ||
| 30 | } | 30 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/vo/AuthMenuRespVO.java
| @@ -15,13 +15,13 @@ import java.util.List; | @@ -15,13 +15,13 @@ import java.util.List; | ||
| 15 | @Builder | 15 | @Builder |
| 16 | public class AuthMenuRespVO { | 16 | public class AuthMenuRespVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "菜单名称", required = true, example = "芋道") | 18 | + @Schema(description = "菜单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 19 | private Long id; | 19 | private Long id; |
| 20 | 20 | ||
| 21 | - @Schema(description = "父菜单 ID", required = true, example = "1024") | 21 | + @Schema(description = "父菜单 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 22 | private Long parentId; | 22 | private Long parentId; |
| 23 | 23 | ||
| 24 | - @Schema(description = "菜单名称", required = true, example = "芋道") | 24 | + @Schema(description = "菜单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 25 | private String name; | 25 | private String name; |
| 26 | 26 | ||
| 27 | @Schema(description = "路由地址,仅菜单类型为菜单或者目录时,才需要传", example = "post") | 27 | @Schema(description = "路由地址,仅菜单类型为菜单或者目录时,才需要传", example = "post") |
| @@ -36,10 +36,10 @@ public class AuthMenuRespVO { | @@ -36,10 +36,10 @@ public class AuthMenuRespVO { | ||
| 36 | @Schema(description = "菜单图标,仅菜单类型为菜单或者目录时,才需要传", example = "/menu/list") | 36 | @Schema(description = "菜单图标,仅菜单类型为菜单或者目录时,才需要传", example = "/menu/list") |
| 37 | private String icon; | 37 | private String icon; |
| 38 | 38 | ||
| 39 | - @Schema(description = "是否可见", required = true, example = "false") | 39 | + @Schema(description = "是否可见", requiredMode = Schema.RequiredMode.REQUIRED, example = "false") |
| 40 | private Boolean visible; | 40 | private Boolean visible; |
| 41 | 41 | ||
| 42 | - @Schema(description = "是否缓存", required = true, example = "false") | 42 | + @Schema(description = "是否缓存", requiredMode = Schema.RequiredMode.REQUIRED, example = "false") |
| 43 | private Boolean keepAlive; | 43 | private Boolean keepAlive; |
| 44 | 44 | ||
| 45 | @Schema(description = "是否总是显示", example = "false") | 45 | @Schema(description = "是否总是显示", example = "false") |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/vo/AuthPermissionInfoRespVO.java
| @@ -15,13 +15,13 @@ import java.util.Set; | @@ -15,13 +15,13 @@ import java.util.Set; | ||
| 15 | @Builder | 15 | @Builder |
| 16 | public class AuthPermissionInfoRespVO { | 16 | public class AuthPermissionInfoRespVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "用户信息", required = true) | 18 | + @Schema(description = "用户信息", requiredMode = Schema.RequiredMode.REQUIRED) |
| 19 | private UserVO user; | 19 | private UserVO user; |
| 20 | 20 | ||
| 21 | - @Schema(description = "角色标识数组", required = true) | 21 | + @Schema(description = "角色标识数组", requiredMode = Schema.RequiredMode.REQUIRED) |
| 22 | private Set<String> roles; | 22 | private Set<String> roles; |
| 23 | 23 | ||
| 24 | - @Schema(description = "操作权限数组", required = true) | 24 | + @Schema(description = "操作权限数组", requiredMode = Schema.RequiredMode.REQUIRED) |
| 25 | private Set<String> permissions; | 25 | private Set<String> permissions; |
| 26 | 26 | ||
| 27 | @Schema(description = "用户信息 VO") | 27 | @Schema(description = "用户信息 VO") |
| @@ -31,13 +31,13 @@ public class AuthPermissionInfoRespVO { | @@ -31,13 +31,13 @@ public class AuthPermissionInfoRespVO { | ||
| 31 | @Builder | 31 | @Builder |
| 32 | public static class UserVO { | 32 | public static class UserVO { |
| 33 | 33 | ||
| 34 | - @Schema(description = "用户编号", required = true, example = "1024") | 34 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 35 | private Long id; | 35 | private Long id; |
| 36 | 36 | ||
| 37 | - @Schema(description = "用户昵称", required = true, example = "芋道源码") | 37 | + @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码") |
| 38 | private String nickname; | 38 | private String nickname; |
| 39 | 39 | ||
| 40 | - @Schema(description = "用户头像", required = true, example = "http://www.iocoder.cn/xx.jpg") | 40 | + @Schema(description = "用户头像", requiredMode = Schema.RequiredMode.REQUIRED, example = "http://www.iocoder.cn/xx.jpg") |
| 41 | private String avatar; | 41 | private String avatar; |
| 42 | 42 | ||
| 43 | } | 43 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/vo/AuthSmsLoginReqVO.java
| @@ -16,12 +16,12 @@ import javax.validation.constraints.NotEmpty; | @@ -16,12 +16,12 @@ import javax.validation.constraints.NotEmpty; | ||
| 16 | @Builder | 16 | @Builder |
| 17 | public class AuthSmsLoginReqVO { | 17 | public class AuthSmsLoginReqVO { |
| 18 | 18 | ||
| 19 | - @Schema(description = "手机号", required = true, example = "yudaoyuanma") | 19 | + @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudaoyuanma") |
| 20 | @NotEmpty(message = "手机号不能为空") | 20 | @NotEmpty(message = "手机号不能为空") |
| 21 | @Mobile | 21 | @Mobile |
| 22 | private String mobile; | 22 | private String mobile; |
| 23 | 23 | ||
| 24 | - @Schema(description = "短信验证码", required = true, example = "1024") | 24 | + @Schema(description = "短信验证码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 25 | @NotEmpty(message = "验证码不能为空") | 25 | @NotEmpty(message = "验证码不能为空") |
| 26 | private String code; | 26 | private String code; |
| 27 | 27 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/vo/AuthSmsSendReqVO.java
| @@ -19,12 +19,12 @@ import javax.validation.constraints.NotNull; | @@ -19,12 +19,12 @@ import javax.validation.constraints.NotNull; | ||
| 19 | @Builder | 19 | @Builder |
| 20 | public class AuthSmsSendReqVO { | 20 | public class AuthSmsSendReqVO { |
| 21 | 21 | ||
| 22 | - @Schema(description = "手机号", required = true, example = "yudaoyuanma") | 22 | + @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudaoyuanma") |
| 23 | @NotEmpty(message = "手机号不能为空") | 23 | @NotEmpty(message = "手机号不能为空") |
| 24 | @Mobile | 24 | @Mobile |
| 25 | private String mobile; | 25 | private String mobile; |
| 26 | 26 | ||
| 27 | - @Schema(description = "短信场景", required = true, example = "1") | 27 | + @Schema(description = "短信场景", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 28 | @NotNull(message = "发送场景不能为空") | 28 | @NotNull(message = "发送场景不能为空") |
| 29 | @InEnum(SmsSceneEnum.class) | 29 | @InEnum(SmsSceneEnum.class) |
| 30 | private Integer scene; | 30 | private Integer scene; |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/vo/AuthSocialLoginReqVO.java
| @@ -18,16 +18,16 @@ import javax.validation.constraints.NotNull; | @@ -18,16 +18,16 @@ import javax.validation.constraints.NotNull; | ||
| 18 | @Builder | 18 | @Builder |
| 19 | public class AuthSocialLoginReqVO { | 19 | public class AuthSocialLoginReqVO { |
| 20 | 20 | ||
| 21 | - @Schema(description = "社交平台的类型,参见 UserSocialTypeEnum 枚举值", required = true, example = "10") | 21 | + @Schema(description = "社交平台的类型,参见 UserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 22 | @InEnum(SocialTypeEnum.class) | 22 | @InEnum(SocialTypeEnum.class) |
| 23 | @NotNull(message = "社交平台的类型不能为空") | 23 | @NotNull(message = "社交平台的类型不能为空") |
| 24 | private Integer type; | 24 | private Integer type; |
| 25 | 25 | ||
| 26 | - @Schema(description = "授权码", required = true, example = "1024") | 26 | + @Schema(description = "授权码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 27 | @NotEmpty(message = "授权码不能为空") | 27 | @NotEmpty(message = "授权码不能为空") |
| 28 | private String code; | 28 | private String code; |
| 29 | 29 | ||
| 30 | - @Schema(description = "state", required = true, example = "9b2ffbc1-7425-4155-9894-9d5c08541d62") | 30 | + @Schema(description = "state", requiredMode = Schema.RequiredMode.REQUIRED, example = "9b2ffbc1-7425-4155-9894-9d5c08541d62") |
| 31 | @NotEmpty(message = "state 不能为空") | 31 | @NotEmpty(message = "state 不能为空") |
| 32 | private String state; | 32 | private String state; |
| 33 | 33 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/vo/dept/DeptBaseVO.java
| 1 | package cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept; | 1 | package cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept; |
| 2 | + | ||
| 2 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 3 | import lombok.Data; | 4 | import lombok.Data; |
| 4 | 5 | ||
| @@ -14,7 +15,7 @@ import javax.validation.constraints.Size; | @@ -14,7 +15,7 @@ import javax.validation.constraints.Size; | ||
| 14 | @Data | 15 | @Data |
| 15 | public class DeptBaseVO { | 16 | public class DeptBaseVO { |
| 16 | 17 | ||
| 17 | - @Schema(description = "菜单名称", required = true, example = "芋道") | 18 | + @Schema(description = "菜单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 18 | @NotBlank(message = "部门名称不能为空") | 19 | @NotBlank(message = "部门名称不能为空") |
| 19 | @Size(max = 30, message = "部门名称长度不能超过30个字符") | 20 | @Size(max = 30, message = "部门名称长度不能超过30个字符") |
| 20 | private String name; | 21 | private String name; |
| @@ -22,7 +23,7 @@ public class DeptBaseVO { | @@ -22,7 +23,7 @@ public class DeptBaseVO { | ||
| 22 | @Schema(description = "父菜单 ID", example = "1024") | 23 | @Schema(description = "父菜单 ID", example = "1024") |
| 23 | private Long parentId; | 24 | private Long parentId; |
| 24 | 25 | ||
| 25 | - @Schema(description = "显示顺序不能为空", required = true, example = "1024") | 26 | + @Schema(description = "显示顺序不能为空", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 26 | @NotNull(message = "显示顺序不能为空") | 27 | @NotNull(message = "显示顺序不能为空") |
| 27 | private Integer sort; | 28 | private Integer sort; |
| 28 | 29 | ||
| @@ -38,7 +39,7 @@ public class DeptBaseVO { | @@ -38,7 +39,7 @@ public class DeptBaseVO { | ||
| 38 | @Size(max = 50, message = "邮箱长度不能超过50个字符") | 39 | @Size(max = 50, message = "邮箱长度不能超过50个字符") |
| 39 | private String email; | 40 | private String email; |
| 40 | 41 | ||
| 41 | - @Schema(description = "状态,见 CommonStatusEnum 枚举", required = true, example = "1") | 42 | + @Schema(description = "状态,见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 42 | @NotNull(message = "状态不能为空") | 43 | @NotNull(message = "状态不能为空") |
| 43 | // @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") | 44 | // @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") |
| 44 | private Integer status; | 45 | private Integer status; |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/vo/dept/DeptRespVO.java
| @@ -11,13 +11,13 @@ import java.time.LocalDateTime; | @@ -11,13 +11,13 @@ import java.time.LocalDateTime; | ||
| 11 | @EqualsAndHashCode(callSuper = true) | 11 | @EqualsAndHashCode(callSuper = true) |
| 12 | public class DeptRespVO extends DeptBaseVO { | 12 | public class DeptRespVO extends DeptBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "部门编号", required = true, example = "1024") | 14 | + @Schema(description = "部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "状态,参见 CommonStatusEnum 枚举类", required = true, example = "1") | 17 | + @Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 18 | private Integer status; | 18 | private Integer status; |
| 19 | 19 | ||
| 20 | - @Schema(description = "创建时间", required = true, example = "时间戳格式") | 20 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
| 21 | private LocalDateTime createTime; | 21 | private LocalDateTime createTime; |
| 22 | 22 | ||
| 23 | } | 23 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/vo/dept/DeptSimpleRespVO.java
| @@ -11,13 +11,13 @@ import lombok.NoArgsConstructor; | @@ -11,13 +11,13 @@ import lombok.NoArgsConstructor; | ||
| 11 | @AllArgsConstructor | 11 | @AllArgsConstructor |
| 12 | public class DeptSimpleRespVO { | 12 | public class DeptSimpleRespVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "部门编号", required = true, example = "1024") | 14 | + @Schema(description = "部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "部门名称", required = true, example = "芋道") | 17 | + @Schema(description = "部门名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 18 | private String name; | 18 | private String name; |
| 19 | 19 | ||
| 20 | - @Schema(description = "父部门 ID", required = true, example = "1024") | 20 | + @Schema(description = "父部门 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 21 | private Long parentId; | 21 | private Long parentId; |
| 22 | 22 | ||
| 23 | } | 23 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/vo/dept/DeptUpdateReqVO.java
| @@ -11,7 +11,7 @@ import javax.validation.constraints.NotNull; | @@ -11,7 +11,7 @@ import javax.validation.constraints.NotNull; | ||
| 11 | @EqualsAndHashCode(callSuper = true) | 11 | @EqualsAndHashCode(callSuper = true) |
| 12 | public class DeptUpdateReqVO extends DeptBaseVO { | 12 | public class DeptUpdateReqVO extends DeptBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "部门编号", required = true, example = "1024") | 14 | + @Schema(description = "部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | @NotNull(message = "部门编号不能为空") | 15 | @NotNull(message = "部门编号不能为空") |
| 16 | private Long id; | 16 | private Long id; |
| 17 | 17 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/vo/post/PostBaseVO.java
| @@ -13,21 +13,21 @@ import javax.validation.constraints.Size; | @@ -13,21 +13,21 @@ import javax.validation.constraints.Size; | ||
| 13 | @Data | 13 | @Data |
| 14 | public class PostBaseVO { | 14 | public class PostBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "岗位名称", required = true, example = "小博主") | 16 | + @Schema(description = "岗位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "小博主") |
| 17 | @NotBlank(message = "岗位名称不能为空") | 17 | @NotBlank(message = "岗位名称不能为空") |
| 18 | @Size(max = 50, message = "岗位名称长度不能超过50个字符") | 18 | @Size(max = 50, message = "岗位名称长度不能超过50个字符") |
| 19 | private String name; | 19 | private String name; |
| 20 | 20 | ||
| 21 | - @Schema(description = "岗位编码", required = true, example = "yudao") | 21 | + @Schema(description = "岗位编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudao") |
| 22 | @NotBlank(message = "岗位编码不能为空") | 22 | @NotBlank(message = "岗位编码不能为空") |
| 23 | @Size(max = 64, message = "岗位编码长度不能超过64个字符") | 23 | @Size(max = 64, message = "岗位编码长度不能超过64个字符") |
| 24 | private String code; | 24 | private String code; |
| 25 | 25 | ||
| 26 | - @Schema(description = "显示顺序不能为空", required = true, example = "1024") | 26 | + @Schema(description = "显示顺序不能为空", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 27 | @NotNull(message = "显示顺序不能为空") | 27 | @NotNull(message = "显示顺序不能为空") |
| 28 | private Integer sort; | 28 | private Integer sort; |
| 29 | 29 | ||
| 30 | - @Schema(description = "状态,参见 CommonStatusEnum 枚举类", required = true, example = "1") | 30 | + @Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 31 | private Integer status; | 31 | private Integer status; |
| 32 | 32 | ||
| 33 | @Schema(description = "备注", example = "快乐的备注") | 33 | @Schema(description = "备注", example = "快乐的备注") |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/vo/post/PostRespVO.java
| @@ -11,10 +11,10 @@ import java.time.LocalDateTime; | @@ -11,10 +11,10 @@ import java.time.LocalDateTime; | ||
| 11 | @EqualsAndHashCode(callSuper = true) | 11 | @EqualsAndHashCode(callSuper = true) |
| 12 | public class PostRespVO extends PostBaseVO { | 12 | public class PostRespVO extends PostBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "岗位序号", required = true, example = "1024") | 14 | + @Schema(description = "岗位序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "创建时间", required = true, example = "时间戳格式") | 17 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
| 18 | private LocalDateTime createTime; | 18 | private LocalDateTime createTime; |
| 19 | 19 | ||
| 20 | } | 20 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/vo/post/PostSimpleRespVO.java
| @@ -11,10 +11,10 @@ import lombok.NoArgsConstructor; | @@ -11,10 +11,10 @@ import lombok.NoArgsConstructor; | ||
| 11 | @AllArgsConstructor | 11 | @AllArgsConstructor |
| 12 | public class PostSimpleRespVO { | 12 | public class PostSimpleRespVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "岗位编号", required = true, example = "1024") | 14 | + @Schema(description = "岗位编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "岗位名称", required = true, example = "芋道") | 17 | + @Schema(description = "岗位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 18 | private String name; | 18 | private String name; |
| 19 | 19 | ||
| 20 | } | 20 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/vo/post/PostUpdateReqVO.java
| @@ -11,7 +11,7 @@ import javax.validation.constraints.NotNull; | @@ -11,7 +11,7 @@ import javax.validation.constraints.NotNull; | ||
| 11 | @EqualsAndHashCode(callSuper = true) | 11 | @EqualsAndHashCode(callSuper = true) |
| 12 | public class PostUpdateReqVO extends PostBaseVO { | 12 | public class PostUpdateReqVO extends PostBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "岗位编号", required = true, example = "1024") | 14 | + @Schema(description = "岗位编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | @NotNull(message = "岗位编号不能为空") | 15 | @NotNull(message = "岗位编号不能为空") |
| 16 | private Long id; | 16 | private Long id; |
| 17 | 17 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/data/DictDataBaseVO.java
| @@ -14,26 +14,26 @@ import javax.validation.constraints.Size; | @@ -14,26 +14,26 @@ import javax.validation.constraints.Size; | ||
| 14 | @Data | 14 | @Data |
| 15 | public class DictDataBaseVO { | 15 | public class DictDataBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "显示顺序不能为空", required = true, example = "1024") | 17 | + @Schema(description = "显示顺序不能为空", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 18 | @NotNull(message = "显示顺序不能为空") | 18 | @NotNull(message = "显示顺序不能为空") |
| 19 | private Integer sort; | 19 | private Integer sort; |
| 20 | 20 | ||
| 21 | - @Schema(description = "字典标签", required = true, example = "芋道") | 21 | + @Schema(description = "字典标签", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 22 | @NotBlank(message = "字典标签不能为空") | 22 | @NotBlank(message = "字典标签不能为空") |
| 23 | @Size(max = 100, message = "字典标签长度不能超过100个字符") | 23 | @Size(max = 100, message = "字典标签长度不能超过100个字符") |
| 24 | private String label; | 24 | private String label; |
| 25 | 25 | ||
| 26 | - @Schema(description = "字典值", required = true, example = "iocoder") | 26 | + @Schema(description = "字典值", requiredMode = Schema.RequiredMode.REQUIRED, example = "iocoder") |
| 27 | @NotBlank(message = "字典键值不能为空") | 27 | @NotBlank(message = "字典键值不能为空") |
| 28 | @Size(max = 100, message = "字典键值长度不能超过100个字符") | 28 | @Size(max = 100, message = "字典键值长度不能超过100个字符") |
| 29 | private String value; | 29 | private String value; |
| 30 | 30 | ||
| 31 | - @Schema(description = "字典类型", required = true, example = "sys_common_sex") | 31 | + @Schema(description = "字典类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "sys_common_sex") |
| 32 | @NotBlank(message = "字典类型不能为空") | 32 | @NotBlank(message = "字典类型不能为空") |
| 33 | @Size(max = 100, message = "字典类型长度不能超过100个字符") | 33 | @Size(max = 100, message = "字典类型长度不能超过100个字符") |
| 34 | private String dictType; | 34 | private String dictType; |
| 35 | 35 | ||
| 36 | - @Schema(description = "状态,见 CommonStatusEnum 枚举", required = true, example = "1") | 36 | + @Schema(description = "状态,见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 37 | @NotNull(message = "状态不能为空") | 37 | @NotNull(message = "状态不能为空") |
| 38 | // @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") | 38 | // @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") |
| 39 | private Integer status; | 39 | private Integer status; |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/data/DictDataRespVO.java
| @@ -15,10 +15,10 @@ import java.time.LocalDateTime; | @@ -15,10 +15,10 @@ import java.time.LocalDateTime; | ||
| 15 | @EqualsAndHashCode(callSuper = true) | 15 | @EqualsAndHashCode(callSuper = true) |
| 16 | public class DictDataRespVO extends DictDataBaseVO { | 16 | public class DictDataRespVO extends DictDataBaseVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "字典数据编号", required = true, example = "1024") | 18 | + @Schema(description = "字典数据编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 19 | private Long id; | 19 | private Long id; |
| 20 | 20 | ||
| 21 | - @Schema(description = "创建时间", required = true, example = "时间戳格式") | 21 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
| 22 | private LocalDateTime createTime; | 22 | private LocalDateTime createTime; |
| 23 | 23 | ||
| 24 | } | 24 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/data/DictDataSimpleRespVO.java
| @@ -7,13 +7,13 @@ import lombok.Data; | @@ -7,13 +7,13 @@ import lombok.Data; | ||
| 7 | @Data | 7 | @Data |
| 8 | public class DictDataSimpleRespVO { | 8 | public class DictDataSimpleRespVO { |
| 9 | 9 | ||
| 10 | - @Schema(description = "字典类型", required = true, example = "gender") | 10 | + @Schema(description = "字典类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "gender") |
| 11 | private String dictType; | 11 | private String dictType; |
| 12 | 12 | ||
| 13 | - @Schema(description = "字典键值", required = true, example = "1") | 13 | + @Schema(description = "字典键值", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 14 | private String value; | 14 | private String value; |
| 15 | 15 | ||
| 16 | - @Schema(description = "字典标签", required = true, example = "男") | 16 | + @Schema(description = "字典标签", requiredMode = Schema.RequiredMode.REQUIRED, example = "男") |
| 17 | private String label; | 17 | private String label; |
| 18 | 18 | ||
| 19 | @Schema(description = "颜色类型,default、primary、success、info、warning、danger", example = "default") | 19 | @Schema(description = "颜色类型,default、primary、success、info、warning、danger", example = "default") |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/data/DictDataUpdateReqVO.java
| @@ -11,7 +11,7 @@ import javax.validation.constraints.NotNull; | @@ -11,7 +11,7 @@ import javax.validation.constraints.NotNull; | ||
| 11 | @EqualsAndHashCode(callSuper = true) | 11 | @EqualsAndHashCode(callSuper = true) |
| 12 | public class DictDataUpdateReqVO extends DictDataBaseVO { | 12 | public class DictDataUpdateReqVO extends DictDataBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "字典数据编号", required = true, example = "1024") | 14 | + @Schema(description = "字典数据编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | @NotNull(message = "字典数据编号不能为空") | 15 | @NotNull(message = "字典数据编号不能为空") |
| 16 | private Long id; | 16 | private Long id; |
| 17 | 17 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/type/DictTypeBaseVO.java
| @@ -14,12 +14,12 @@ import javax.validation.constraints.Size; | @@ -14,12 +14,12 @@ import javax.validation.constraints.Size; | ||
| 14 | @Data | 14 | @Data |
| 15 | public class DictTypeBaseVO { | 15 | public class DictTypeBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "字典名称", required = true, example = "性别") | 17 | + @Schema(description = "字典名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "性别") |
| 18 | @NotBlank(message = "字典名称不能为空") | 18 | @NotBlank(message = "字典名称不能为空") |
| 19 | @Size(max = 100, message = "字典类型名称长度不能超过100个字符") | 19 | @Size(max = 100, message = "字典类型名称长度不能超过100个字符") |
| 20 | private String name; | 20 | private String name; |
| 21 | 21 | ||
| 22 | - @Schema(description = "状态,参见 CommonStatusEnum 枚举类", required = true, example = "1") | 22 | + @Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 23 | @NotNull(message = "状态不能为空") | 23 | @NotNull(message = "状态不能为空") |
| 24 | private Integer status; | 24 | private Integer status; |
| 25 | 25 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/type/DictTypeCreateReqVO.java
| @@ -12,7 +12,7 @@ import javax.validation.constraints.Size; | @@ -12,7 +12,7 @@ import javax.validation.constraints.Size; | ||
| 12 | @EqualsAndHashCode(callSuper = true) | 12 | @EqualsAndHashCode(callSuper = true) |
| 13 | public class DictTypeCreateReqVO extends DictTypeBaseVO { | 13 | public class DictTypeCreateReqVO extends DictTypeBaseVO { |
| 14 | 14 | ||
| 15 | - @Schema(description = "字典类型", required = true, example = "sys_common_sex") | 15 | + @Schema(description = "字典类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "sys_common_sex") |
| 16 | @NotNull(message = "字典类型不能为空") | 16 | @NotNull(message = "字典类型不能为空") |
| 17 | @Size(max = 100, message = "字典类型类型长度不能超过100个字符") | 17 | @Size(max = 100, message = "字典类型类型长度不能超过100个字符") |
| 18 | private String type; | 18 | private String type; |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/type/DictTypeRespVO.java
| @@ -15,13 +15,13 @@ import java.time.LocalDateTime; | @@ -15,13 +15,13 @@ import java.time.LocalDateTime; | ||
| 15 | @EqualsAndHashCode(callSuper = true) | 15 | @EqualsAndHashCode(callSuper = true) |
| 16 | public class DictTypeRespVO extends DictTypeBaseVO { | 16 | public class DictTypeRespVO extends DictTypeBaseVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "字典类型编号", required = true, example = "1024") | 18 | + @Schema(description = "字典类型编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 19 | private Long id; | 19 | private Long id; |
| 20 | 20 | ||
| 21 | - @Schema(description = "字典类型", required = true, example = "sys_common_sex") | 21 | + @Schema(description = "字典类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "sys_common_sex") |
| 22 | private String type; | 22 | private String type; |
| 23 | 23 | ||
| 24 | - @Schema(description = "创建时间", required = true, example = "时间戳格式") | 24 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
| 25 | private LocalDateTime createTime; | 25 | private LocalDateTime createTime; |
| 26 | 26 | ||
| 27 | } | 27 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/type/DictTypeSimpleRespVO.java
| @@ -11,13 +11,13 @@ import lombok.NoArgsConstructor; | @@ -11,13 +11,13 @@ import lombok.NoArgsConstructor; | ||
| 11 | @AllArgsConstructor | 11 | @AllArgsConstructor |
| 12 | public class DictTypeSimpleRespVO { | 12 | public class DictTypeSimpleRespVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "字典类型编号", required = true, example = "1024") | 14 | + @Schema(description = "字典类型编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "字典类型名称", required = true, example = "芋道") | 17 | + @Schema(description = "字典类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 18 | private String name; | 18 | private String name; |
| 19 | 19 | ||
| 20 | - @Schema(description = "字典类型", required = true, example = "sys_common_sex") | 20 | + @Schema(description = "字典类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "sys_common_sex") |
| 21 | private String type; | 21 | private String type; |
| 22 | 22 | ||
| 23 | } | 23 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/type/DictTypeUpdateReqVO.java
| @@ -11,7 +11,7 @@ import javax.validation.constraints.NotNull; | @@ -11,7 +11,7 @@ import javax.validation.constraints.NotNull; | ||
| 11 | @EqualsAndHashCode(callSuper = true) | 11 | @EqualsAndHashCode(callSuper = true) |
| 12 | public class DictTypeUpdateReqVO extends DictTypeBaseVO { | 12 | public class DictTypeUpdateReqVO extends DictTypeBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "字典类型编号", required = true, example = "1024") | 14 | + @Schema(description = "字典类型编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | @NotNull(message = "字典类型编号不能为空") | 15 | @NotNull(message = "字典类型编号不能为空") |
| 16 | private Long id; | 16 | private Long id; |
| 17 | 17 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/errorcode/vo/ErrorCodeBaseVO.java
| @@ -12,15 +12,15 @@ import javax.validation.constraints.NotNull; | @@ -12,15 +12,15 @@ import javax.validation.constraints.NotNull; | ||
| 12 | @Data | 12 | @Data |
| 13 | public class ErrorCodeBaseVO { | 13 | public class ErrorCodeBaseVO { |
| 14 | 14 | ||
| 15 | - @Schema(description = "应用名", required = true, example = "dashboard") | 15 | + @Schema(description = "应用名", requiredMode = Schema.RequiredMode.REQUIRED, example = "dashboard") |
| 16 | @NotNull(message = "应用名不能为空") | 16 | @NotNull(message = "应用名不能为空") |
| 17 | private String applicationName; | 17 | private String applicationName; |
| 18 | 18 | ||
| 19 | - @Schema(description = "错误码编码", required = true, example = "1234") | 19 | + @Schema(description = "错误码编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1234") |
| 20 | @NotNull(message = "错误码编码不能为空") | 20 | @NotNull(message = "错误码编码不能为空") |
| 21 | private Integer code; | 21 | private Integer code; |
| 22 | 22 | ||
| 23 | - @Schema(description = "错误码错误提示", required = true, example = "帅气") | 23 | + @Schema(description = "错误码错误提示", requiredMode = Schema.RequiredMode.REQUIRED, example = "帅气") |
| 24 | @NotNull(message = "错误码错误提示不能为空") | 24 | @NotNull(message = "错误码错误提示不能为空") |
| 25 | private String message; | 25 | private String message; |
| 26 | 26 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/errorcode/vo/ErrorCodeRespVO.java
| @@ -13,13 +13,13 @@ import java.time.LocalDateTime; | @@ -13,13 +13,13 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class ErrorCodeRespVO extends ErrorCodeBaseVO { | 14 | public class ErrorCodeRespVO extends ErrorCodeBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "错误码编号", required = true, example = "1024") | 16 | + @Schema(description = "错误码编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "错误码类型,参见 ErrorCodeTypeEnum 枚举类", required = true, example = "1") | 19 | + @Schema(description = "错误码类型,参见 ErrorCodeTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 20 | private Integer type; | 20 | private Integer type; |
| 21 | 21 | ||
| 22 | - @Schema(description = "创建时间", required = true) | 22 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 23 | private LocalDateTime createTime; | 23 | private LocalDateTime createTime; |
| 24 | 24 | ||
| 25 | } | 25 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/errorcode/vo/ErrorCodeUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class ErrorCodeUpdateReqVO extends ErrorCodeBaseVO { | 14 | public class ErrorCodeUpdateReqVO extends ErrorCodeBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "错误码编号", required = true, example = "1024") | 16 | + @Schema(description = "错误码编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "错误码编号不能为空") | 17 | @NotNull(message = "错误码编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ip/vo/AreaNodeRespVO.java
| @@ -9,10 +9,10 @@ import java.util.List; | @@ -9,10 +9,10 @@ import java.util.List; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class AreaNodeRespVO { | 10 | public class AreaNodeRespVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "编号", required = true, example = "110000") | 12 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "110000") |
| 13 | private Integer id; | 13 | private Integer id; |
| 14 | 14 | ||
| 15 | - @Schema(description = "名字", required = true, example = "北京") | 15 | + @Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "北京") |
| 16 | private String name; | 16 | private String name; |
| 17 | 17 | ||
| 18 | /** | 18 | /** |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/logger/vo/loginlog/LoginLogBaseVO.java
| @@ -15,7 +15,7 @@ import javax.validation.constraints.Size; | @@ -15,7 +15,7 @@ import javax.validation.constraints.Size; | ||
| 15 | @Data | 15 | @Data |
| 16 | public class LoginLogBaseVO { | 16 | public class LoginLogBaseVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "日志类型,参见 LoginLogTypeEnum 枚举类", required = true, example = "1") | 18 | + @Schema(description = "日志类型,参见 LoginLogTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 19 | @NotNull(message = "日志类型不能为空") | 19 | @NotNull(message = "日志类型不能为空") |
| 20 | private Integer logType; | 20 | private Integer logType; |
| 21 | 21 | ||
| @@ -23,16 +23,16 @@ public class LoginLogBaseVO { | @@ -23,16 +23,16 @@ public class LoginLogBaseVO { | ||
| 23 | @NotEmpty(message = "链路追踪编号不能为空") | 23 | @NotEmpty(message = "链路追踪编号不能为空") |
| 24 | private String traceId; | 24 | private String traceId; |
| 25 | 25 | ||
| 26 | - @Schema(description = "用户账号", required = true, example = "yudao") | 26 | + @Schema(description = "用户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudao") |
| 27 | @NotBlank(message = "用户账号不能为空") | 27 | @NotBlank(message = "用户账号不能为空") |
| 28 | @Size(max = 30, message = "用户账号长度不能超过30个字符") | 28 | @Size(max = 30, message = "用户账号长度不能超过30个字符") |
| 29 | private String username; | 29 | private String username; |
| 30 | 30 | ||
| 31 | - @Schema(description = "登录结果,参见 LoginResultEnum 枚举类", required = true, example = "1") | 31 | + @Schema(description = "登录结果,参见 LoginResultEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 32 | @NotNull(message = "登录结果不能为空") | 32 | @NotNull(message = "登录结果不能为空") |
| 33 | private Integer result; | 33 | private Integer result; |
| 34 | 34 | ||
| 35 | - @Schema(description = "用户 IP", required = true, example = "127.0.0.1") | 35 | + @Schema(description = "用户 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "127.0.0.1") |
| 36 | @NotEmpty(message = "用户 IP 不能为空") | 36 | @NotEmpty(message = "用户 IP 不能为空") |
| 37 | private String userIp; | 37 | private String userIp; |
| 38 | 38 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/logger/vo/loginlog/LoginLogRespVO.java
| @@ -14,17 +14,17 @@ import java.time.LocalDateTime; | @@ -14,17 +14,17 @@ import java.time.LocalDateTime; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class LoginLogRespVO extends LoginLogBaseVO { | 15 | public class LoginLogRespVO extends LoginLogBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "日志编号", required = true, example = "1024") | 17 | + @Schema(description = "日志编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 | ||
| 20 | @Schema(description = "用户编号", example = "666") | 20 | @Schema(description = "用户编号", example = "666") |
| 21 | private Long userId; | 21 | private Long userId; |
| 22 | 22 | ||
| 23 | - @Schema(description = "用户类型,参见 UserTypeEnum 枚举", required = true, example = "2") | 23 | + @Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
| 24 | @NotNull(message = "用户类型不能为空") | 24 | @NotNull(message = "用户类型不能为空") |
| 25 | private Integer userType; | 25 | private Integer userType; |
| 26 | 26 | ||
| 27 | - @Schema(description = "登录时间", required = true) | 27 | + @Schema(description = "登录时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 28 | private LocalDateTime createTime; | 28 | private LocalDateTime createTime; |
| 29 | 29 | ||
| 30 | } | 30 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/logger/vo/operatelog/OperateLogBaseVO.java
| @@ -15,23 +15,23 @@ import java.util.Map; | @@ -15,23 +15,23 @@ import java.util.Map; | ||
| 15 | @Data | 15 | @Data |
| 16 | public class OperateLogBaseVO { | 16 | public class OperateLogBaseVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "链路追踪编号", required = true, example = "89aca178-a370-411c-ae02-3f0d672be4ab") | 18 | + @Schema(description = "链路追踪编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "89aca178-a370-411c-ae02-3f0d672be4ab") |
| 19 | @NotEmpty(message = "链路追踪编号不能为空") | 19 | @NotEmpty(message = "链路追踪编号不能为空") |
| 20 | private String traceId; | 20 | private String traceId; |
| 21 | 21 | ||
| 22 | - @Schema(description = "用户编号", required = true, example = "1024") | 22 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 23 | @NotNull(message = "用户编号不能为空") | 23 | @NotNull(message = "用户编号不能为空") |
| 24 | private Long userId; | 24 | private Long userId; |
| 25 | 25 | ||
| 26 | - @Schema(description = "操作模块", required = true, example = "订单") | 26 | + @Schema(description = "操作模块", requiredMode = Schema.RequiredMode.REQUIRED, example = "订单") |
| 27 | @NotEmpty(message = "操作模块不能为空") | 27 | @NotEmpty(message = "操作模块不能为空") |
| 28 | private String module; | 28 | private String module; |
| 29 | 29 | ||
| 30 | - @Schema(description = "操作名", required = true, example = "创建订单") | 30 | + @Schema(description = "操作名", requiredMode = Schema.RequiredMode.REQUIRED, example = "创建订单") |
| 31 | @NotEmpty(message = "操作名") | 31 | @NotEmpty(message = "操作名") |
| 32 | private String name; | 32 | private String name; |
| 33 | 33 | ||
| 34 | - @Schema(description = "操作分类,参见 OperateLogTypeEnum 枚举类", required = true, example = "1") | 34 | + @Schema(description = "操作分类,参见 OperateLogTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 35 | @NotNull(message = "操作分类不能为空") | 35 | @NotNull(message = "操作分类不能为空") |
| 36 | private Integer type; | 36 | private Integer type; |
| 37 | 37 | ||
| @@ -41,38 +41,38 @@ public class OperateLogBaseVO { | @@ -41,38 +41,38 @@ public class OperateLogBaseVO { | ||
| 41 | @Schema(description = "拓展字段", example = "{'orderId': 1}") | 41 | @Schema(description = "拓展字段", example = "{'orderId': 1}") |
| 42 | private Map<String, Object> exts; | 42 | private Map<String, Object> exts; |
| 43 | 43 | ||
| 44 | - @Schema(description = "请求方法名", required = true, example = "GET") | 44 | + @Schema(description = "请求方法名", requiredMode = Schema.RequiredMode.REQUIRED, example = "GET") |
| 45 | @NotEmpty(message = "请求方法名不能为空") | 45 | @NotEmpty(message = "请求方法名不能为空") |
| 46 | private String requestMethod; | 46 | private String requestMethod; |
| 47 | 47 | ||
| 48 | - @Schema(description = "请求地址", required = true, example = "/xxx/yyy") | 48 | + @Schema(description = "请求地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "/xxx/yyy") |
| 49 | @NotEmpty(message = "请求地址不能为空") | 49 | @NotEmpty(message = "请求地址不能为空") |
| 50 | private String requestUrl; | 50 | private String requestUrl; |
| 51 | 51 | ||
| 52 | - @Schema(description = "用户 IP", required = true, example = "127.0.0.1") | 52 | + @Schema(description = "用户 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "127.0.0.1") |
| 53 | @NotEmpty(message = "用户 IP 不能为空") | 53 | @NotEmpty(message = "用户 IP 不能为空") |
| 54 | private String userIp; | 54 | private String userIp; |
| 55 | 55 | ||
| 56 | - @Schema(description = "浏览器 UserAgent", required = true, example = "Mozilla/5.0") | 56 | + @Schema(description = "浏览器 UserAgent", requiredMode = Schema.RequiredMode.REQUIRED, example = "Mozilla/5.0") |
| 57 | @NotEmpty(message = "浏览器 UserAgent 不能为空") | 57 | @NotEmpty(message = "浏览器 UserAgent 不能为空") |
| 58 | private String userAgent; | 58 | private String userAgent; |
| 59 | 59 | ||
| 60 | - @Schema(description = "Java 方法名", required = true, example = "cn.iocoder.yudao.adminserver.UserController.save(...)") | 60 | + @Schema(description = "Java 方法名", requiredMode = Schema.RequiredMode.REQUIRED, example = "cn.iocoder.yudao.adminserver.UserController.save(...)") |
| 61 | @NotEmpty(message = "Java 方法名不能为空") | 61 | @NotEmpty(message = "Java 方法名不能为空") |
| 62 | private String javaMethod; | 62 | private String javaMethod; |
| 63 | 63 | ||
| 64 | @Schema(description = "Java 方法的参数") | 64 | @Schema(description = "Java 方法的参数") |
| 65 | private String javaMethodArgs; | 65 | private String javaMethodArgs; |
| 66 | 66 | ||
| 67 | - @Schema(description = "开始时间", required = true) | 67 | + @Schema(description = "开始时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 68 | @NotNull(message = "开始时间不能为空") | 68 | @NotNull(message = "开始时间不能为空") |
| 69 | private LocalDateTime startTime; | 69 | private LocalDateTime startTime; |
| 70 | 70 | ||
| 71 | - @Schema(description = "执行时长,单位:毫秒", required = true) | 71 | + @Schema(description = "执行时长,单位:毫秒", requiredMode = Schema.RequiredMode.REQUIRED) |
| 72 | @NotNull(message = "执行时长不能为空") | 72 | @NotNull(message = "执行时长不能为空") |
| 73 | private Integer duration; | 73 | private Integer duration; |
| 74 | 74 | ||
| 75 | - @Schema(description = "结果码", required = true) | 75 | + @Schema(description = "结果码", requiredMode = Schema.RequiredMode.REQUIRED) |
| 76 | @NotNull(message = "结果码不能为空") | 76 | @NotNull(message = "结果码不能为空") |
| 77 | private Integer resultCode; | 77 | private Integer resultCode; |
| 78 | 78 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/logger/vo/operatelog/OperateLogRespVO.java
| @@ -11,10 +11,10 @@ import lombok.ToString; | @@ -11,10 +11,10 @@ import lombok.ToString; | ||
| 11 | @ToString(callSuper = true) | 11 | @ToString(callSuper = true) |
| 12 | public class OperateLogRespVO extends OperateLogBaseVO { | 12 | public class OperateLogRespVO extends OperateLogBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "日志编号", required = true, example = "1024") | 14 | + @Schema(description = "日志编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "用户昵称", required = true, example = "芋艿") | 17 | + @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿") |
| 18 | private String userNickname; | 18 | private String userNickname; |
| 19 | 19 | ||
| 20 | } | 20 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/mail/vo/account/MailAccountBaseVO.java
| @@ -13,28 +13,28 @@ import javax.validation.constraints.NotNull; | @@ -13,28 +13,28 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @Data | 13 | @Data |
| 14 | public class MailAccountBaseVO { | 14 | public class MailAccountBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "邮箱", required = true, example = "yudaoyuanma@123.com") | 16 | + @Schema(description = "邮箱", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudaoyuanma@123.com") |
| 17 | @NotNull(message = "邮箱不能为空") | 17 | @NotNull(message = "邮箱不能为空") |
| 18 | @Email(message = "必须是 Email 格式") | 18 | @Email(message = "必须是 Email 格式") |
| 19 | private String mail; | 19 | private String mail; |
| 20 | 20 | ||
| 21 | - @Schema(description = "用户名", required = true, example = "yudao") | 21 | + @Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudao") |
| 22 | @NotNull(message = "用户名不能为空") | 22 | @NotNull(message = "用户名不能为空") |
| 23 | private String username; | 23 | private String username; |
| 24 | 24 | ||
| 25 | - @Schema(description = "密码", required = true, example = "123456") | 25 | + @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456") |
| 26 | @NotNull(message = "密码必填") | 26 | @NotNull(message = "密码必填") |
| 27 | private String password; | 27 | private String password; |
| 28 | 28 | ||
| 29 | - @Schema(description = "SMTP 服务器域名", required = true, example = "www.iocoder.cn") | 29 | + @Schema(description = "SMTP 服务器域名", requiredMode = Schema.RequiredMode.REQUIRED, example = "www.iocoder.cn") |
| 30 | @NotNull(message = "SMTP 服务器域名不能为空") | 30 | @NotNull(message = "SMTP 服务器域名不能为空") |
| 31 | private String host; | 31 | private String host; |
| 32 | 32 | ||
| 33 | - @Schema(description = "SMTP 服务器端口", required = true, example = "80") | 33 | + @Schema(description = "SMTP 服务器端口", requiredMode = Schema.RequiredMode.REQUIRED, example = "80") |
| 34 | @NotNull(message = "SMTP 服务器端口不能为空") | 34 | @NotNull(message = "SMTP 服务器端口不能为空") |
| 35 | private Integer port; | 35 | private Integer port; |
| 36 | 36 | ||
| 37 | - @Schema(description = "是否开启 ssl", required = true, example = "true") | 37 | + @Schema(description = "是否开启 ssl", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 38 | @NotNull(message = "是否开启 ssl 必填") | 38 | @NotNull(message = "是否开启 ssl 必填") |
| 39 | private Boolean sslEnable; | 39 | private Boolean sslEnable; |
| 40 | 40 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/mail/vo/account/MailAccountPageReqVO.java
| @@ -12,10 +12,10 @@ import lombok.ToString; | @@ -12,10 +12,10 @@ import lombok.ToString; | ||
| 12 | @ToString(callSuper = true) | 12 | @ToString(callSuper = true) |
| 13 | public class MailAccountPageReqVO extends PageParam { | 13 | public class MailAccountPageReqVO extends PageParam { |
| 14 | 14 | ||
| 15 | - @Schema(description = "邮箱", required = true, example = "yudaoyuanma@123.com") | 15 | + @Schema(description = "邮箱", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudaoyuanma@123.com") |
| 16 | private String mail; | 16 | private String mail; |
| 17 | 17 | ||
| 18 | - @Schema(description = "用户名" , required = true , example = "yudao") | 18 | + @Schema(description = "用户名" , requiredMode = Schema.RequiredMode.REQUIRED , example = "yudao") |
| 19 | private String username; | 19 | private String username; |
| 20 | 20 | ||
| 21 | } | 21 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/mail/vo/account/MailAccountRespVO.java
| @@ -14,11 +14,11 @@ import java.time.LocalDateTime; | @@ -14,11 +14,11 @@ import java.time.LocalDateTime; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class MailAccountRespVO extends MailAccountBaseVO { | 15 | public class MailAccountRespVO extends MailAccountBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "编号", required = true, example = "1024") | 17 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 18 | @NotNull(message = "编号不能为空") | 18 | @NotNull(message = "编号不能为空") |
| 19 | private Long id; | 19 | private Long id; |
| 20 | 20 | ||
| 21 | - @Schema(description = "创建时间", required = true) | 21 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 22 | private LocalDateTime createTime; | 22 | private LocalDateTime createTime; |
| 23 | 23 | ||
| 24 | } | 24 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/mail/vo/account/MailAccountSimpleRespVO.java
| @@ -7,10 +7,10 @@ import lombok.Data; | @@ -7,10 +7,10 @@ import lombok.Data; | ||
| 7 | @Data | 7 | @Data |
| 8 | public class MailAccountSimpleRespVO { | 8 | public class MailAccountSimpleRespVO { |
| 9 | 9 | ||
| 10 | - @Schema(description = "邮箱编号", required = true, example = "1024") | 10 | + @Schema(description = "邮箱编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 11 | private Long id; | 11 | private Long id; |
| 12 | 12 | ||
| 13 | - @Schema(description = "邮箱", required = true, example = "768541388@qq.com") | 13 | + @Schema(description = "邮箱", requiredMode = Schema.RequiredMode.REQUIRED, example = "768541388@qq.com") |
| 14 | private String mail; | 14 | private String mail; |
| 15 | 15 | ||
| 16 | } | 16 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/mail/vo/account/MailAccountUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class MailAccountUpdateReqVO extends MailAccountBaseVO { | 14 | public class MailAccountUpdateReqVO extends MailAccountBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1024") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "编号不能为空") | 17 | @NotNull(message = "编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/mail/vo/log/MailLogBaseVO.java
| 1 | package cn.iocoder.yudao.module.system.controller.admin.mail.vo.log; | 1 | package cn.iocoder.yudao.module.system.controller.admin.mail.vo.log; |
| 2 | 2 | ||
| 3 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 4 | -import lombok.*; | ||
| 5 | -import java.util.*; | ||
| 6 | -import java.time.LocalDateTime; | ||
| 7 | -import javax.validation.constraints.*; | 4 | +import lombok.Data; |
| 8 | import org.springframework.format.annotation.DateTimeFormat; | 5 | import org.springframework.format.annotation.DateTimeFormat; |
| 9 | 6 | ||
| 7 | +import javax.validation.constraints.NotNull; | ||
| 8 | +import java.time.LocalDateTime; | ||
| 9 | +import java.util.Map; | ||
| 10 | + | ||
| 10 | import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; | 11 | import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
| 11 | 12 | ||
| 12 | /** | 13 | /** |
| @@ -22,42 +23,42 @@ public class MailLogBaseVO { | @@ -22,42 +23,42 @@ public class MailLogBaseVO { | ||
| 22 | @Schema(description = "用户类型 - 参见 UserTypeEnum 枚举", example = "2") | 23 | @Schema(description = "用户类型 - 参见 UserTypeEnum 枚举", example = "2") |
| 23 | private Byte userType; | 24 | private Byte userType; |
| 24 | 25 | ||
| 25 | - @Schema(description = "接收邮箱地址", required = true, example = "76854@qq.com") | 26 | + @Schema(description = "接收邮箱地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "76854@qq.com") |
| 26 | @NotNull(message = "接收邮箱地址不能为空") | 27 | @NotNull(message = "接收邮箱地址不能为空") |
| 27 | private String toMail; | 28 | private String toMail; |
| 28 | 29 | ||
| 29 | - @Schema(description = "邮箱账号编号", required = true, example = "18107") | 30 | + @Schema(description = "邮箱账号编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18107") |
| 30 | @NotNull(message = "邮箱账号编号不能为空") | 31 | @NotNull(message = "邮箱账号编号不能为空") |
| 31 | private Long accountId; | 32 | private Long accountId; |
| 32 | 33 | ||
| 33 | - @Schema(description = "发送邮箱地址", required = true, example = "85757@qq.com") | 34 | + @Schema(description = "发送邮箱地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "85757@qq.com") |
| 34 | @NotNull(message = "发送邮箱地址不能为空") | 35 | @NotNull(message = "发送邮箱地址不能为空") |
| 35 | private String fromMail; | 36 | private String fromMail; |
| 36 | 37 | ||
| 37 | - @Schema(description = "模板编号", required = true, example = "5678") | 38 | + @Schema(description = "模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "5678") |
| 38 | @NotNull(message = "模板编号不能为空") | 39 | @NotNull(message = "模板编号不能为空") |
| 39 | private Long templateId; | 40 | private Long templateId; |
| 40 | 41 | ||
| 41 | - @Schema(description = "模板编码", required = true, example = "test_01") | 42 | + @Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "test_01") |
| 42 | @NotNull(message = "模板编码不能为空") | 43 | @NotNull(message = "模板编码不能为空") |
| 43 | private String templateCode; | 44 | private String templateCode; |
| 44 | 45 | ||
| 45 | @Schema(description = "模版发送人名称", example = "李四") | 46 | @Schema(description = "模版发送人名称", example = "李四") |
| 46 | private String templateNickname; | 47 | private String templateNickname; |
| 47 | 48 | ||
| 48 | - @Schema(description = "邮件标题", required = true, example = "测试标题") | 49 | + @Schema(description = "邮件标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "测试标题") |
| 49 | @NotNull(message = "邮件标题不能为空") | 50 | @NotNull(message = "邮件标题不能为空") |
| 50 | private String templateTitle; | 51 | private String templateTitle; |
| 51 | 52 | ||
| 52 | - @Schema(description = "邮件内容", required = true, example = "测试内容") | 53 | + @Schema(description = "邮件内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "测试内容") |
| 53 | @NotNull(message = "邮件内容不能为空") | 54 | @NotNull(message = "邮件内容不能为空") |
| 54 | private String templateContent; | 55 | private String templateContent; |
| 55 | 56 | ||
| 56 | - @Schema(description = "邮件参数", required = true) | 57 | + @Schema(description = "邮件参数", requiredMode = Schema.RequiredMode.REQUIRED) |
| 57 | @NotNull(message = "邮件参数不能为空") | 58 | @NotNull(message = "邮件参数不能为空") |
| 58 | private Map<String, Object> templateParams; | 59 | private Map<String, Object> templateParams; |
| 59 | 60 | ||
| 60 | - @Schema(description = "发送状态 - 参见 MailSendStatusEnum 枚举", required = true, example = "1") | 61 | + @Schema(description = "发送状态 - 参见 MailSendStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 61 | @NotNull(message = "发送状态不能为空") | 62 | @NotNull(message = "发送状态不能为空") |
| 62 | private Byte sendStatus; | 63 | private Byte sendStatus; |
| 63 | 64 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/mail/vo/log/MailLogRespVO.java
| @@ -10,10 +10,10 @@ import java.time.LocalDateTime; | @@ -10,10 +10,10 @@ import java.time.LocalDateTime; | ||
| 10 | @ToString(callSuper = true) | 10 | @ToString(callSuper = true) |
| 11 | public class MailLogRespVO extends MailLogBaseVO { | 11 | public class MailLogRespVO extends MailLogBaseVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "编号", required = true, example = "31020") | 13 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "31020") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "创建时间", required = true) | 16 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 17 | private LocalDateTime createTime; | 17 | private LocalDateTime createTime; |
| 18 | 18 | ||
| 19 | } | 19 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/mail/vo/template/MailTemplateBaseVO.java
| @@ -13,30 +13,30 @@ import javax.validation.constraints.NotNull; | @@ -13,30 +13,30 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @Data | 13 | @Data |
| 14 | public class MailTemplateBaseVO { | 14 | public class MailTemplateBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "模版名称", required = true, example = "测试名字") | 16 | + @Schema(description = "模版名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "测试名字") |
| 17 | @NotNull(message = "名称不能为空") | 17 | @NotNull(message = "名称不能为空") |
| 18 | private String name; | 18 | private String name; |
| 19 | 19 | ||
| 20 | - @Schema(description = "模版编号", required = true, example = "test") | 20 | + @Schema(description = "模版编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "test") |
| 21 | @NotNull(message = "模版编号不能为空") | 21 | @NotNull(message = "模版编号不能为空") |
| 22 | private String code; | 22 | private String code; |
| 23 | 23 | ||
| 24 | - @Schema(description = "发送的邮箱账号编号", required = true, example = "1") | 24 | + @Schema(description = "发送的邮箱账号编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 25 | @NotNull(message = "发送的邮箱账号编号不能为空") | 25 | @NotNull(message = "发送的邮箱账号编号不能为空") |
| 26 | private Long accountId; | 26 | private Long accountId; |
| 27 | 27 | ||
| 28 | @Schema(description = "发送人名称", example = "芋头") | 28 | @Schema(description = "发送人名称", example = "芋头") |
| 29 | private String nickname; | 29 | private String nickname; |
| 30 | 30 | ||
| 31 | - @Schema(description = "标题", required = true, example = "注册成功") | 31 | + @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "注册成功") |
| 32 | @NotEmpty(message = "标题不能为空") | 32 | @NotEmpty(message = "标题不能为空") |
| 33 | private String title; | 33 | private String title; |
| 34 | 34 | ||
| 35 | - @Schema(description = "内容", required = true, example = "你好,注册成功啦") | 35 | + @Schema(description = "内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "你好,注册成功啦") |
| 36 | @NotEmpty(message = "内容不能为空") | 36 | @NotEmpty(message = "内容不能为空") |
| 37 | private String content; | 37 | private String content; |
| 38 | 38 | ||
| 39 | - @Schema(description = "状态 - 参见 CommonStatusEnum 枚举", required = true, example = "1") | 39 | + @Schema(description = "状态 - 参见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 40 | @NotNull(message = "状态不能为空") | 40 | @NotNull(message = "状态不能为空") |
| 41 | private Integer status; | 41 | private Integer status; |
| 42 | 42 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/mail/vo/template/MailTemplateRespVO.java
| @@ -14,13 +14,13 @@ import java.util.List; | @@ -14,13 +14,13 @@ import java.util.List; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class MailTemplateRespVO extends MailTemplateBaseVO { | 15 | public class MailTemplateRespVO extends MailTemplateBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "编号", required = true, example = "1024") | 17 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 | ||
| 20 | @Schema(description = "参数数组", example = "name,code") | 20 | @Schema(description = "参数数组", example = "name,code") |
| 21 | private List<String> params; | 21 | private List<String> params; |
| 22 | 22 | ||
| 23 | - @Schema(description = "创建时间", required = true) | 23 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 24 | private LocalDateTime createTime; | 24 | private LocalDateTime createTime; |
| 25 | 25 | ||
| 26 | } | 26 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/mail/vo/template/MailTemplateSendReqVO.java
| @@ -11,11 +11,11 @@ import java.util.Map; | @@ -11,11 +11,11 @@ import java.util.Map; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class MailTemplateSendReqVO { | 12 | public class MailTemplateSendReqVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "接收邮箱", required = true, example = "7685413@qq.com") | 14 | + @Schema(description = "接收邮箱", requiredMode = Schema.RequiredMode.REQUIRED, example = "7685413@qq.com") |
| 15 | @NotEmpty(message = "接收邮箱不能为空") | 15 | @NotEmpty(message = "接收邮箱不能为空") |
| 16 | private String mail; | 16 | private String mail; |
| 17 | 17 | ||
| 18 | - @Schema(description = "模板编码", required = true, example = "test_01") | 18 | + @Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "test_01") |
| 19 | @NotNull(message = "模板编码不能为空") | 19 | @NotNull(message = "模板编码不能为空") |
| 20 | private String templateCode; | 20 | private String templateCode; |
| 21 | 21 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/mail/vo/template/MailTemplateSimpleRespVO.java
| @@ -7,10 +7,10 @@ import lombok.Data; | @@ -7,10 +7,10 @@ import lombok.Data; | ||
| 7 | @Data | 7 | @Data |
| 8 | public class MailTemplateSimpleRespVO { | 8 | public class MailTemplateSimpleRespVO { |
| 9 | 9 | ||
| 10 | - @Schema(description = "模版编号", required = true, example = "1024") | 10 | + @Schema(description = "模版编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 11 | private Long id; | 11 | private Long id; |
| 12 | 12 | ||
| 13 | - @Schema(description = "模版名字", required = true, example = "哒哒哒") | 13 | + @Schema(description = "模版名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "哒哒哒") |
| 14 | private String name; | 14 | private String name; |
| 15 | 15 | ||
| 16 | } | 16 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/mail/vo/template/MailTemplateUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class MailTemplateUpdateReqVO extends MailTemplateBaseVO { | 14 | public class MailTemplateUpdateReqVO extends MailTemplateBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1024") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "编号不能为空") | 17 | @NotNull(message = "编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/notice/vo/NoticeBaseVO.java
| @@ -14,19 +14,19 @@ import javax.validation.constraints.Size; | @@ -14,19 +14,19 @@ import javax.validation.constraints.Size; | ||
| 14 | @Data | 14 | @Data |
| 15 | public class NoticeBaseVO { | 15 | public class NoticeBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "公告标题", required = true, example = "小博主") | 17 | + @Schema(description = "公告标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "小博主") |
| 18 | @NotBlank(message = "公告标题不能为空") | 18 | @NotBlank(message = "公告标题不能为空") |
| 19 | @Size(max = 50, message = "公告标题不能超过50个字符") | 19 | @Size(max = 50, message = "公告标题不能超过50个字符") |
| 20 | private String title; | 20 | private String title; |
| 21 | 21 | ||
| 22 | - @Schema(description = "公告类型", required = true, example = "小博主") | 22 | + @Schema(description = "公告类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "小博主") |
| 23 | @NotNull(message = "公告类型不能为空") | 23 | @NotNull(message = "公告类型不能为空") |
| 24 | private Integer type; | 24 | private Integer type; |
| 25 | 25 | ||
| 26 | - @Schema(description = "公告内容", required = true, example = "半生编码") | 26 | + @Schema(description = "公告内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "半生编码") |
| 27 | private String content; | 27 | private String content; |
| 28 | 28 | ||
| 29 | - @Schema(description = "状态,参见 CommonStatusEnum 枚举类", required = true, example = "1") | 29 | + @Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 30 | private Integer status; | 30 | private Integer status; |
| 31 | 31 | ||
| 32 | } | 32 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/notice/vo/NoticeRespVO.java
| @@ -11,10 +11,10 @@ import java.time.LocalDateTime; | @@ -11,10 +11,10 @@ import java.time.LocalDateTime; | ||
| 11 | @EqualsAndHashCode(callSuper = true) | 11 | @EqualsAndHashCode(callSuper = true) |
| 12 | public class NoticeRespVO extends NoticeBaseVO { | 12 | public class NoticeRespVO extends NoticeBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "通知公告序号", required = true, example = "1024") | 14 | + @Schema(description = "通知公告序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "创建时间", required = true, example = "时间戳格式") | 17 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
| 18 | private LocalDateTime createTime; | 18 | private LocalDateTime createTime; |
| 19 | 19 | ||
| 20 | } | 20 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/notice/vo/NoticeUpdateReqVO.java
| @@ -11,7 +11,7 @@ import javax.validation.constraints.NotNull; | @@ -11,7 +11,7 @@ import javax.validation.constraints.NotNull; | ||
| 11 | @EqualsAndHashCode(callSuper = true) | 11 | @EqualsAndHashCode(callSuper = true) |
| 12 | public class NoticeUpdateReqVO extends NoticeBaseVO { | 12 | public class NoticeUpdateReqVO extends NoticeBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "岗位公告编号", required = true, example = "1024") | 14 | + @Schema(description = "岗位公告编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | @NotNull(message = "岗位公告编号不能为空") | 15 | @NotNull(message = "岗位公告编号不能为空") |
| 16 | private Long id; | 16 | private Long id; |
| 17 | 17 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/notify/vo/message/NotifyMessageBaseVO.java
| @@ -17,39 +17,39 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | @@ -17,39 +17,39 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | ||
| 17 | @Data | 17 | @Data |
| 18 | public class NotifyMessageBaseVO { | 18 | public class NotifyMessageBaseVO { |
| 19 | 19 | ||
| 20 | - @Schema(description = "用户编号", required = true, example = "25025") | 20 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "25025") |
| 21 | @NotNull(message = "用户编号不能为空") | 21 | @NotNull(message = "用户编号不能为空") |
| 22 | private Long userId; | 22 | private Long userId; |
| 23 | 23 | ||
| 24 | - @Schema(description = "用户类型 - 参见 UserTypeEnum 枚举", required = true, example = "1") | 24 | + @Schema(description = "用户类型 - 参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 25 | @NotNull(message = "用户类型不能为空") | 25 | @NotNull(message = "用户类型不能为空") |
| 26 | private Byte userType; | 26 | private Byte userType; |
| 27 | 27 | ||
| 28 | - @Schema(description = "模版编号", required = true, example = "13013") | 28 | + @Schema(description = "模版编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13013") |
| 29 | @NotNull(message = "模版编号不能为空") | 29 | @NotNull(message = "模版编号不能为空") |
| 30 | private Long templateId; | 30 | private Long templateId; |
| 31 | 31 | ||
| 32 | - @Schema(description = "模板编码", required = true, example = "test_01") | 32 | + @Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "test_01") |
| 33 | @NotNull(message = "模板编码不能为空") | 33 | @NotNull(message = "模板编码不能为空") |
| 34 | private String templateCode; | 34 | private String templateCode; |
| 35 | 35 | ||
| 36 | - @Schema(description = "模版发送人名称", required = true, example = "芋艿") | 36 | + @Schema(description = "模版发送人名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿") |
| 37 | @NotNull(message = "模版发送人名称不能为空") | 37 | @NotNull(message = "模版发送人名称不能为空") |
| 38 | private String templateNickname; | 38 | private String templateNickname; |
| 39 | 39 | ||
| 40 | - @Schema(description = "模版内容", required = true, example = "测试内容") | 40 | + @Schema(description = "模版内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "测试内容") |
| 41 | @NotNull(message = "模版内容不能为空") | 41 | @NotNull(message = "模版内容不能为空") |
| 42 | private String templateContent; | 42 | private String templateContent; |
| 43 | 43 | ||
| 44 | - @Schema(description = "模版类型", required = true, example = "2") | 44 | + @Schema(description = "模版类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
| 45 | @NotNull(message = "模版类型不能为空") | 45 | @NotNull(message = "模版类型不能为空") |
| 46 | private Integer templateType; | 46 | private Integer templateType; |
| 47 | 47 | ||
| 48 | - @Schema(description = "模版参数", required = true) | 48 | + @Schema(description = "模版参数", requiredMode = Schema.RequiredMode.REQUIRED) |
| 49 | @NotNull(message = "模版参数不能为空") | 49 | @NotNull(message = "模版参数不能为空") |
| 50 | private Map<String, Object> templateParams; | 50 | private Map<String, Object> templateParams; |
| 51 | 51 | ||
| 52 | - @Schema(description = "是否已读", required = true, example = "true") | 52 | + @Schema(description = "是否已读", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
| 53 | @NotNull(message = "是否已读不能为空") | 53 | @NotNull(message = "是否已读不能为空") |
| 54 | private Boolean readStatus; | 54 | private Boolean readStatus; |
| 55 | 55 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/notify/vo/message/NotifyMessageRespVO.java
| @@ -10,10 +10,10 @@ import java.util.*; | @@ -10,10 +10,10 @@ import java.util.*; | ||
| 10 | @ToString(callSuper = true) | 10 | @ToString(callSuper = true) |
| 11 | public class NotifyMessageRespVO extends NotifyMessageBaseVO { | 11 | public class NotifyMessageRespVO extends NotifyMessageBaseVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "ID", required = true, example = "1024") | 13 | + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "创建时间", required = true) | 16 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 17 | private Date createTime; | 17 | private Date createTime; |
| 18 | 18 | ||
| 19 | } | 19 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/notify/vo/template/NotifyTemplateBaseVO.java
| @@ -15,27 +15,27 @@ import javax.validation.constraints.NotNull; | @@ -15,27 +15,27 @@ import javax.validation.constraints.NotNull; | ||
| 15 | @Data | 15 | @Data |
| 16 | public class NotifyTemplateBaseVO { | 16 | public class NotifyTemplateBaseVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "模版名称", required = true, example = "测试模版") | 18 | + @Schema(description = "模版名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "测试模版") |
| 19 | @NotEmpty(message = "模版名称不能为空") | 19 | @NotEmpty(message = "模版名称不能为空") |
| 20 | private String name; | 20 | private String name; |
| 21 | 21 | ||
| 22 | - @Schema(description = "模版编码", required = true, example = "SEND_TEST") | 22 | + @Schema(description = "模版编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "SEND_TEST") |
| 23 | @NotNull(message = "模版编码不能为空") | 23 | @NotNull(message = "模版编码不能为空") |
| 24 | private String code; | 24 | private String code; |
| 25 | 25 | ||
| 26 | - @Schema(description = "模版类型 - 对应 system_notify_template_type 字典", required = true, example = "1") | 26 | + @Schema(description = "模版类型 - 对应 system_notify_template_type 字典", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 27 | @NotNull(message = "模版类型不能为空") | 27 | @NotNull(message = "模版类型不能为空") |
| 28 | private Integer type; | 28 | private Integer type; |
| 29 | 29 | ||
| 30 | - @Schema(description = "发送人名称", required = true, example = "土豆") | 30 | + @Schema(description = "发送人名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "土豆") |
| 31 | @NotEmpty(message = "发送人名称不能为空") | 31 | @NotEmpty(message = "发送人名称不能为空") |
| 32 | private String nickname; | 32 | private String nickname; |
| 33 | 33 | ||
| 34 | - @Schema(description = "模版内容", required = true, example = "我是模版内容") | 34 | + @Schema(description = "模版内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "我是模版内容") |
| 35 | @NotEmpty(message = "模版内容不能为空") | 35 | @NotEmpty(message = "模版内容不能为空") |
| 36 | private String content; | 36 | private String content; |
| 37 | 37 | ||
| 38 | - @Schema(description = "状态 - 参见 CommonStatusEnum 枚举", required = true, example = "1") | 38 | + @Schema(description = "状态 - 参见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 39 | @NotNull(message = "状态不能为空") | 39 | @NotNull(message = "状态不能为空") |
| 40 | @InEnum(value = CommonStatusEnum.class, message = "状态必须是 {value}") | 40 | @InEnum(value = CommonStatusEnum.class, message = "状态必须是 {value}") |
| 41 | private Integer status; | 41 | private Integer status; |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/notify/vo/template/NotifyTemplateRespVO.java
| @@ -10,13 +10,13 @@ import java.util.*; | @@ -10,13 +10,13 @@ import java.util.*; | ||
| 10 | @ToString(callSuper = true) | 10 | @ToString(callSuper = true) |
| 11 | public class NotifyTemplateRespVO extends NotifyTemplateBaseVO { | 11 | public class NotifyTemplateRespVO extends NotifyTemplateBaseVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "ID", required = true, example = "1024") | 13 | + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 | ||
| 16 | @Schema(description = "参数数组", example = "name,code") | 16 | @Schema(description = "参数数组", example = "name,code") |
| 17 | private List<String> params; | 17 | private List<String> params; |
| 18 | 18 | ||
| 19 | - @Schema(description = "创建时间", required = true) | 19 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private Date createTime; | 20 | private Date createTime; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/notify/vo/template/NotifyTemplateSendReqVO.java
| @@ -11,11 +11,11 @@ import java.util.Map; | @@ -11,11 +11,11 @@ import java.util.Map; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class NotifyTemplateSendReqVO { | 12 | public class NotifyTemplateSendReqVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "用户id", required = true, example = "01") | 14 | + @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "01") |
| 15 | @NotNull(message = "用户id不能为空") | 15 | @NotNull(message = "用户id不能为空") |
| 16 | private Long userId; | 16 | private Long userId; |
| 17 | 17 | ||
| 18 | - @Schema(description = "模板编码", required = true, example = "01") | 18 | + @Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "01") |
| 19 | @NotEmpty(message = "模板编码不能为空") | 19 | @NotEmpty(message = "模板编码不能为空") |
| 20 | private String templateCode; | 20 | private String templateCode; |
| 21 | 21 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/notify/vo/template/NotifyTemplateUpdateReqVO.java
| @@ -10,7 +10,7 @@ import javax.validation.constraints.*; | @@ -10,7 +10,7 @@ import javax.validation.constraints.*; | ||
| 10 | @ToString(callSuper = true) | 10 | @ToString(callSuper = true) |
| 11 | public class NotifyTemplateUpdateReqVO extends NotifyTemplateBaseVO { | 11 | public class NotifyTemplateUpdateReqVO extends NotifyTemplateBaseVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "ID", required = true, example = "1024") | 13 | + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 14 | @NotNull(message = "ID 不能为空") | 14 | @NotNull(message = "ID 不能为空") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/client/OAuth2ClientBaseVO.java
| @@ -18,19 +18,19 @@ import java.util.List; | @@ -18,19 +18,19 @@ import java.util.List; | ||
| 18 | @Data | 18 | @Data |
| 19 | public class OAuth2ClientBaseVO { | 19 | public class OAuth2ClientBaseVO { |
| 20 | 20 | ||
| 21 | - @Schema(description = "客户端编号", required = true, example = "tudou") | 21 | + @Schema(description = "客户端编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "tudou") |
| 22 | @NotNull(message = "客户端编号不能为空") | 22 | @NotNull(message = "客户端编号不能为空") |
| 23 | private String clientId; | 23 | private String clientId; |
| 24 | 24 | ||
| 25 | - @Schema(description = "客户端密钥", required = true, example = "fan") | 25 | + @Schema(description = "客户端密钥", requiredMode = Schema.RequiredMode.REQUIRED, example = "fan") |
| 26 | @NotNull(message = "客户端密钥不能为空") | 26 | @NotNull(message = "客户端密钥不能为空") |
| 27 | private String secret; | 27 | private String secret; |
| 28 | 28 | ||
| 29 | - @Schema(description = "应用名", required = true, example = "土豆") | 29 | + @Schema(description = "应用名", requiredMode = Schema.RequiredMode.REQUIRED, example = "土豆") |
| 30 | @NotNull(message = "应用名不能为空") | 30 | @NotNull(message = "应用名不能为空") |
| 31 | private String name; | 31 | private String name; |
| 32 | 32 | ||
| 33 | - @Schema(description = "应用图标", required = true, example = "https://www.iocoder.cn/xx.png") | 33 | + @Schema(description = "应用图标", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/xx.png") |
| 34 | @NotNull(message = "应用图标不能为空") | 34 | @NotNull(message = "应用图标不能为空") |
| 35 | @URL(message = "应用图标的地址不正确") | 35 | @URL(message = "应用图标的地址不正确") |
| 36 | private String logo; | 36 | private String logo; |
| @@ -38,24 +38,24 @@ public class OAuth2ClientBaseVO { | @@ -38,24 +38,24 @@ public class OAuth2ClientBaseVO { | ||
| 38 | @Schema(description = "应用描述", example = "我是一个应用") | 38 | @Schema(description = "应用描述", example = "我是一个应用") |
| 39 | private String description; | 39 | private String description; |
| 40 | 40 | ||
| 41 | - @Schema(description = "状态,参见 CommonStatusEnum 枚举", required = true, example = "1") | 41 | + @Schema(description = "状态,参见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 42 | @NotNull(message = "状态不能为空") | 42 | @NotNull(message = "状态不能为空") |
| 43 | private Integer status; | 43 | private Integer status; |
| 44 | 44 | ||
| 45 | - @Schema(description = "访问令牌的有效期", required = true, example = "8640") | 45 | + @Schema(description = "访问令牌的有效期", requiredMode = Schema.RequiredMode.REQUIRED, example = "8640") |
| 46 | @NotNull(message = "访问令牌的有效期不能为空") | 46 | @NotNull(message = "访问令牌的有效期不能为空") |
| 47 | private Integer accessTokenValiditySeconds; | 47 | private Integer accessTokenValiditySeconds; |
| 48 | 48 | ||
| 49 | - @Schema(description = "刷新令牌的有效期", required = true, example = "8640000") | 49 | + @Schema(description = "刷新令牌的有效期", requiredMode = Schema.RequiredMode.REQUIRED, example = "8640000") |
| 50 | @NotNull(message = "刷新令牌的有效期不能为空") | 50 | @NotNull(message = "刷新令牌的有效期不能为空") |
| 51 | private Integer refreshTokenValiditySeconds; | 51 | private Integer refreshTokenValiditySeconds; |
| 52 | 52 | ||
| 53 | - @Schema(description = "可重定向的 URI 地址", required = true, example = "https://www.iocoder.cn") | 53 | + @Schema(description = "可重定向的 URI 地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn") |
| 54 | @NotNull(message = "可重定向的 URI 地址不能为空") | 54 | @NotNull(message = "可重定向的 URI 地址不能为空") |
| 55 | private List<@NotEmpty(message = "重定向的 URI 不能为空") | 55 | private List<@NotEmpty(message = "重定向的 URI 不能为空") |
| 56 | @URL(message = "重定向的 URI 格式不正确") String> redirectUris; | 56 | @URL(message = "重定向的 URI 格式不正确") String> redirectUris; |
| 57 | 57 | ||
| 58 | - @Schema(description = "授权类型,参见 OAuth2GrantTypeEnum 枚举", required = true, example = "password") | 58 | + @Schema(description = "授权类型,参见 OAuth2GrantTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "password") |
| 59 | @NotNull(message = "授权类型不能为空") | 59 | @NotNull(message = "授权类型不能为空") |
| 60 | private List<String> authorizedGrantTypes; | 60 | private List<String> authorizedGrantTypes; |
| 61 | 61 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/client/OAuth2ClientRespVO.java
| @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class OAuth2ClientRespVO extends OAuth2ClientBaseVO { | 14 | public class OAuth2ClientRespVO extends OAuth2ClientBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1024") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "创建时间", required = true) | 19 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private LocalDateTime createTime; | 20 | private LocalDateTime createTime; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/client/OAuth2ClientUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class OAuth2ClientUpdateReqVO extends OAuth2ClientBaseVO { | 14 | public class OAuth2ClientUpdateReqVO extends OAuth2ClientBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1024") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "编号不能为空") | 17 | @NotNull(message = "编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/open/OAuth2OpenAccessTokenRespVO.java
| @@ -12,19 +12,19 @@ import lombok.NoArgsConstructor; | @@ -12,19 +12,19 @@ import lombok.NoArgsConstructor; | ||
| 12 | @AllArgsConstructor | 12 | @AllArgsConstructor |
| 13 | public class OAuth2OpenAccessTokenRespVO { | 13 | public class OAuth2OpenAccessTokenRespVO { |
| 14 | 14 | ||
| 15 | - @Schema(description = "访问令牌", required = true, example = "tudou") | 15 | + @Schema(description = "访问令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "tudou") |
| 16 | @JsonProperty("access_token") | 16 | @JsonProperty("access_token") |
| 17 | private String accessToken; | 17 | private String accessToken; |
| 18 | 18 | ||
| 19 | - @Schema(description = "刷新令牌", required = true, example = "nice") | 19 | + @Schema(description = "刷新令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "nice") |
| 20 | @JsonProperty("refresh_token") | 20 | @JsonProperty("refresh_token") |
| 21 | private String refreshToken; | 21 | private String refreshToken; |
| 22 | 22 | ||
| 23 | - @Schema(description = "令牌类型", required = true, example = "bearer") | 23 | + @Schema(description = "令牌类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "bearer") |
| 24 | @JsonProperty("token_type") | 24 | @JsonProperty("token_type") |
| 25 | private String tokenType; | 25 | private String tokenType; |
| 26 | 26 | ||
| 27 | - @Schema(description = "过期时间,单位:秒", required = true, example = "42430") | 27 | + @Schema(description = "过期时间,单位:秒", requiredMode = Schema.RequiredMode.REQUIRED, example = "42430") |
| 28 | @JsonProperty("expires_in") | 28 | @JsonProperty("expires_in") |
| 29 | private Long expiresIn; | 29 | private Long expiresIn; |
| 30 | 30 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/open/OAuth2OpenAuthorizeInfoRespVO.java
| @@ -19,7 +19,7 @@ public class OAuth2OpenAuthorizeInfoRespVO { | @@ -19,7 +19,7 @@ public class OAuth2OpenAuthorizeInfoRespVO { | ||
| 19 | */ | 19 | */ |
| 20 | private Client client; | 20 | private Client client; |
| 21 | 21 | ||
| 22 | - @Schema(description = "scope 的选中信息,使用 List 保证有序性,Key 是 scope,Value 为是否选中", required = true) | 22 | + @Schema(description = "scope 的选中信息,使用 List 保证有序性,Key 是 scope,Value 为是否选中", requiredMode = Schema.RequiredMode.REQUIRED) |
| 23 | private List<KeyValue<String, Boolean>> scopes; | 23 | private List<KeyValue<String, Boolean>> scopes; |
| 24 | 24 | ||
| 25 | @Data | 25 | @Data |
| @@ -27,10 +27,10 @@ public class OAuth2OpenAuthorizeInfoRespVO { | @@ -27,10 +27,10 @@ public class OAuth2OpenAuthorizeInfoRespVO { | ||
| 27 | @AllArgsConstructor | 27 | @AllArgsConstructor |
| 28 | public static class Client { | 28 | public static class Client { |
| 29 | 29 | ||
| 30 | - @Schema(description = "应用名", required = true, example = "土豆") | 30 | + @Schema(description = "应用名", requiredMode = Schema.RequiredMode.REQUIRED, example = "土豆") |
| 31 | private String name; | 31 | private String name; |
| 32 | 32 | ||
| 33 | - @Schema(description = "应用图标", required = true, example = "https://www.iocoder.cn/xx.png") | 33 | + @Schema(description = "应用图标", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/xx.png") |
| 34 | private String logo; | 34 | private String logo; |
| 35 | 35 | ||
| 36 | } | 36 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/open/OAuth2OpenCheckTokenRespVO.java
| @@ -14,27 +14,27 @@ import java.util.List; | @@ -14,27 +14,27 @@ import java.util.List; | ||
| 14 | @AllArgsConstructor | 14 | @AllArgsConstructor |
| 15 | public class OAuth2OpenCheckTokenRespVO { | 15 | public class OAuth2OpenCheckTokenRespVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "用户编号", required = true, example = "666") | 17 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "666") |
| 18 | @JsonProperty("user_id") | 18 | @JsonProperty("user_id") |
| 19 | private Long userId; | 19 | private Long userId; |
| 20 | - @Schema(description = "用户类型,参见 UserTypeEnum 枚举", required = true, example = "2") | 20 | + @Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
| 21 | @JsonProperty("user_type") | 21 | @JsonProperty("user_type") |
| 22 | private Integer userType; | 22 | private Integer userType; |
| 23 | - @Schema(description = "租户编号", required = true, example = "1024") | 23 | + @Schema(description = "租户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 24 | @JsonProperty("tenant_id") | 24 | @JsonProperty("tenant_id") |
| 25 | private Long tenantId; | 25 | private Long tenantId; |
| 26 | 26 | ||
| 27 | - @Schema(description = "客户端编号", required = true, example = "car") | 27 | + @Schema(description = "客户端编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "car") |
| 28 | @JsonProperty("client_id") | 28 | @JsonProperty("client_id") |
| 29 | private String clientId; | 29 | private String clientId; |
| 30 | - @Schema(description = "授权范围", required = true, example = "user_info") | 30 | + @Schema(description = "授权范围", requiredMode = Schema.RequiredMode.REQUIRED, example = "user_info") |
| 31 | private List<String> scopes; | 31 | private List<String> scopes; |
| 32 | 32 | ||
| 33 | - @Schema(description = "访问令牌", required = true, example = "tudou") | 33 | + @Schema(description = "访问令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "tudou") |
| 34 | @JsonProperty("access_token") | 34 | @JsonProperty("access_token") |
| 35 | private String accessToken; | 35 | private String accessToken; |
| 36 | 36 | ||
| 37 | - @Schema(description = "过期时间,时间戳 / 1000,即单位:秒", required = true, example = "1593092157") | 37 | + @Schema(description = "过期时间,时间戳 / 1000,即单位:秒", requiredMode = Schema.RequiredMode.REQUIRED, example = "1593092157") |
| 38 | private Long exp; | 38 | private Long exp; |
| 39 | 39 | ||
| 40 | } | 40 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/token/OAuth2AccessTokenPageReqVO.java
| @@ -10,13 +10,13 @@ import lombok.EqualsAndHashCode; | @@ -10,13 +10,13 @@ import lombok.EqualsAndHashCode; | ||
| 10 | @EqualsAndHashCode(callSuper = true) | 10 | @EqualsAndHashCode(callSuper = true) |
| 11 | public class OAuth2AccessTokenPageReqVO extends PageParam { | 11 | public class OAuth2AccessTokenPageReqVO extends PageParam { |
| 12 | 12 | ||
| 13 | - @Schema(description = "用户编号", required = true, example = "666") | 13 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "666") |
| 14 | private Long userId; | 14 | private Long userId; |
| 15 | 15 | ||
| 16 | - @Schema(description = "用户类型,参见 UserTypeEnum 枚举", required = true, example = "2") | 16 | + @Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
| 17 | private Integer userType; | 17 | private Integer userType; |
| 18 | 18 | ||
| 19 | - @Schema(description = "客户端编号", required = true, example = "2") | 19 | + @Schema(description = "客户端编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
| 20 | private String clientId; | 20 | private String clientId; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/token/OAuth2AccessTokenRespVO.java
| @@ -13,28 +13,28 @@ import java.time.LocalDateTime; | @@ -13,28 +13,28 @@ import java.time.LocalDateTime; | ||
| 13 | @AllArgsConstructor | 13 | @AllArgsConstructor |
| 14 | public class OAuth2AccessTokenRespVO { | 14 | public class OAuth2AccessTokenRespVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1024") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "访问令牌", required = true, example = "tudou") | 19 | + @Schema(description = "访问令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "tudou") |
| 20 | private String accessToken; | 20 | private String accessToken; |
| 21 | 21 | ||
| 22 | - @Schema(description = "刷新令牌", required = true, example = "nice") | 22 | + @Schema(description = "刷新令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "nice") |
| 23 | private String refreshToken; | 23 | private String refreshToken; |
| 24 | 24 | ||
| 25 | - @Schema(description = "用户编号", required = true, example = "666") | 25 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "666") |
| 26 | private Long userId; | 26 | private Long userId; |
| 27 | 27 | ||
| 28 | - @Schema(description = "用户类型,参见 UserTypeEnum 枚举", required = true, example = "2") | 28 | + @Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
| 29 | private Integer userType; | 29 | private Integer userType; |
| 30 | 30 | ||
| 31 | - @Schema(description = "客户端编号", required = true, example = "2") | 31 | + @Schema(description = "客户端编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
| 32 | private String clientId; | 32 | private String clientId; |
| 33 | 33 | ||
| 34 | - @Schema(description = "创建时间", required = true) | 34 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 35 | private LocalDateTime createTime; | 35 | private LocalDateTime createTime; |
| 36 | 36 | ||
| 37 | - @Schema(description = "过期时间", required = true) | 37 | + @Schema(description = "过期时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 38 | private LocalDateTime expiresTime; | 38 | private LocalDateTime expiresTime; |
| 39 | 39 | ||
| 40 | } | 40 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/user/OAuth2UserInfoRespVO.java
| @@ -13,13 +13,13 @@ import java.util.List; | @@ -13,13 +13,13 @@ import java.util.List; | ||
| 13 | @AllArgsConstructor | 13 | @AllArgsConstructor |
| 14 | public class OAuth2UserInfoRespVO { | 14 | public class OAuth2UserInfoRespVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "用户编号", required = true, example = "1") | 16 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "用户账号", required = true, example = "芋艿") | 19 | + @Schema(description = "用户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿") |
| 20 | private String username; | 20 | private String username; |
| 21 | 21 | ||
| 22 | - @Schema(description = "用户昵称", required = true, example = "芋道") | 22 | + @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 23 | private String nickname; | 23 | private String nickname; |
| 24 | 24 | ||
| 25 | @Schema(description = "用户邮箱", example = "yudao@iocoder.cn") | 25 | @Schema(description = "用户邮箱", example = "yudao@iocoder.cn") |
| @@ -47,10 +47,10 @@ public class OAuth2UserInfoRespVO { | @@ -47,10 +47,10 @@ public class OAuth2UserInfoRespVO { | ||
| 47 | @Data | 47 | @Data |
| 48 | public static class Dept { | 48 | public static class Dept { |
| 49 | 49 | ||
| 50 | - @Schema(description = "部门编号", required = true, example = "1") | 50 | + @Schema(description = "部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 51 | private Long id; | 51 | private Long id; |
| 52 | 52 | ||
| 53 | - @Schema(description = "部门名称", required = true, example = "研发部") | 53 | + @Schema(description = "部门名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "研发部") |
| 54 | private String name; | 54 | private String name; |
| 55 | 55 | ||
| 56 | } | 56 | } |
| @@ -59,10 +59,10 @@ public class OAuth2UserInfoRespVO { | @@ -59,10 +59,10 @@ public class OAuth2UserInfoRespVO { | ||
| 59 | @Data | 59 | @Data |
| 60 | public static class Post { | 60 | public static class Post { |
| 61 | 61 | ||
| 62 | - @Schema(description = "岗位编号", required = true, example = "1") | 62 | + @Schema(description = "岗位编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 63 | private Long id; | 63 | private Long id; |
| 64 | 64 | ||
| 65 | - @Schema(description = "岗位名称", required = true, example = "开发") | 65 | + @Schema(description = "岗位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "开发") |
| 66 | private String name; | 66 | private String name; |
| 67 | 67 | ||
| 68 | } | 68 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/vo/user/OAuth2UserUpdateReqVO.java
| @@ -15,7 +15,7 @@ import javax.validation.constraints.Size; | @@ -15,7 +15,7 @@ import javax.validation.constraints.Size; | ||
| 15 | @AllArgsConstructor | 15 | @AllArgsConstructor |
| 16 | public class OAuth2UserUpdateReqVO { | 16 | public class OAuth2UserUpdateReqVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "用户昵称", required = true, example = "芋艿") | 18 | + @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿") |
| 19 | @Size(max = 30, message = "用户昵称长度不能超过 30 个字符") | 19 | @Size(max = 30, message = "用户昵称长度不能超过 30 个字符") |
| 20 | private String nickname; | 20 | private String nickname; |
| 21 | 21 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/menu/MenuBaseVO.java
| @@ -14,7 +14,7 @@ import javax.validation.constraints.Size; | @@ -14,7 +14,7 @@ import javax.validation.constraints.Size; | ||
| 14 | @Data | 14 | @Data |
| 15 | public class MenuBaseVO { | 15 | public class MenuBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "菜单名称", required = true, example = "芋道") | 17 | + @Schema(description = "菜单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 18 | @NotBlank(message = "菜单名称不能为空") | 18 | @NotBlank(message = "菜单名称不能为空") |
| 19 | @Size(max = 50, message = "菜单名称长度不能超过50个字符") | 19 | @Size(max = 50, message = "菜单名称长度不能超过50个字符") |
| 20 | private String name; | 20 | private String name; |
| @@ -23,15 +23,15 @@ public class MenuBaseVO { | @@ -23,15 +23,15 @@ public class MenuBaseVO { | ||
| 23 | @Size(max = 100) | 23 | @Size(max = 100) |
| 24 | private String permission; | 24 | private String permission; |
| 25 | 25 | ||
| 26 | - @Schema(description = "类型,参见 MenuTypeEnum 枚举类", required = true, example = "1") | 26 | + @Schema(description = "类型,参见 MenuTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 27 | @NotNull(message = "菜单类型不能为空") | 27 | @NotNull(message = "菜单类型不能为空") |
| 28 | private Integer type; | 28 | private Integer type; |
| 29 | 29 | ||
| 30 | - @Schema(description = "显示顺序不能为空", required = true, example = "1024") | 30 | + @Schema(description = "显示顺序不能为空", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 31 | @NotNull(message = "显示顺序不能为空") | 31 | @NotNull(message = "显示顺序不能为空") |
| 32 | private Integer sort; | 32 | private Integer sort; |
| 33 | 33 | ||
| 34 | - @Schema(description = "父菜单 ID", required = true, example = "1024") | 34 | + @Schema(description = "父菜单 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 35 | @NotNull(message = "父菜单 ID 不能为空") | 35 | @NotNull(message = "父菜单 ID 不能为空") |
| 36 | private Long parentId; | 36 | private Long parentId; |
| 37 | 37 | ||
| @@ -49,7 +49,7 @@ public class MenuBaseVO { | @@ -49,7 +49,7 @@ public class MenuBaseVO { | ||
| 49 | @Schema(description = "组件名", example = "SystemUser") | 49 | @Schema(description = "组件名", example = "SystemUser") |
| 50 | private String componentName; | 50 | private String componentName; |
| 51 | 51 | ||
| 52 | - @Schema(description = "状态,见 CommonStatusEnum 枚举", required = true, example = "1") | 52 | + @Schema(description = "状态,见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 53 | @NotNull(message = "状态不能为空") | 53 | @NotNull(message = "状态不能为空") |
| 54 | private Integer status; | 54 | private Integer status; |
| 55 | 55 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/menu/MenuRespVO.java
| @@ -15,13 +15,13 @@ import java.time.LocalDateTime; | @@ -15,13 +15,13 @@ import java.time.LocalDateTime; | ||
| 15 | @EqualsAndHashCode(callSuper = true) | 15 | @EqualsAndHashCode(callSuper = true) |
| 16 | public class MenuRespVO extends MenuBaseVO { | 16 | public class MenuRespVO extends MenuBaseVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "菜单编号", required = true, example = "1024") | 18 | + @Schema(description = "菜单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 19 | private Long id; | 19 | private Long id; |
| 20 | 20 | ||
| 21 | - @Schema(description = "状态,参见 CommonStatusEnum 枚举类", required = true, example = "1") | 21 | + @Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 22 | private Integer status; | 22 | private Integer status; |
| 23 | 23 | ||
| 24 | - @Schema(description = "创建时间", required = true, example = "时间戳格式") | 24 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
| 25 | private LocalDateTime createTime; | 25 | private LocalDateTime createTime; |
| 26 | 26 | ||
| 27 | } | 27 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/menu/MenuSimpleRespVO.java
| @@ -13,16 +13,16 @@ import javax.validation.constraints.NotNull; | @@ -13,16 +13,16 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @AllArgsConstructor | 13 | @AllArgsConstructor |
| 14 | public class MenuSimpleRespVO { | 14 | public class MenuSimpleRespVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "菜单编号", required = true, example = "1024") | 16 | + @Schema(description = "菜单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "菜单名称", required = true, example = "芋道") | 19 | + @Schema(description = "菜单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 20 | private String name; | 20 | private String name; |
| 21 | 21 | ||
| 22 | - @Schema(description = "父菜单 ID", required = true, example = "1024") | 22 | + @Schema(description = "父菜单 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 23 | private Long parentId; | 23 | private Long parentId; |
| 24 | 24 | ||
| 25 | - @Schema(description = "类型,参见 MenuTypeEnum 枚举类", required = true, example = "1") | 25 | + @Schema(description = "类型,参见 MenuTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 26 | private Integer type; | 26 | private Integer type; |
| 27 | 27 | ||
| 28 | } | 28 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/menu/MenuUpdateReqVO.java
| @@ -10,7 +10,7 @@ import javax.validation.constraints.NotNull; | @@ -10,7 +10,7 @@ import javax.validation.constraints.NotNull; | ||
| 10 | @EqualsAndHashCode(callSuper = true) | 10 | @EqualsAndHashCode(callSuper = true) |
| 11 | public class MenuUpdateReqVO extends MenuBaseVO { | 11 | public class MenuUpdateReqVO extends MenuBaseVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "菜单编号", required = true, example = "1024") | 13 | + @Schema(description = "菜单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 14 | @NotNull(message = "菜单编号不能为空") | 14 | @NotNull(message = "菜单编号不能为空") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/permission/PermissionAssignRoleDataScopeReqVO.java
| @@ -11,11 +11,11 @@ import java.util.Set; | @@ -11,11 +11,11 @@ import java.util.Set; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class PermissionAssignRoleDataScopeReqVO { | 12 | public class PermissionAssignRoleDataScopeReqVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "角色编号", required = true, example = "1") | 14 | + @Schema(description = "角色编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 15 | @NotNull(message = "角色编号不能为空") | 15 | @NotNull(message = "角色编号不能为空") |
| 16 | private Long roleId; | 16 | private Long roleId; |
| 17 | 17 | ||
| 18 | - @Schema(description = "数据范围,参见 DataScopeEnum 枚举类", required = true, example = "1") | 18 | + @Schema(description = "数据范围,参见 DataScopeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 19 | @NotNull(message = "数据范围不能为空") | 19 | @NotNull(message = "数据范围不能为空") |
| 20 | // TODO 这里要多一个枚举校验 | 20 | // TODO 这里要多一个枚举校验 |
| 21 | private Integer dataScope; | 21 | private Integer dataScope; |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/permission/PermissionAssignRoleMenuReqVO.java
| @@ -11,7 +11,7 @@ import java.util.Set; | @@ -11,7 +11,7 @@ import java.util.Set; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class PermissionAssignRoleMenuReqVO { | 12 | public class PermissionAssignRoleMenuReqVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "角色编号", required = true, example = "1") | 14 | + @Schema(description = "角色编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 15 | @NotNull(message = "角色编号不能为空") | 15 | @NotNull(message = "角色编号不能为空") |
| 16 | private Long roleId; | 16 | private Long roleId; |
| 17 | 17 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/permission/PermissionAssignUserRoleReqVO.java
| @@ -11,7 +11,7 @@ import java.util.Set; | @@ -11,7 +11,7 @@ import java.util.Set; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class PermissionAssignUserRoleReqVO { | 12 | public class PermissionAssignUserRoleReqVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "用户编号", required = true, example = "1") | 14 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 15 | @NotNull(message = "用户编号不能为空") | 15 | @NotNull(message = "用户编号不能为空") |
| 16 | private Long userId; | 16 | private Long userId; |
| 17 | 17 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/role/RoleBaseVO.java
| @@ -14,17 +14,17 @@ import javax.validation.constraints.Size; | @@ -14,17 +14,17 @@ import javax.validation.constraints.Size; | ||
| 14 | @Data | 14 | @Data |
| 15 | public class RoleBaseVO { | 15 | public class RoleBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "角色名称", required = true, example = "管理员") | 17 | + @Schema(description = "角色名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "管理员") |
| 18 | @NotBlank(message = "角色名称不能为空") | 18 | @NotBlank(message = "角色名称不能为空") |
| 19 | @Size(max = 30, message = "角色名称长度不能超过30个字符") | 19 | @Size(max = 30, message = "角色名称长度不能超过30个字符") |
| 20 | private String name; | 20 | private String name; |
| 21 | 21 | ||
| 22 | @NotBlank(message = "角色标志不能为空") | 22 | @NotBlank(message = "角色标志不能为空") |
| 23 | @Size(max = 100, message = "角色标志长度不能超过100个字符") | 23 | @Size(max = 100, message = "角色标志长度不能超过100个字符") |
| 24 | - @Schema(description = "角色编码", required = true, example = "ADMIN") | 24 | + @Schema(description = "角色编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "ADMIN") |
| 25 | private String code; | 25 | private String code; |
| 26 | 26 | ||
| 27 | - @Schema(description = "显示顺序不能为空", required = true, example = "1024") | 27 | + @Schema(description = "显示顺序不能为空", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 28 | @NotNull(message = "显示顺序不能为空") | 28 | @NotNull(message = "显示顺序不能为空") |
| 29 | private Integer sort; | 29 | private Integer sort; |
| 30 | 30 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/role/RoleRespVO.java
| @@ -16,22 +16,22 @@ import java.util.Set; | @@ -16,22 +16,22 @@ import java.util.Set; | ||
| 16 | @EqualsAndHashCode(callSuper = true) | 16 | @EqualsAndHashCode(callSuper = true) |
| 17 | public class RoleRespVO extends RoleBaseVO { | 17 | public class RoleRespVO extends RoleBaseVO { |
| 18 | 18 | ||
| 19 | - @Schema(description = "角色编号", required = true, example = "1") | 19 | + @Schema(description = "角色编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 20 | private Long id; | 20 | private Long id; |
| 21 | 21 | ||
| 22 | - @Schema(description = "数据范围,参见 DataScopeEnum 枚举类", required = true, example = "1") | 22 | + @Schema(description = "数据范围,参见 DataScopeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 23 | private Integer dataScope; | 23 | private Integer dataScope; |
| 24 | 24 | ||
| 25 | @Schema(description = "数据范围(指定部门数组)", example = "1") | 25 | @Schema(description = "数据范围(指定部门数组)", example = "1") |
| 26 | private Set<Long> dataScopeDeptIds; | 26 | private Set<Long> dataScopeDeptIds; |
| 27 | 27 | ||
| 28 | - @Schema(description = "状态,参见 CommonStatusEnum 枚举类", required = true, example = "1") | 28 | + @Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 29 | private Integer status; | 29 | private Integer status; |
| 30 | 30 | ||
| 31 | - @Schema(description = "角色类型,参见 RoleTypeEnum 枚举类", required = true, example = "1") | 31 | + @Schema(description = "角色类型,参见 RoleTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 32 | private Integer type; | 32 | private Integer type; |
| 33 | 33 | ||
| 34 | - @Schema(description = "创建时间", required = true, example = "时间戳格式") | 34 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
| 35 | private LocalDateTime createTime; | 35 | private LocalDateTime createTime; |
| 36 | 36 | ||
| 37 | } | 37 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/role/RoleSimpleRespVO.java
| @@ -11,10 +11,10 @@ import lombok.NoArgsConstructor; | @@ -11,10 +11,10 @@ import lombok.NoArgsConstructor; | ||
| 11 | @AllArgsConstructor | 11 | @AllArgsConstructor |
| 12 | public class RoleSimpleRespVO { | 12 | public class RoleSimpleRespVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "角色编号", required = true, example = "1024") | 14 | + @Schema(description = "角色编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "角色名称", required = true, example = "芋道") | 17 | + @Schema(description = "角色名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 18 | private String name; | 18 | private String name; |
| 19 | 19 | ||
| 20 | } | 20 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/role/RoleUpdateReqVO.java
| @@ -11,7 +11,7 @@ import javax.validation.constraints.NotNull; | @@ -11,7 +11,7 @@ import javax.validation.constraints.NotNull; | ||
| 11 | @EqualsAndHashCode(callSuper = true) | 11 | @EqualsAndHashCode(callSuper = true) |
| 12 | public class RoleUpdateReqVO extends RoleBaseVO { | 12 | public class RoleUpdateReqVO extends RoleBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "角色编号", required = true, example = "1024") | 14 | + @Schema(description = "角色编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | @NotNull(message = "角色编号不能为空") | 15 | @NotNull(message = "角色编号不能为空") |
| 16 | private Long id; | 16 | private Long id; |
| 17 | 17 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/role/RoleUpdateStatusReqVO.java
| @@ -11,11 +11,11 @@ import javax.validation.constraints.NotNull; | @@ -11,11 +11,11 @@ import javax.validation.constraints.NotNull; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class RoleUpdateStatusReqVO { | 12 | public class RoleUpdateStatusReqVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "角色编号", required = true, example = "1024") | 14 | + @Schema(description = "角色编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | @NotNull(message = "角色编号不能为空") | 15 | @NotNull(message = "角色编号不能为空") |
| 16 | private Long id; | 16 | private Long id; |
| 17 | 17 | ||
| 18 | - @Schema(description = "状态,见 CommonStatusEnum 枚举", required = true, example = "1") | 18 | + @Schema(description = "状态,见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 19 | @NotNull(message = "状态不能为空") | 19 | @NotNull(message = "状态不能为空") |
| 20 | @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") | 20 | @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") |
| 21 | private Integer status; | 21 | private Integer status; |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sensitiveword/vo/SensitiveWordBaseVO.java
| @@ -13,15 +13,15 @@ import java.util.List; | @@ -13,15 +13,15 @@ import java.util.List; | ||
| 13 | @Data | 13 | @Data |
| 14 | public class SensitiveWordBaseVO { | 14 | public class SensitiveWordBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "敏感词", required = true, example = "敏感词") | 16 | + @Schema(description = "敏感词", requiredMode = Schema.RequiredMode.REQUIRED, example = "敏感词") |
| 17 | @NotNull(message = "敏感词不能为空") | 17 | @NotNull(message = "敏感词不能为空") |
| 18 | private String name; | 18 | private String name; |
| 19 | 19 | ||
| 20 | - @Schema(description = "标签", required = true, example = "短信,评论") | 20 | + @Schema(description = "标签", requiredMode = Schema.RequiredMode.REQUIRED, example = "短信,评论") |
| 21 | @NotNull(message = "标签不能为空") | 21 | @NotNull(message = "标签不能为空") |
| 22 | private List<String> tags; | 22 | private List<String> tags; |
| 23 | 23 | ||
| 24 | - @Schema(description = "状态,参见 CommonStatusEnum 枚举类", required = true, example = "1") | 24 | + @Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 25 | @NotNull(message = "状态不能为空") | 25 | @NotNull(message = "状态不能为空") |
| 26 | private Integer status; | 26 | private Integer status; |
| 27 | 27 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sensitiveword/vo/SensitiveWordRespVO.java
| @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class SensitiveWordRespVO extends SensitiveWordBaseVO { | 14 | public class SensitiveWordRespVO extends SensitiveWordBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "创建时间", required = true) | 19 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private LocalDateTime createTime; | 20 | private LocalDateTime createTime; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sensitiveword/vo/SensitiveWordUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class SensitiveWordUpdateReqVO extends SensitiveWordBaseVO { | 14 | public class SensitiveWordUpdateReqVO extends SensitiveWordBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | @NotNull(message = "编号不能为空") | 17 | @NotNull(message = "编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/vo/channel/SmsChannelBaseVO.java
| @@ -12,18 +12,18 @@ import javax.validation.constraints.NotNull; | @@ -12,18 +12,18 @@ import javax.validation.constraints.NotNull; | ||
| 12 | @Data | 12 | @Data |
| 13 | public class SmsChannelBaseVO { | 13 | public class SmsChannelBaseVO { |
| 14 | 14 | ||
| 15 | - @Schema(description = "短信签名", required = true, example = "芋道源码") | 15 | + @Schema(description = "短信签名", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码") |
| 16 | @NotNull(message = "短信签名不能为空") | 16 | @NotNull(message = "短信签名不能为空") |
| 17 | private String signature; | 17 | private String signature; |
| 18 | 18 | ||
| 19 | - @Schema(description = "启用状态", required = true, example = "1") | 19 | + @Schema(description = "启用状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 20 | @NotNull(message = "启用状态不能为空") | 20 | @NotNull(message = "启用状态不能为空") |
| 21 | private Integer status; | 21 | private Integer status; |
| 22 | 22 | ||
| 23 | @Schema(description = "备注", example = "好吃!") | 23 | @Schema(description = "备注", example = "好吃!") |
| 24 | private String remark; | 24 | private String remark; |
| 25 | 25 | ||
| 26 | - @Schema(description = "短信 API 的账号", required = true, example = "yudao") | 26 | + @Schema(description = "短信 API 的账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudao") |
| 27 | @NotNull(message = "短信 API 的账号不能为空") | 27 | @NotNull(message = "短信 API 的账号不能为空") |
| 28 | private String apiKey; | 28 | private String apiKey; |
| 29 | 29 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/vo/channel/SmsChannelCreateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class SmsChannelCreateReqVO extends SmsChannelBaseVO { | 14 | public class SmsChannelCreateReqVO extends SmsChannelBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "渠道编码,参见 SmsChannelEnum 枚举类", required = true, example = "YUN_PIAN") | 16 | + @Schema(description = "渠道编码,参见 SmsChannelEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "YUN_PIAN") |
| 17 | @NotNull(message = "渠道编码不能为空") | 17 | @NotNull(message = "渠道编码不能为空") |
| 18 | private String code; | 18 | private String code; |
| 19 | 19 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/vo/channel/SmsChannelRespVO.java
| @@ -13,13 +13,13 @@ import java.time.LocalDateTime; | @@ -13,13 +13,13 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class SmsChannelRespVO extends SmsChannelBaseVO { | 14 | public class SmsChannelRespVO extends SmsChannelBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1024") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "渠道编码,参见 SmsChannelEnum 枚举类", required = true, example = "YUN_PIAN") | 19 | + @Schema(description = "渠道编码,参见 SmsChannelEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "YUN_PIAN") |
| 20 | private String code; | 20 | private String code; |
| 21 | 21 | ||
| 22 | - @Schema(description = "创建时间", required = true) | 22 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 23 | private LocalDateTime createTime; | 23 | private LocalDateTime createTime; |
| 24 | 24 | ||
| 25 | } | 25 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/vo/channel/SmsChannelSimpleRespVO.java
| @@ -9,15 +9,15 @@ import javax.validation.constraints.NotNull; | @@ -9,15 +9,15 @@ import javax.validation.constraints.NotNull; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class SmsChannelSimpleRespVO { | 10 | public class SmsChannelSimpleRespVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "编号", required = true, example = "1024") | 12 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 13 | @NotNull(message = "编号不能为空") | 13 | @NotNull(message = "编号不能为空") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "短信签名", required = true, example = "芋道源码") | 16 | + @Schema(description = "短信签名", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码") |
| 17 | @NotNull(message = "短信签名不能为空") | 17 | @NotNull(message = "短信签名不能为空") |
| 18 | private String signature; | 18 | private String signature; |
| 19 | 19 | ||
| 20 | - @Schema(description = "渠道编码,参见 SmsChannelEnum 枚举类", required = true, example = "YUN_PIAN") | 20 | + @Schema(description = "渠道编码,参见 SmsChannelEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "YUN_PIAN") |
| 21 | private String code; | 21 | private String code; |
| 22 | 22 | ||
| 23 | } | 23 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/vo/channel/SmsChannelUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class SmsChannelUpdateReqVO extends SmsChannelBaseVO { | 14 | public class SmsChannelUpdateReqVO extends SmsChannelBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1024") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "编号不能为空") | 17 | @NotNull(message = "编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/vo/log/SmsLogRespVO.java
| @@ -10,34 +10,34 @@ import java.util.Map; | @@ -10,34 +10,34 @@ import java.util.Map; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class SmsLogRespVO { | 11 | public class SmsLogRespVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "编号", required = true, example = "1024") | 13 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "短信渠道编号", required = true, example = "10") | 16 | + @Schema(description = "短信渠道编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 17 | private Long channelId; | 17 | private Long channelId; |
| 18 | 18 | ||
| 19 | - @Schema(description = "短信渠道编码", required = true, example = "ALIYUN") | 19 | + @Schema(description = "短信渠道编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "ALIYUN") |
| 20 | private String channelCode; | 20 | private String channelCode; |
| 21 | 21 | ||
| 22 | - @Schema(description = "模板编号", required = true, example = "20") | 22 | + @Schema(description = "模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20") |
| 23 | private Long templateId; | 23 | private Long templateId; |
| 24 | 24 | ||
| 25 | - @Schema(description = "模板编码", required = true, example = "test-01") | 25 | + @Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "test-01") |
| 26 | private String templateCode; | 26 | private String templateCode; |
| 27 | 27 | ||
| 28 | - @Schema(description = "短信类型", required = true, example = "1") | 28 | + @Schema(description = "短信类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 29 | private Integer templateType; | 29 | private Integer templateType; |
| 30 | 30 | ||
| 31 | - @Schema(description = "短信内容", required = true, example = "你好,你的验证码是 1024") | 31 | + @Schema(description = "短信内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "你好,你的验证码是 1024") |
| 32 | private String templateContent; | 32 | private String templateContent; |
| 33 | 33 | ||
| 34 | - @Schema(description = "短信参数", required = true, example = "name,code") | 34 | + @Schema(description = "短信参数", requiredMode = Schema.RequiredMode.REQUIRED, example = "name,code") |
| 35 | private Map<String, Object> templateParams; | 35 | private Map<String, Object> templateParams; |
| 36 | 36 | ||
| 37 | - @Schema(description = "短信 API 的模板编号", required = true, example = "SMS_207945135") | 37 | + @Schema(description = "短信 API 的模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "SMS_207945135") |
| 38 | private String apiTemplateId; | 38 | private String apiTemplateId; |
| 39 | 39 | ||
| 40 | - @Schema(description = "手机号", required = true, example = "15601691300") | 40 | + @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15601691300") |
| 41 | private String mobile; | 41 | private String mobile; |
| 42 | 42 | ||
| 43 | @Schema(description = "用户编号", example = "10") | 43 | @Schema(description = "用户编号", example = "10") |
| @@ -46,7 +46,7 @@ public class SmsLogRespVO { | @@ -46,7 +46,7 @@ public class SmsLogRespVO { | ||
| 46 | @Schema(description = "用户类型", example = "1") | 46 | @Schema(description = "用户类型", example = "1") |
| 47 | private Integer userType; | 47 | private Integer userType; |
| 48 | 48 | ||
| 49 | - @Schema(description = "发送状态", required = true, example = "1") | 49 | + @Schema(description = "发送状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 50 | private Integer sendStatus; | 50 | private Integer sendStatus; |
| 51 | 51 | ||
| 52 | @Schema(description = "发送时间") | 52 | @Schema(description = "发送时间") |
| @@ -70,7 +70,7 @@ public class SmsLogRespVO { | @@ -70,7 +70,7 @@ public class SmsLogRespVO { | ||
| 70 | @Schema(description = "短信 API 发送返回的序号", example = "62923244790") | 70 | @Schema(description = "短信 API 发送返回的序号", example = "62923244790") |
| 71 | private String apiSerialNo; | 71 | private String apiSerialNo; |
| 72 | 72 | ||
| 73 | - @Schema(description = "接收状态", required = true, example = "0") | 73 | + @Schema(description = "接收状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0") |
| 74 | private Integer receiveStatus; | 74 | private Integer receiveStatus; |
| 75 | 75 | ||
| 76 | @Schema(description = "接收时间") | 76 | @Schema(description = "接收时间") |
| @@ -82,7 +82,7 @@ public class SmsLogRespVO { | @@ -82,7 +82,7 @@ public class SmsLogRespVO { | ||
| 82 | @Schema(description = "API 接收结果的说明", example = "用户接收成功") | 82 | @Schema(description = "API 接收结果的说明", example = "用户接收成功") |
| 83 | private String apiReceiveMsg; | 83 | private String apiReceiveMsg; |
| 84 | 84 | ||
| 85 | - @Schema(description = "创建时间", required = true) | 85 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 86 | private LocalDateTime createTime; | 86 | private LocalDateTime createTime; |
| 87 | 87 | ||
| 88 | } | 88 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/vo/template/SmsTemplateBaseVO.java
| @@ -11,34 +11,34 @@ import javax.validation.constraints.NotNull; | @@ -11,34 +11,34 @@ import javax.validation.constraints.NotNull; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class SmsTemplateBaseVO { | 12 | public class SmsTemplateBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "短信类型,参见 SmsTemplateTypeEnum 枚举类", required = true, example = "1") | 14 | + @Schema(description = "短信类型,参见 SmsTemplateTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 15 | @NotNull(message = "短信类型不能为空") | 15 | @NotNull(message = "短信类型不能为空") |
| 16 | private Integer type; | 16 | private Integer type; |
| 17 | 17 | ||
| 18 | - @Schema(description = "开启状态,参见 CommonStatusEnum 枚举类", required = true, example = "1") | 18 | + @Schema(description = "开启状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 19 | @NotNull(message = "开启状态不能为空") | 19 | @NotNull(message = "开启状态不能为空") |
| 20 | private Integer status; | 20 | private Integer status; |
| 21 | 21 | ||
| 22 | - @Schema(description = "模板编码", required = true, example = "test_01") | 22 | + @Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "test_01") |
| 23 | @NotNull(message = "模板编码不能为空") | 23 | @NotNull(message = "模板编码不能为空") |
| 24 | private String code; | 24 | private String code; |
| 25 | 25 | ||
| 26 | - @Schema(description = "模板名称", required = true, example = "yudao") | 26 | + @Schema(description = "模板名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudao") |
| 27 | @NotNull(message = "模板名称不能为空") | 27 | @NotNull(message = "模板名称不能为空") |
| 28 | private String name; | 28 | private String name; |
| 29 | 29 | ||
| 30 | - @Schema(description = "模板内容", required = true, example = "你好,{name}。你长的太{like}啦!") | 30 | + @Schema(description = "模板内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "你好,{name}。你长的太{like}啦!") |
| 31 | @NotNull(message = "模板内容不能为空") | 31 | @NotNull(message = "模板内容不能为空") |
| 32 | private String content; | 32 | private String content; |
| 33 | 33 | ||
| 34 | @Schema(description = "备注", example = "哈哈哈") | 34 | @Schema(description = "备注", example = "哈哈哈") |
| 35 | private String remark; | 35 | private String remark; |
| 36 | 36 | ||
| 37 | - @Schema(description = "短信 API 的模板编号", required = true, example = "4383920") | 37 | + @Schema(description = "短信 API 的模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "4383920") |
| 38 | @NotNull(message = "短信 API 的模板编号不能为空") | 38 | @NotNull(message = "短信 API 的模板编号不能为空") |
| 39 | private String apiTemplateId; | 39 | private String apiTemplateId; |
| 40 | 40 | ||
| 41 | - @Schema(description = "短信渠道编号", required = true, example = "10") | 41 | + @Schema(description = "短信渠道编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 42 | @NotNull(message = "短信渠道编号不能为空") | 42 | @NotNull(message = "短信渠道编号不能为空") |
| 43 | private Long channelId; | 43 | private Long channelId; |
| 44 | 44 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/vo/template/SmsTemplateRespVO.java
| @@ -14,16 +14,16 @@ import java.util.List; | @@ -14,16 +14,16 @@ import java.util.List; | ||
| 14 | @ToString(callSuper = true) | 14 | @ToString(callSuper = true) |
| 15 | public class SmsTemplateRespVO extends SmsTemplateBaseVO { | 15 | public class SmsTemplateRespVO extends SmsTemplateBaseVO { |
| 16 | 16 | ||
| 17 | - @Schema(description = "编号", required = true, example = "1024") | 17 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 | ||
| 20 | - @Schema(description = "短信渠道编码", required = true, example = "ALIYUN") | 20 | + @Schema(description = "短信渠道编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "ALIYUN") |
| 21 | private String channelCode; | 21 | private String channelCode; |
| 22 | 22 | ||
| 23 | @Schema(description = "参数数组", example = "name,code") | 23 | @Schema(description = "参数数组", example = "name,code") |
| 24 | private List<String> params; | 24 | private List<String> params; |
| 25 | 25 | ||
| 26 | - @Schema(description = "创建时间", required = true) | 26 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 27 | private LocalDateTime createTime; | 27 | private LocalDateTime createTime; |
| 28 | 28 | ||
| 29 | } | 29 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/vo/template/SmsTemplateSendReqVO.java
| @@ -10,11 +10,11 @@ import java.util.Map; | @@ -10,11 +10,11 @@ import java.util.Map; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class SmsTemplateSendReqVO { | 11 | public class SmsTemplateSendReqVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "手机号", required = true, example = "15601691300") | 13 | + @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15601691300") |
| 14 | @NotNull(message = "手机号不能为空") | 14 | @NotNull(message = "手机号不能为空") |
| 15 | private String mobile; | 15 | private String mobile; |
| 16 | 16 | ||
| 17 | - @Schema(description = "模板编码", required = true, example = "test_01") | 17 | + @Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "test_01") |
| 18 | @NotNull(message = "模板编码不能为空") | 18 | @NotNull(message = "模板编码不能为空") |
| 19 | private String templateCode; | 19 | private String templateCode; |
| 20 | 20 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/vo/template/SmsTemplateUpdateReqVO.java
| @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | @@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class SmsTemplateUpdateReqVO extends SmsTemplateBaseVO { | 14 | public class SmsTemplateUpdateReqVO extends SmsTemplateBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "编号", required = true, example = "1024") | 16 | + @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | @NotNull(message = "编号不能为空") | 17 | @NotNull(message = "编号不能为空") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/socail/vo/SocialUserBindReqVO.java
| @@ -18,16 +18,16 @@ import javax.validation.constraints.NotNull; | @@ -18,16 +18,16 @@ import javax.validation.constraints.NotNull; | ||
| 18 | @Builder | 18 | @Builder |
| 19 | public class SocialUserBindReqVO { | 19 | public class SocialUserBindReqVO { |
| 20 | 20 | ||
| 21 | - @Schema(description = "社交平台的类型,参见 UserSocialTypeEnum 枚举值", required = true, example = "10") | 21 | + @Schema(description = "社交平台的类型,参见 UserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 22 | @InEnum(SocialTypeEnum.class) | 22 | @InEnum(SocialTypeEnum.class) |
| 23 | @NotNull(message = "社交平台的类型不能为空") | 23 | @NotNull(message = "社交平台的类型不能为空") |
| 24 | private Integer type; | 24 | private Integer type; |
| 25 | 25 | ||
| 26 | - @Schema(description = "授权码", required = true, example = "1024") | 26 | + @Schema(description = "授权码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 27 | @NotEmpty(message = "授权码不能为空") | 27 | @NotEmpty(message = "授权码不能为空") |
| 28 | private String code; | 28 | private String code; |
| 29 | 29 | ||
| 30 | - @Schema(description = "state", required = true, example = "9b2ffbc1-7425-4155-9894-9d5c08541d62") | 30 | + @Schema(description = "state", requiredMode = Schema.RequiredMode.REQUIRED, example = "9b2ffbc1-7425-4155-9894-9d5c08541d62") |
| 31 | @NotEmpty(message = "state 不能为空") | 31 | @NotEmpty(message = "state 不能为空") |
| 32 | private String state; | 32 | private String state; |
| 33 | 33 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/socail/vo/SocialUserUnbindReqVO.java
| @@ -18,12 +18,12 @@ import javax.validation.constraints.NotNull; | @@ -18,12 +18,12 @@ import javax.validation.constraints.NotNull; | ||
| 18 | @Builder | 18 | @Builder |
| 19 | public class SocialUserUnbindReqVO { | 19 | public class SocialUserUnbindReqVO { |
| 20 | 20 | ||
| 21 | - @Schema(description = "社交平台的类型,参见 UserSocialTypeEnum 枚举值", required = true, example = "10") | 21 | + @Schema(description = "社交平台的类型,参见 UserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 22 | @InEnum(SocialTypeEnum.class) | 22 | @InEnum(SocialTypeEnum.class) |
| 23 | @NotNull(message = "社交平台的类型不能为空") | 23 | @NotNull(message = "社交平台的类型不能为空") |
| 24 | private Integer type; | 24 | private Integer type; |
| 25 | 25 | ||
| 26 | - @Schema(description = "社交用户的 openid", required = true, example = "IPRmJ0wvBptiPIlGEZiPewGwiEiE") | 26 | + @Schema(description = "社交用户的 openid", requiredMode = Schema.RequiredMode.REQUIRED, example = "IPRmJ0wvBptiPIlGEZiPewGwiEiE") |
| 27 | @NotEmpty(message = "社交用户的 openid 不能为空") | 27 | @NotEmpty(message = "社交用户的 openid 不能为空") |
| 28 | private String openid; | 28 | private String openid; |
| 29 | 29 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenant/vo/packages/TenantPackageBaseVO.java
| @@ -13,18 +13,18 @@ import java.util.Set; | @@ -13,18 +13,18 @@ import java.util.Set; | ||
| 13 | @Data | 13 | @Data |
| 14 | public class TenantPackageBaseVO { | 14 | public class TenantPackageBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "套餐名", required = true, example = "VIP") | 16 | + @Schema(description = "套餐名", requiredMode = Schema.RequiredMode.REQUIRED, example = "VIP") |
| 17 | @NotNull(message = "套餐名不能为空") | 17 | @NotNull(message = "套餐名不能为空") |
| 18 | private String name; | 18 | private String name; |
| 19 | 19 | ||
| 20 | - @Schema(description = "状态,参见 CommonStatusEnum 枚举", required = true, example = "1") | 20 | + @Schema(description = "状态,参见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 21 | @NotNull(message = "状态不能为空") | 21 | @NotNull(message = "状态不能为空") |
| 22 | private Integer status; | 22 | private Integer status; |
| 23 | 23 | ||
| 24 | @Schema(description = "备注", example = "好") | 24 | @Schema(description = "备注", example = "好") |
| 25 | private String remark; | 25 | private String remark; |
| 26 | 26 | ||
| 27 | - @Schema(description = "关联的菜单编号", required = true) | 27 | + @Schema(description = "关联的菜单编号", requiredMode = Schema.RequiredMode.REQUIRED) |
| 28 | @NotNull(message = "关联的菜单编号不能为空") | 28 | @NotNull(message = "关联的菜单编号不能为空") |
| 29 | private Set<Long> menuIds; | 29 | private Set<Long> menuIds; |
| 30 | 30 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenant/vo/packages/TenantPackageRespVO.java
| @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | @@ -13,10 +13,10 @@ import java.time.LocalDateTime; | ||
| 13 | @ToString(callSuper = true) | 13 | @ToString(callSuper = true) |
| 14 | public class TenantPackageRespVO extends TenantPackageBaseVO { | 14 | public class TenantPackageRespVO extends TenantPackageBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "套餐编号", required = true, example = "1024") | 16 | + @Schema(description = "套餐编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "创建时间", required = true) | 19 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | private LocalDateTime createTime; | 20 | private LocalDateTime createTime; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenant/vo/packages/TenantPackageSimpleRespVO.java
| @@ -9,11 +9,11 @@ import javax.validation.constraints.NotNull; | @@ -9,11 +9,11 @@ import javax.validation.constraints.NotNull; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class TenantPackageSimpleRespVO { | 10 | public class TenantPackageSimpleRespVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "套餐编号", required = true, example = "1024") | 12 | + @Schema(description = "套餐编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 13 | @NotNull(message = "套餐编号不能为空") | 13 | @NotNull(message = "套餐编号不能为空") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "套餐名", required = true, example = "VIP") | 16 | + @Schema(description = "套餐名", requiredMode = Schema.RequiredMode.REQUIRED, example = "VIP") |
| 17 | @NotNull(message = "套餐名不能为空") | 17 | @NotNull(message = "套餐名不能为空") |
| 18 | private String name; | 18 | private String name; |
| 19 | 19 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenant/vo/packages/TenantPackageUpdateReqVO.java
| @@ -10,7 +10,7 @@ import javax.validation.constraints.*; | @@ -10,7 +10,7 @@ import javax.validation.constraints.*; | ||
| 10 | @ToString(callSuper = true) | 10 | @ToString(callSuper = true) |
| 11 | public class TenantPackageUpdateReqVO extends TenantPackageBaseVO { | 11 | public class TenantPackageUpdateReqVO extends TenantPackageBaseVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "套餐编号", required = true, example = "1024") | 13 | + @Schema(description = "套餐编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 14 | @NotNull(message = "套餐编号不能为空") | 14 | @NotNull(message = "套餐编号不能为空") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenant/vo/tenant/TenantBaseVO.java
| @@ -13,33 +13,33 @@ import java.time.LocalDateTime; | @@ -13,33 +13,33 @@ import java.time.LocalDateTime; | ||
| 13 | @Data | 13 | @Data |
| 14 | public class TenantBaseVO { | 14 | public class TenantBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "租户名", required = true, example = "芋道") | 16 | + @Schema(description = "租户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 17 | @NotNull(message = "租户名不能为空") | 17 | @NotNull(message = "租户名不能为空") |
| 18 | private String name; | 18 | private String name; |
| 19 | 19 | ||
| 20 | - @Schema(description = "联系人", required = true, example = "芋艿") | 20 | + @Schema(description = "联系人", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿") |
| 21 | @NotNull(message = "联系人不能为空") | 21 | @NotNull(message = "联系人不能为空") |
| 22 | private String contactName; | 22 | private String contactName; |
| 23 | 23 | ||
| 24 | @Schema(description = "联系手机", example = "15601691300") | 24 | @Schema(description = "联系手机", example = "15601691300") |
| 25 | private String contactMobile; | 25 | private String contactMobile; |
| 26 | 26 | ||
| 27 | - @Schema(description = "租户状态", required = true, example = "1") | 27 | + @Schema(description = "租户状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 28 | @NotNull(message = "租户状态") | 28 | @NotNull(message = "租户状态") |
| 29 | private Integer status; | 29 | private Integer status; |
| 30 | 30 | ||
| 31 | @Schema(description = "绑定域名", example = "https://www.iocoder.cn") | 31 | @Schema(description = "绑定域名", example = "https://www.iocoder.cn") |
| 32 | private String domain; | 32 | private String domain; |
| 33 | 33 | ||
| 34 | - @Schema(description = "租户套餐编号", required = true, example = "1024") | 34 | + @Schema(description = "租户套餐编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 35 | @NotNull(message = "租户套餐编号不能为空") | 35 | @NotNull(message = "租户套餐编号不能为空") |
| 36 | private Long packageId; | 36 | private Long packageId; |
| 37 | 37 | ||
| 38 | - @Schema(description = "过期时间", required = true) | 38 | + @Schema(description = "过期时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 39 | @NotNull(message = "过期时间不能为空") | 39 | @NotNull(message = "过期时间不能为空") |
| 40 | private LocalDateTime expireTime; | 40 | private LocalDateTime expireTime; |
| 41 | 41 | ||
| 42 | - @Schema(description = "账号数量", required = true, example = "1024") | 42 | + @Schema(description = "账号数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 43 | @NotNull(message = "账号数量不能为空") | 43 | @NotNull(message = "账号数量不能为空") |
| 44 | private Integer accountCount; | 44 | private Integer accountCount; |
| 45 | 45 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenant/vo/tenant/TenantCreateReqVO.java
| @@ -15,13 +15,13 @@ import javax.validation.constraints.Size; | @@ -15,13 +15,13 @@ import javax.validation.constraints.Size; | ||
| 15 | @ToString(callSuper = true) | 15 | @ToString(callSuper = true) |
| 16 | public class TenantCreateReqVO extends TenantBaseVO { | 16 | public class TenantCreateReqVO extends TenantBaseVO { |
| 17 | 17 | ||
| 18 | - @Schema(description = "用户账号", required = true, example = "yudao") | 18 | + @Schema(description = "用户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudao") |
| 19 | @NotBlank(message = "用户账号不能为空") | 19 | @NotBlank(message = "用户账号不能为空") |
| 20 | @Pattern(regexp = "^[a-zA-Z0-9]{4,30}$", message = "用户账号由 数字、字母 组成") | 20 | @Pattern(regexp = "^[a-zA-Z0-9]{4,30}$", message = "用户账号由 数字、字母 组成") |
| 21 | @Size(min = 4, max = 30, message = "用户账号长度为 4-30 个字符") | 21 | @Size(min = 4, max = 30, message = "用户账号长度为 4-30 个字符") |
| 22 | private String username; | 22 | private String username; |
| 23 | 23 | ||
| 24 | - @Schema(description = "密码", required = true, example = "123456") | 24 | + @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456") |
| 25 | @NotEmpty(message = "密码不能为空") | 25 | @NotEmpty(message = "密码不能为空") |
| 26 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") | 26 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") |
| 27 | private String password; | 27 | private String password; |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenant/vo/tenant/TenantRespVO.java
| @@ -11,10 +11,10 @@ import java.time.LocalDateTime; | @@ -11,10 +11,10 @@ import java.time.LocalDateTime; | ||
| 11 | @ToString(callSuper = true) | 11 | @ToString(callSuper = true) |
| 12 | public class TenantRespVO extends TenantBaseVO { | 12 | public class TenantRespVO extends TenantBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "租户编号", required = true, example = "1024") | 14 | + @Schema(description = "租户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "创建时间", required = true) | 17 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 18 | private LocalDateTime createTime; | 18 | private LocalDateTime createTime; |
| 19 | 19 | ||
| 20 | } | 20 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenant/vo/tenant/TenantUpdateReqVO.java
| @@ -10,7 +10,7 @@ import javax.validation.constraints.*; | @@ -10,7 +10,7 @@ import javax.validation.constraints.*; | ||
| 10 | @ToString(callSuper = true) | 10 | @ToString(callSuper = true) |
| 11 | public class TenantUpdateReqVO extends TenantBaseVO { | 11 | public class TenantUpdateReqVO extends TenantBaseVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "租户编号", required = true, example = "1024") | 13 | + @Schema(description = "租户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 14 | @NotNull(message = "租户编号不能为空") | 14 | @NotNull(message = "租户编号不能为空") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/profile/UserProfileRespVO.java
| @@ -18,19 +18,19 @@ import java.util.List; | @@ -18,19 +18,19 @@ import java.util.List; | ||
| 18 | @Schema(description = "管理后台 - 用户个人中心信息 Response VO") | 18 | @Schema(description = "管理后台 - 用户个人中心信息 Response VO") |
| 19 | public class UserProfileRespVO extends UserBaseVO { | 19 | public class UserProfileRespVO extends UserBaseVO { |
| 20 | 20 | ||
| 21 | - @Schema(description = "用户编号", required = true, example = "1") | 21 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 22 | private Long id; | 22 | private Long id; |
| 23 | 23 | ||
| 24 | - @Schema(description = "状态,参见 CommonStatusEnum 枚举类", required = true, example = "1") | 24 | + @Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 25 | private Integer status; | 25 | private Integer status; |
| 26 | 26 | ||
| 27 | - @Schema(description = "最后登录 IP", required = true, example = "192.168.1.1") | 27 | + @Schema(description = "最后登录 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "192.168.1.1") |
| 28 | private String loginIp; | 28 | private String loginIp; |
| 29 | 29 | ||
| 30 | - @Schema(description = "最后登录时间", required = true, example = "时间戳格式") | 30 | + @Schema(description = "最后登录时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
| 31 | private LocalDateTime loginDate; | 31 | private LocalDateTime loginDate; |
| 32 | 32 | ||
| 33 | - @Schema(description = "创建时间", required = true, example = "时间戳格式") | 33 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
| 34 | private LocalDateTime createTime; | 34 | private LocalDateTime createTime; |
| 35 | 35 | ||
| 36 | /** | 36 | /** |
| @@ -56,10 +56,10 @@ public class UserProfileRespVO extends UserBaseVO { | @@ -56,10 +56,10 @@ public class UserProfileRespVO extends UserBaseVO { | ||
| 56 | @Data | 56 | @Data |
| 57 | public static class Role { | 57 | public static class Role { |
| 58 | 58 | ||
| 59 | - @Schema(description = "角色编号", required = true, example = "1") | 59 | + @Schema(description = "角色编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 60 | private Long id; | 60 | private Long id; |
| 61 | 61 | ||
| 62 | - @Schema(description = "角色名称", required = true, example = "普通角色") | 62 | + @Schema(description = "角色名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "普通角色") |
| 63 | private String name; | 63 | private String name; |
| 64 | 64 | ||
| 65 | } | 65 | } |
| @@ -68,10 +68,10 @@ public class UserProfileRespVO extends UserBaseVO { | @@ -68,10 +68,10 @@ public class UserProfileRespVO extends UserBaseVO { | ||
| 68 | @Data | 68 | @Data |
| 69 | public static class Dept { | 69 | public static class Dept { |
| 70 | 70 | ||
| 71 | - @Schema(description = "部门编号", required = true, example = "1") | 71 | + @Schema(description = "部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 72 | private Long id; | 72 | private Long id; |
| 73 | 73 | ||
| 74 | - @Schema(description = "部门名称", required = true, example = "研发部") | 74 | + @Schema(description = "部门名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "研发部") |
| 75 | private String name; | 75 | private String name; |
| 76 | 76 | ||
| 77 | } | 77 | } |
| @@ -80,10 +80,10 @@ public class UserProfileRespVO extends UserBaseVO { | @@ -80,10 +80,10 @@ public class UserProfileRespVO extends UserBaseVO { | ||
| 80 | @Data | 80 | @Data |
| 81 | public static class Post { | 81 | public static class Post { |
| 82 | 82 | ||
| 83 | - @Schema(description = "岗位编号", required = true, example = "1") | 83 | + @Schema(description = "岗位编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 84 | private Long id; | 84 | private Long id; |
| 85 | 85 | ||
| 86 | - @Schema(description = "岗位名称", required = true, example = "开发") | 86 | + @Schema(description = "岗位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "开发") |
| 87 | private String name; | 87 | private String name; |
| 88 | 88 | ||
| 89 | } | 89 | } |
| @@ -92,10 +92,10 @@ public class UserProfileRespVO extends UserBaseVO { | @@ -92,10 +92,10 @@ public class UserProfileRespVO extends UserBaseVO { | ||
| 92 | @Data | 92 | @Data |
| 93 | public static class SocialUser { | 93 | public static class SocialUser { |
| 94 | 94 | ||
| 95 | - @Schema(description = "社交平台的类型,参见 SocialTypeEnum 枚举类", required = true, example = "10") | 95 | + @Schema(description = "社交平台的类型,参见 SocialTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| 96 | private Integer type; | 96 | private Integer type; |
| 97 | 97 | ||
| 98 | - @Schema(description = "社交用户的 openid", required = true, example = "IPRmJ0wvBptiPIlGEZiPewGwiEiE") | 98 | + @Schema(description = "社交用户的 openid", requiredMode = Schema.RequiredMode.REQUIRED, example = "IPRmJ0wvBptiPIlGEZiPewGwiEiE") |
| 99 | private String openid; | 99 | private String openid; |
| 100 | 100 | ||
| 101 | } | 101 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/profile/UserProfileUpdatePasswordReqVO.java
| @@ -10,12 +10,12 @@ import javax.validation.constraints.NotEmpty; | @@ -10,12 +10,12 @@ import javax.validation.constraints.NotEmpty; | ||
| 10 | @Data | 10 | @Data |
| 11 | public class UserProfileUpdatePasswordReqVO { | 11 | public class UserProfileUpdatePasswordReqVO { |
| 12 | 12 | ||
| 13 | - @Schema(description = "旧密码", required = true, example = "123456") | 13 | + @Schema(description = "旧密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456") |
| 14 | @NotEmpty(message = "旧密码不能为空") | 14 | @NotEmpty(message = "旧密码不能为空") |
| 15 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") | 15 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") |
| 16 | private String oldPassword; | 16 | private String oldPassword; |
| 17 | 17 | ||
| 18 | - @Schema(description = "新密码", required = true, example = "654321") | 18 | + @Schema(description = "新密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "654321") |
| 19 | @NotEmpty(message = "新密码不能为空") | 19 | @NotEmpty(message = "新密码不能为空") |
| 20 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") | 20 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") |
| 21 | private String newPassword; | 21 | private String newPassword; |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/profile/UserProfileUpdateReqVO.java
| @@ -11,7 +11,7 @@ import javax.validation.constraints.Size; | @@ -11,7 +11,7 @@ import javax.validation.constraints.Size; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class UserProfileUpdateReqVO { | 12 | public class UserProfileUpdateReqVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "用户昵称", required = true, example = "芋艿") | 14 | + @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿") |
| 15 | @Size(max = 30, message = "用户昵称长度不能超过 30 个字符") | 15 | @Size(max = 30, message = "用户昵称长度不能超过 30 个字符") |
| 16 | private String nickname; | 16 | private String nickname; |
| 17 | 17 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/user/UserBaseVO.java
| @@ -17,13 +17,13 @@ import java.util.Set; | @@ -17,13 +17,13 @@ import java.util.Set; | ||
| 17 | @Data | 17 | @Data |
| 18 | public class UserBaseVO { | 18 | public class UserBaseVO { |
| 19 | 19 | ||
| 20 | - @Schema(description = "用户账号", required = true, example = "yudao") | 20 | + @Schema(description = "用户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudao") |
| 21 | @NotBlank(message = "用户账号不能为空") | 21 | @NotBlank(message = "用户账号不能为空") |
| 22 | @Pattern(regexp = "^[a-zA-Z0-9]{4,30}$", message = "用户账号由 数字、字母 组成") | 22 | @Pattern(regexp = "^[a-zA-Z0-9]{4,30}$", message = "用户账号由 数字、字母 组成") |
| 23 | @Size(min = 4, max = 30, message = "用户账号长度为 4-30 个字符") | 23 | @Size(min = 4, max = 30, message = "用户账号长度为 4-30 个字符") |
| 24 | private String username; | 24 | private String username; |
| 25 | 25 | ||
| 26 | - @Schema(description = "用户昵称", required = true, example = "芋艿") | 26 | + @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿") |
| 27 | @Size(max = 30, message = "用户昵称长度不能超过30个字符") | 27 | @Size(max = 30, message = "用户昵称长度不能超过30个字符") |
| 28 | private String nickname; | 28 | private String nickname; |
| 29 | 29 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/user/UserCreateReqVO.java
| @@ -12,7 +12,7 @@ import javax.validation.constraints.NotEmpty; | @@ -12,7 +12,7 @@ import javax.validation.constraints.NotEmpty; | ||
| 12 | @EqualsAndHashCode(callSuper = true) | 12 | @EqualsAndHashCode(callSuper = true) |
| 13 | public class UserCreateReqVO extends UserBaseVO { | 13 | public class UserCreateReqVO extends UserBaseVO { |
| 14 | 14 | ||
| 15 | - @Schema(description = "密码", required = true, example = "123456") | 15 | + @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456") |
| 16 | @NotEmpty(message = "密码不能为空") | 16 | @NotEmpty(message = "密码不能为空") |
| 17 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") | 17 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") |
| 18 | private String password; | 18 | private String password; |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/user/UserImportRespVO.java
| @@ -12,13 +12,13 @@ import java.util.Map; | @@ -12,13 +12,13 @@ import java.util.Map; | ||
| 12 | @Builder | 12 | @Builder |
| 13 | public class UserImportRespVO { | 13 | public class UserImportRespVO { |
| 14 | 14 | ||
| 15 | - @Schema(description = "创建成功的用户名数组", required = true) | 15 | + @Schema(description = "创建成功的用户名数组", requiredMode = Schema.RequiredMode.REQUIRED) |
| 16 | private List<String> createUsernames; | 16 | private List<String> createUsernames; |
| 17 | 17 | ||
| 18 | - @Schema(description = "更新成功的用户名数组", required = true) | 18 | + @Schema(description = "更新成功的用户名数组", requiredMode = Schema.RequiredMode.REQUIRED) |
| 19 | private List<String> updateUsernames; | 19 | private List<String> updateUsernames; |
| 20 | 20 | ||
| 21 | - @Schema(description = "导入失败的用户集合,key 为用户名,value 为失败原因", required = true) | 21 | + @Schema(description = "导入失败的用户集合,key 为用户名,value 为失败原因", requiredMode = Schema.RequiredMode.REQUIRED) |
| 22 | private Map<String, String> failureUsernames; | 22 | private Map<String, String> failureUsernames; |
| 23 | 23 | ||
| 24 | } | 24 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/user/UserPageItemRespVO.java
| @@ -22,10 +22,10 @@ public class UserPageItemRespVO extends UserRespVO { | @@ -22,10 +22,10 @@ public class UserPageItemRespVO extends UserRespVO { | ||
| 22 | @Data | 22 | @Data |
| 23 | public static class Dept { | 23 | public static class Dept { |
| 24 | 24 | ||
| 25 | - @Schema(description = "部门编号", required = true, example = "1") | 25 | + @Schema(description = "部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 26 | private Long id; | 26 | private Long id; |
| 27 | 27 | ||
| 28 | - @Schema(description = "部门名称", required = true, example = "研发部") | 28 | + @Schema(description = "部门名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "研发部") |
| 29 | private String name; | 29 | private String name; |
| 30 | 30 | ||
| 31 | } | 31 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/user/UserRespVO.java
| @@ -13,19 +13,19 @@ import java.time.LocalDateTime; | @@ -13,19 +13,19 @@ import java.time.LocalDateTime; | ||
| 13 | @EqualsAndHashCode(callSuper = true) | 13 | @EqualsAndHashCode(callSuper = true) |
| 14 | public class UserRespVO extends UserBaseVO { | 14 | public class UserRespVO extends UserBaseVO { |
| 15 | 15 | ||
| 16 | - @Schema(description = "用户编号", required = true, example = "1") | 16 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @Schema(description = "状态,参见 CommonStatusEnum 枚举类", required = true, example = "1") | 19 | + @Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 20 | private Integer status; | 20 | private Integer status; |
| 21 | 21 | ||
| 22 | - @Schema(description = "最后登录 IP", required = true, example = "192.168.1.1") | 22 | + @Schema(description = "最后登录 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "192.168.1.1") |
| 23 | private String loginIp; | 23 | private String loginIp; |
| 24 | 24 | ||
| 25 | - @Schema(description = "最后登录时间", required = true, example = "时间戳格式") | 25 | + @Schema(description = "最后登录时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
| 26 | private LocalDateTime loginDate; | 26 | private LocalDateTime loginDate; |
| 27 | 27 | ||
| 28 | - @Schema(description = "创建时间", required = true, example = "时间戳格式") | 28 | + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
| 29 | private LocalDateTime createTime; | 29 | private LocalDateTime createTime; |
| 30 | 30 | ||
| 31 | } | 31 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/user/UserSimpleRespVO.java
| @@ -11,10 +11,10 @@ import lombok.NoArgsConstructor; | @@ -11,10 +11,10 @@ import lombok.NoArgsConstructor; | ||
| 11 | @AllArgsConstructor | 11 | @AllArgsConstructor |
| 12 | public class UserSimpleRespVO { | 12 | public class UserSimpleRespVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "用户编号", required = true, example = "1024") | 14 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @Schema(description = "用户昵称", required = true, example = "芋道") | 17 | + @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
| 18 | private String nickname; | 18 | private String nickname; |
| 19 | 19 | ||
| 20 | } | 20 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/user/UserUpdatePasswordReqVO.java
| @@ -11,11 +11,11 @@ import javax.validation.constraints.NotNull; | @@ -11,11 +11,11 @@ import javax.validation.constraints.NotNull; | ||
| 11 | @Data | 11 | @Data |
| 12 | public class UserUpdatePasswordReqVO { | 12 | public class UserUpdatePasswordReqVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "用户编号", required = true, example = "1024") | 14 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | @NotNull(message = "用户编号不能为空") | 15 | @NotNull(message = "用户编号不能为空") |
| 16 | private Long id; | 16 | private Long id; |
| 17 | 17 | ||
| 18 | - @Schema(description = "密码", required = true, example = "123456") | 18 | + @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456") |
| 19 | @NotEmpty(message = "密码不能为空") | 19 | @NotEmpty(message = "密码不能为空") |
| 20 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") | 20 | @Length(min = 4, max = 16, message = "密码长度为 4-16 位") |
| 21 | private String password; | 21 | private String password; |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/user/UserUpdateReqVO.java
| @@ -11,7 +11,7 @@ import javax.validation.constraints.NotNull; | @@ -11,7 +11,7 @@ import javax.validation.constraints.NotNull; | ||
| 11 | @EqualsAndHashCode(callSuper = true) | 11 | @EqualsAndHashCode(callSuper = true) |
| 12 | public class UserUpdateReqVO extends UserBaseVO { | 12 | public class UserUpdateReqVO extends UserBaseVO { |
| 13 | 13 | ||
| 14 | - @Schema(description = "用户编号", required = true, example = "1024") | 14 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 15 | @NotNull(message = "用户编号不能为空") | 15 | @NotNull(message = "用户编号不能为空") |
| 16 | private Long id; | 16 | private Long id; |
| 17 | 17 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/user/UserUpdateStatusReqVO.java
| @@ -9,11 +9,11 @@ import javax.validation.constraints.NotNull; | @@ -9,11 +9,11 @@ import javax.validation.constraints.NotNull; | ||
| 9 | @Data | 9 | @Data |
| 10 | public class UserUpdateStatusReqVO { | 10 | public class UserUpdateStatusReqVO { |
| 11 | 11 | ||
| 12 | - @Schema(description = "用户编号", required = true, example = "1024") | 12 | + @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| 13 | @NotNull(message = "角色编号不能为空") | 13 | @NotNull(message = "角色编号不能为空") |
| 14 | private Long id; | 14 | private Long id; |
| 15 | 15 | ||
| 16 | - @Schema(description = "状态,见 CommonStatusEnum 枚举", required = true, example = "1") | 16 | + @Schema(description = "状态,见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 17 | @NotNull(message = "状态不能为空") | 17 | @NotNull(message = "状态不能为空") |
| 18 | // @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") | 18 | // @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") |
| 19 | private Integer status; | 19 | private Integer status; |
yudao-server/pom.xml
| @@ -111,7 +111,7 @@ | @@ -111,7 +111,7 @@ | ||
| 111 | <plugin> | 111 | <plugin> |
| 112 | <groupId>org.springframework.boot</groupId> | 112 | <groupId>org.springframework.boot</groupId> |
| 113 | <artifactId>spring-boot-maven-plugin</artifactId> | 113 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 114 | - <version>2.7.10</version> <!-- 如果 spring.boot.version 版本修改,则这里也要跟着修改 --> | 114 | + <version>2.7.11</version> <!-- 如果 spring.boot.version 版本修改,则这里也要跟着修改 --> |
| 115 | <configuration> | 115 | <configuration> |
| 116 | <fork>true</fork> | 116 | <fork>true</fork> |
| 117 | </configuration> | 117 | </configuration> |