package com.ylx.massage.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ylx.massage.domain.dto.MassageAllMerchantsDto;
import com.ylx.massage.domain.dto.MassageMerchantRecommendDto;
import com.ylx.massage.domain.vo.MassageAllMerchantsVo;
import com.ylx.massage.domain.vo.MassageProjectRecommendVo;
import com.ylx.massage.domain.vo.MerchantVo;
import com.ylx.massage.service.IMaProjectService;
import com.ylx.massage.service.IMaTechnicianService;
import com.ylx.massage.service.IMassageRecommendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 类描述：用户首页按摩推荐
 *
 * @author Administrator
 * @version 1.0
 * @date 2026/6/3 9:30
 */
@Service("massageRecommendService")
public class MassageRecommendServiceImpl implements IMassageRecommendService {
    @Autowired
    private IMaTechnicianService iMaTechnicianService;

    @Autowired
    private IMaProjectService iMaProjectService;

    @Override
    public List<MerchantVo> getMerchantRecommend(MassageMerchantRecommendDto dto) {
        //按摩商户推荐
        return iMaTechnicianService.getMerchantRecommend(dto);
    }

    @Override
    public Page<MassageProjectRecommendVo> getMassageProjectRecommend(Page<MassageProjectRecommendVo> page,String cityCode) {
        return iMaProjectService.getMassageProjectRecommend(page,cityCode);
    }

    @Override
    public Page<MassageAllMerchantsVo> getMassageAllMerchants(Page<MassageAllMerchantsVo> page, MassageAllMerchantsDto dto){
        return iMaProjectService.getMassageAllMerchants(page,dto);
    }
}