mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 00:57:13 +08:00 
			
		
		
		
	refactor: 优化接口文档枚举参数显示效果
This commit is contained in:
		| @@ -88,4 +88,9 @@ public enum FormTypeEnum implements IBaseEnum<Integer> { | ||||
|  | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -103,4 +103,9 @@ public enum QueryTypeEnum implements IBaseEnum<Integer> { | ||||
|  | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -132,14 +132,13 @@ public class FieldConfigDO implements Serializable { | ||||
|     /** | ||||
|      * 表单类型 | ||||
|      */ | ||||
|     @Schema(description = "表单类型", type = "Integer", allowableValues = {"1", "2", "3", "4", "5", "6"}, example = "1") | ||||
|     @Schema(description = "表单类型", example = "1") | ||||
|     private FormTypeEnum formType; | ||||
|  | ||||
|     /** | ||||
|      * 查询方式 | ||||
|      */ | ||||
|     @Schema(description = "查询方式", type = "Integer", allowableValues = {"1", "2", "3", "4", "5", "6", "7", "8", "9", | ||||
|         "10", "11", "12", "13", "14"}, example = "1") | ||||
|     @Schema(description = "查询方式", example = "1") | ||||
|     private QueryTypeEnum queryType; | ||||
|  | ||||
|     /** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user