parent
303fdec4cf
commit
599c7d9360
@ -0,0 +1,22 @@
|
||||
package com.macro.mall.dao;
|
||||
|
||||
import com.macro.mall.model.UmsPermission;
|
||||
import com.macro.mall.model.UmsRolePermissionRelation;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 后台用户角色管理自定义Dao
|
||||
*/
|
||||
public interface UmsRolePermissionRelationDao {
|
||||
/**
|
||||
* 批量插入角色和权限关系
|
||||
*/
|
||||
int insertList(@Param("list")List<UmsRolePermissionRelation> list);
|
||||
|
||||
/**
|
||||
* 根据角色获取权限
|
||||
*/
|
||||
List<UmsPermission> getPermissionList(@Param("roleId") Long roleId);
|
||||
}
|
Loading…
Reference in new issue