package jnpf.authority.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import jnpf.base.vo.PageListVO;
import jnpf.model.authority.dto.authorize.FtbPermissionAuthorizeVO;
import jnpf.model.authority.dto.person.FtbPermissionRoleBatchDeleteDTO;
import jnpf.model.authority.dto.post.FtbPermissionRolePostAddDTO;
import jnpf.model.authority.po.FtbPermissionRoleAuthorizePost;
import jnpf.model.authority.vo.post.FtbAuthorizedPostVO;

import java.util.List;

/**
*
*
*@Author: peng.hao
*@create: 2025/3/5
*
*/
public interface FtbPermissionRoleAuthorizePostService extends IService<FtbPermissionRoleAuthorizePost> {


    void addPost(FtbPermissionRolePostAddDTO ftbPermissionRolePostAddDTO);

    PageListVO<FtbAuthorizedPostVO> authorizePost(Page<FtbAuthorizedPostVO> page, String roleId);

    List<String> getRoleIdsByPostIds(FtbPermissionAuthorizeVO vo);

    void batchDelete(FtbPermissionRoleBatchDeleteDTO rolePersonDeleteDTO);

    void clearRoleByPostId(List<String> postIds);
}
