mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 00:57:13 +08:00 
			
		
		
		
	fix: 移除枚举类重写的 toString 方法,解决由此引发的代码生成错误
This commit is contained in:
		| @@ -57,9 +57,4 @@ public enum DataScopeEnum implements BaseEnum<Integer> { | ||||
|  | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -44,9 +44,4 @@ public enum DisEnableStatusEnum implements BaseEnum<Integer> { | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|     private final String color; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -47,9 +47,4 @@ public enum GenderEnum implements BaseEnum<Integer> { | ||||
|  | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -47,9 +47,4 @@ public enum MenuTypeEnum implements BaseEnum<Integer> { | ||||
|  | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -39,9 +39,4 @@ public enum MessageTypeEnum implements BaseEnum<Integer> { | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|     private final String color; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -44,9 +44,4 @@ public enum SuccessFailureStatusEnum implements BaseEnum<Integer> { | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|     private final String color; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -88,9 +88,4 @@ public enum FormTypeEnum implements BaseEnum<Integer> { | ||||
|  | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -103,9 +103,4 @@ public enum QueryTypeEnum implements BaseEnum<Integer> { | ||||
|  | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -47,9 +47,4 @@ public enum JobBlockStrategyEnum implements BaseEnum<Integer> { | ||||
|  | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -132,9 +132,4 @@ public enum JobExecuteReasonEnum implements BaseEnum<Integer> { | ||||
|  | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -64,9 +64,4 @@ public enum JobExecuteStatusEnum implements BaseEnum<Integer> { | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|     private final String color; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -52,9 +52,4 @@ public enum JobRouteStrategyEnum implements BaseEnum<Integer> { | ||||
|  | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -44,9 +44,4 @@ public enum JobStatusEnum implements BaseEnum<Integer> { | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|     private final String color; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -49,9 +49,4 @@ public enum JobTaskTypeEnum implements BaseEnum<Integer> { | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|     private final String color; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -42,9 +42,4 @@ public enum JobTriggerTypeEnum implements BaseEnum<Integer> { | ||||
|  | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -65,11 +65,6 @@ public enum FileTypeEnum implements BaseEnum<Integer> { | ||||
|     private final String description; | ||||
|     private final List<String> extensions; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 根据扩展名查询 | ||||
|      * | ||||
|   | ||||
| @@ -51,11 +51,6 @@ public enum ImportPolicyEnum implements BaseEnum<Integer> { | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
|  | ||||
|     public boolean validate(ImportPolicyEnum importPolicy, String data, List<String> existList) { | ||||
|         return this == importPolicy && CollUtil.isNotEmpty(existList) && existList.contains(data); | ||||
|     } | ||||
|   | ||||
| @@ -42,9 +42,4 @@ public enum LogStatusEnum implements BaseEnum<Integer> { | ||||
|  | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -52,11 +52,6 @@ public enum NoticeStatusEnum implements BaseEnum<Integer> { | ||||
|     private final String description; | ||||
|     private final String color; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 获取公告状态 | ||||
|      * | ||||
|   | ||||
| @@ -42,9 +42,4 @@ public enum StorageTypeEnum implements BaseEnum<Integer> { | ||||
|  | ||||
|     private final Integer value; | ||||
|     private final String description; | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "%s: %s".formatted(this.value, this.description); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user