RoleDao.java
816 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
/**
* Copyright © 2015-2018 ODM All rights reserved.
*/
package com.thinkgem.jeesite.modules.sys.dao;
import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.sys.entity.Role;
/**
* 角色DAO接口
* @author ThinkGem
* @version 2013-12-05
*/
@MyBatisDao
public interface RoleDao extends CrudDao<Role> {
public Role getByName(Role role);
public Role getByEnname(Role role);
/**
* 维护角色与菜单权限关系
* @param role
* @return
*/
public int deleteRoleMenu(Role role);
public int insertRoleMenu(Role role);
/**
* 维护角色与公司部门关系
* @param role
* @return
*/
public int deleteRoleOffice(Role role);
public int insertRoleOffice(Role role);
}