Files
novel-plus/novel-admin/src/main/java/com/java2nb/system/dao/RoleMenuDao.java
2025-07-17 19:03:58 +08:00

43 lines
804 B
Java

package com.java2nb.system.dao;
import com.java2nb.common.annotation.ValidateSortOrder;
import com.java2nb.system.domain.RoleMenuDO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
/**
* 角色与菜单对应关系
* @author xiongxy
* @email 1179705413@qq.com
* @date 2019-10-03 11:08:59
*/
@Mapper
public interface RoleMenuDao {
RoleMenuDO get(Long id);
List<RoleMenuDO> list(@ValidateSortOrder 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);
}