package com.crm.ucard.service;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.ResultWithPagerDto;
import com.crm.rely.backend.core.dto.ucard.CardPermissionDto;
import com.crm.rely.backend.core.entity.custom.info.CustomInfoEntity;
import com.crm.rely.backend.core.entity.ucard.CardPermissionAddEntity;
import com.crm.rely.backend.core.entity.ucard.CardPermissionDeleteEntity;
import com.crm.rely.backend.core.entity.ucard.CardPermissionPageEntity;
import com.crm.rely.backend.core.entity.ucard.CardPermissionUpdateEntity;
import com.crm.rely.backend.exception.ServiceException;

public interface UcardPermissionService {
    /**
     * 新增权限规则
     */
    BaseResultDto addPermission(CardPermissionAddEntity entity) throws ServiceException;
    /**
     * 更新权限规则
     */
    BaseResultDto updatePermission(CardPermissionUpdateEntity entity) throws ServiceException;
    /**
     * 删除权限规则
     */
    BaseResultDto deletePermission(CardPermissionDeleteEntity entity) throws ServiceException;
    /**
     * 权限分页列表
     */
    ResultWithPagerDto<CardPermissionDto> queryPermissionPageList(CardPermissionPageEntity entity) throws ServiceException;
    /**
     * 权限校验
     */
    BaseResultDto permissionVerify(CustomInfoEntity entity) throws ServiceException;
}
