mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 02:08:43 +08:00 
			
		
		
		
	!4 引入 swagger-annotations 1.5.22 排除knife4j3.0.2 中 swagger-annotations 解决依赖冲突
Merge pull request !4 from niu_dehua/unit_system_dept
This commit is contained in:
		
							
								
								
									
										10
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								pom.xml
									
									
									
									
									
								
							| @@ -25,6 +25,7 @@ | ||||
|         <spring.boot.version>2.4.2</spring.boot.version> | ||||
|         <!-- Web 相关 --> | ||||
|         <knife4j.version>3.0.2</knife4j.version> | ||||
|         <swagger-annotations.version>1.5.22</swagger-annotations.version> | ||||
|         <!-- DB 相关 --> | ||||
|         <mysql-connector-java.version>5.1.46</mysql-connector-java.version> | ||||
|         <druid.version>1.2.4</druid.version> | ||||
| @@ -104,8 +105,17 @@ | ||||
|                     <artifactId>guava</artifactId> | ||||
|                     <groupId>com.google.guava</groupId> | ||||
|                 </exclusion> | ||||
|                 <exclusion> | ||||
|                     <artifactId>swagger-annotations</artifactId> | ||||
|                     <groupId>io.swagger</groupId> | ||||
|                 </exclusion> | ||||
|             </exclusions> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>io.swagger</groupId> | ||||
|             <artifactId>swagger-annotations</artifactId> | ||||
|             <version>${swagger-annotations.version}</version> | ||||
|         </dependency> | ||||
|  | ||||
|         <!-- DB 相关 --> | ||||
|         <dependency> | ||||
|   | ||||
| @@ -10,15 +10,17 @@ import org.springframework.context.annotation.Configuration; | ||||
| import org.springframework.http.HttpHeaders; | ||||
| import springfox.documentation.builders.ApiInfoBuilder; | ||||
| import springfox.documentation.builders.PathSelectors; | ||||
| import springfox.documentation.service.*; | ||||
| import springfox.documentation.service.ApiInfo; | ||||
| import springfox.documentation.service.ApiKey; | ||||
| import springfox.documentation.service.AuthorizationScope; | ||||
| import springfox.documentation.service.Contact; | ||||
| import springfox.documentation.service.SecurityReference; | ||||
| import springfox.documentation.service.SecurityScheme; | ||||
| import springfox.documentation.spi.DocumentationType; | ||||
| import springfox.documentation.spi.service.contexts.SecurityContext; | ||||
| import springfox.documentation.spring.web.plugins.Docket; | ||||
| import springfox.documentation.swagger2.annotations.EnableSwagger2; | ||||
| import springfox.documentation.service.ApiKey; | ||||
|  | ||||
| import java.util.ArrayList; | ||||
| import java.util.Arrays; | ||||
| import java.util.Collections; | ||||
| import java.util.List; | ||||
|  | ||||
|   | ||||
| @@ -26,7 +26,7 @@ public class SysDeptBaseVO { | ||||
|  | ||||
|     @ApiModelProperty(value = "显示顺序不能为空", required = true, example = "1024") | ||||
|     @NotBlank(message = "显示顺序不能为空") | ||||
|     private String sort; | ||||
|     private Integer sort; | ||||
|  | ||||
|     @ApiModelProperty(value = "负责人", example = "芋道") | ||||
|     private String leader; | ||||
|   | ||||
| @@ -25,7 +25,7 @@ public class SysPostBaseVO { | ||||
|  | ||||
|     @ApiModelProperty(value = "显示顺序不能为空", required = true, example = "1024") | ||||
|     @NotBlank(message = "显示顺序不能为空") | ||||
|     private String sort; | ||||
|     private Integer sort; | ||||
|  | ||||
|     @ApiModelProperty(value = "状态", required = true, example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | ||||
|     private Integer status; | ||||
|   | ||||
| @@ -23,7 +23,7 @@ public class SysPostExcelVO { | ||||
|     private String name; | ||||
|  | ||||
|     @ExcelProperty("岗位排序") | ||||
|     private String sort; | ||||
|     private Integer sort; | ||||
|  | ||||
|     @ExcelProperty(value = "状态", converter = DictConvert.class) | ||||
|     @DictFormat(SYS_COMMON_STATUS) | ||||
|   | ||||
| @@ -29,7 +29,7 @@ public class SysMenuBaseVO { | ||||
|  | ||||
|     @ApiModelProperty(value = "显示顺序不能为空", required = true, example = "1024") | ||||
|     @NotBlank(message = "显示顺序不能为空") | ||||
|     private String sort; | ||||
|     private Integer sort; | ||||
|  | ||||
|     @ApiModelProperty(value = "父菜单 ID", required = true, example = "1024") | ||||
|     @NotNull(message = "父菜单 ID 不能为空") | ||||
|   | ||||
| @@ -25,7 +25,7 @@ public class SysRoleBaseVO { | ||||
|  | ||||
|     @ApiModelProperty(value = "显示顺序不能为空", required = true, example = "1024") | ||||
|     @NotBlank(message = "显示顺序不能为空") | ||||
|     private String sort; | ||||
|     private Integer sort; | ||||
|  | ||||
|     @ApiModelProperty(value = "角色类型", required = true, example = "1", notes = "见 SysRoleTypeEnum 枚举") | ||||
|     private Integer type; | ||||
|   | ||||
| @@ -35,7 +35,7 @@ public class SysDeptDO extends BaseDO { | ||||
|     /** | ||||
|      * 显示顺序 | ||||
|      */ | ||||
|     private String sort; | ||||
|     private Integer sort; | ||||
|     /** | ||||
|      * 负责人 | ||||
|      */ | ||||
|   | ||||
| @@ -34,7 +34,7 @@ public class SysPostDO extends BaseDO { | ||||
|     /** | ||||
|      * 岗位排序 | ||||
|      */ | ||||
|     private String sort; | ||||
|     private Integer sort; | ||||
|     /** | ||||
|      * 状态 | ||||
|      * | ||||
|   | ||||
| @@ -49,7 +49,7 @@ public class SysMenuDO extends BaseDO { | ||||
|     /** | ||||
|      * 显示顺序 | ||||
|      */ | ||||
|     private String sort; | ||||
|     private Integer sort; | ||||
|     /** | ||||
|      * 父菜单ID | ||||
|      */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 芋道源码
					芋道源码