package com.czg.service.account.service.impl;

import com.czg.account.entity.ShopPermission;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.czg.account.entity.ShopStaffPermission;
import com.czg.account.service.ShopStaffPermissionService;
import com.czg.service.account.mapper.ShopStaffPermissionMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 店铺员工权限关联表 服务层实现。
 *
 * @author zs
 * @since 2025-02-18
 */
@Service
public class ShopStaffPermissionServiceImpl extends ServiceImpl<ShopStaffPermissionMapper, ShopStaffPermission> implements ShopStaffPermissionService{

    @Override
    public List<ShopPermission> getPermissionByStaffId(Long shopId, Long staffId, Long userId) {
        return mapper.getPermissionByStaffId(shopId, staffId, userId);
    }
}
