package com.doumee.service.system; import com.doumee.core.model.PageData; import com.doumee.core.model.PageWrap; import com.doumee.dao.system.dto.QuerySystemPermissionDTO; import com.doumee.dao.system.model.SystemPermission; import com.doumee.dao.system.vo.SystemPermissionListVO; import java.util.List; /** * 系统权限Service定义 * @author Eva.Caesar Liu * @date 2023/03/21 14:49 */ public interface SystemPermissionService { /** * 创建 * @author Eva.Caesar Liu * @date 2023/03/21 14:49 */ Integer create(SystemPermission systemPermission); /** * 主键删除 * @author Eva.Caesar Liu * @date 2023/03/21 14:49 */ void deleteById(Integer id); /** * 批量主键删除 * @author Eva.Caesar Liu * @date 2023/03/21 14:49 */ void deleteByIdInBatch(List ids); /** * 主键更新 * @author Eva.Caesar Liu * @date 2023/03/21 14:49 */ void updateById(SystemPermission systemPermission); /** * 批量主键更新 * @author Eva.Caesar Liu * @date 2023/03/21 14:49 */ void updateByIdInBatch(List systemPermissions); /** * 主键查询 * @author Eva.Caesar Liu * @date 2023/03/21 14:49 */ SystemPermission findById(Integer id); /** * 根据用户ID查询 * @author Eva.Caesar Liu * @date 2023/03/21 14:49 */ List findByUserId(Integer userId); /** * 根据角色ID查询 * @author Eva.Caesar Liu * @date 2023/03/21 14:49 */ List findByRoleId(Integer roleId); /** * 条件查询单条记录 * @author Eva.Caesar Liu * @date 2023/03/21 14:49 */ SystemPermission findOne(SystemPermission systemPermission); /** * 条件查询 * @author Eva.Caesar Liu * @date 2023/03/21 14:49 */ List findList(SystemPermission systemPermission); /** * 分页查询 * @author Eva.Caesar Liu * @date 2023/03/21 14:49 */ PageData findPage(PageWrap pageWrap); /** * 条件统计 * @author Eva.Caesar Liu * @date 2023/03/21 14:49 */ long count(SystemPermission systemPermission); }