添加菜单接口.
This commit is contained in:
@@ -29,4 +29,6 @@ public class Const implements com.orion.lang.constant.Const {
|
||||
|
||||
public static final String INTRANET_IP = "内网IP";
|
||||
|
||||
public static final Long ROOT_MENU_ID = 0L;
|
||||
|
||||
}
|
||||
|
||||
@@ -27,7 +27,11 @@ public interface ErrorMessage {
|
||||
|
||||
String USERNAME_PRESENT = "用户名已存在";
|
||||
|
||||
String ROLE_ABSENT = "角色已存在";
|
||||
String ROLE_ABSENT = "角色不存在";
|
||||
|
||||
String PARENT_MENU_ABSENT = "父菜单不存在";
|
||||
|
||||
String PARENT_MENU_MUST_PARENT = "上级菜单必须为父菜单";
|
||||
|
||||
String DATA_ABSENT = "数据不存在";
|
||||
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
package com.orion.ops.framework.mybatis.core.query;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* 条件构建类
|
||||
@@ -34,4 +37,17 @@ public class Conditions {
|
||||
return new ValidateLambdaWrapper<>(clazz);
|
||||
}
|
||||
|
||||
/**
|
||||
* id list
|
||||
*
|
||||
* @param idMapping idMapping
|
||||
* @param ids ids
|
||||
* @param <T> T
|
||||
* @param <ID> ID
|
||||
* @return wrapper
|
||||
*/
|
||||
public static <T, ID> LambdaQueryWrapper<T> id(SFunction<T, ID> idMapping, Collection<ID> ids) {
|
||||
return new ValidateLambdaWrapper<T>().in(idMapping, ids);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user