package cn.ysk.cashier.service;

import cn.ysk.cashier.dto.shop.TbShopPermissionDto;
import cn.ysk.cashier.mybatis.mapper.TbShopStaffPermissionMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.ysk.cashier.entity.TbShopStaffPermission;

import java.util.List;

/**
 * 店铺员工权限关联表(TbShopStaffPermission)表服务接口
 *
 * @author makejava
 * @since 2024-09-14 10:54:00
 */
public interface TbShopStaffPermissionService extends IService<TbShopStaffPermission> {

    boolean userHasPermission(Integer userId, String permissionCode);

    List<TbShopPermissionDto> getStaffPermissionList(Integer userId);

    void updateStaffPermission(Integer userId, Integer shopId, Integer staffId, List<TbShopPermissionDto> permissionIds);
}

