RoleMenuDao.java
722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.bootdo.system.dao;
import com.bootdo.system.domain.RoleMenuDO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
/**
* 角色与菜单对应关系
* @author chglee
* @email 1992lcg@163.com
* @date 2017-10-03 11:08:59
*/
@Mapper
public interface RoleMenuDao {
RoleMenuDO get(Long id);
List<RoleMenuDO> list(Map<String,Object> map);
int count(Map<String,Object> map);
int save(RoleMenuDO roleMenu);
int update(RoleMenuDO roleMenu);
int remove(Long id);
int batchRemove(Long[] ids);
List<Long> listMenuIdByRoleId(Long roleId);
int removeByRoleId(Long roleId);
int removeByMenuId(Long menuId);
int batchSave(List<RoleMenuDO> list);
}