From 3de3417d145630e0cea8cf4980bc4cce112752d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=B0=91=E7=BF=94?= <971366405@qq.com> Date: Fri, 25 Oct 2024 13:56:21 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20FormTypeEnum=E7=9A=84fromValue?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FormTypeEnum的fromValue方法重构 --- .../com/youlai/boot/shared/codegen/enums/FormTypeEnum.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/youlai/boot/shared/codegen/enums/FormTypeEnum.java b/src/main/java/com/youlai/boot/shared/codegen/enums/FormTypeEnum.java index 4c3a2ecb..299b80aa 100644 --- a/src/main/java/com/youlai/boot/shared/codegen/enums/FormTypeEnum.java +++ b/src/main/java/com/youlai/boot/shared/codegen/enums/FormTypeEnum.java @@ -73,8 +73,8 @@ public enum FormTypeEnum implements IBaseEnum { @JsonCreator - public static QueryTypeEnum fromValue(Integer value) { - for (QueryTypeEnum type : QueryTypeEnum.values()) { + public static FormTypeEnum fromValue(Integer value) { + for (FormTypeEnum type : FormTypeEnum.values()) { if (type.getValue().equals(value)) { return type; }