package org.dromara.zhishu.service.impl;

import lombok.RequiredArgsConstructor;
import org.dromara.zhishu.domain.TInviteRelations;
import org.dromara.zhishu.domain.vo.ShopVo;
import org.dromara.zhishu.mapper.ShopMapper;
import org.dromara.zhishu.mapper.TInviteRelationsMapper;
import org.dromara.zhishu.service.ITInviteRelationsService;
import org.springframework.stereotype.Service;

import java.util.List;

@RequiredArgsConstructor
@Service
public class TInviteRelationsServiceImpl implements ITInviteRelationsService {

    private final TInviteRelationsMapper relationsMapper ;
    private final ShopMapper shopMapper ;


    @Override
    public List<TInviteRelations> selectByInviterId(Long inviterId) {
        return relationsMapper.selectByInviterId(inviterId);
    }

    @Override
    public List<ShopVo> selectUserShopList(Long userId) {

        return shopMapper.selectByUserId(userId);
    }

}
