From 0ded90dadfd25797a199cbcdfb8bfee417225e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=89=E6=9D=A5=E6=8A=80=E6=9C=AF?= <1490493387@qq.com> Date: Sun, 29 Aug 2021 01:07:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor(QueryModeEnum.java):=20=E7=A7=BB?= =?UTF-8?q?=E9=99=A4RESTful=E6=8E=A5=E5=8F=A3=E7=9A=84=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../youlai/common/enums/QueryModeEnum.java | 31 ------------------- 1 file changed, 31 deletions(-) delete mode 100644 youlai-common/common-core/src/main/java/com/youlai/common/enums/QueryModeEnum.java diff --git a/youlai-common/common-core/src/main/java/com/youlai/common/enums/QueryModeEnum.java b/youlai-common/common-core/src/main/java/com/youlai/common/enums/QueryModeEnum.java deleted file mode 100644 index d27fe290b..000000000 --- a/youlai-common/common-core/src/main/java/com/youlai/common/enums/QueryModeEnum.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.youlai.common.enums; - -import lombok.Getter; -import lombok.Setter; - -public enum QueryModeEnum { - - PAGE("page" ), // 分页查询 - LIST("list"), //列表查询 - TREE("tree"),//树形列表 - CASCADER("cascader"), // 级联列表 对应级联选择器的下拉格式数据 - ; - - @Getter - @Setter - private String code; - - QueryModeEnum(String code) { - this.code=code; - } - - public static QueryModeEnum getByCode(String code){ - for (QueryModeEnum value : values()) { - if (value.getCode().equals(code)) { - return value; - } - } - return PAGE; // 默认分页查询 - } - -}