package com.ylx.massage.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ylx.home.category.domain.dto.ProjectRecommendDTO;
import com.ylx.home.category.domain.dto.MerchantsDto;
import com.ylx.home.category.domain.dto.MerchantRecommendDto;
import com.ylx.home.category.domain.vo.MerchantsVo;
import com.ylx.home.category.domain.vo.ProjectRecommendVo;
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(MerchantRecommendDto dto) {
        //按摩商户推荐
        return iMaTechnicianService.getMerchantRecommend(dto);
    }

    public Page<ProjectRecommendVo> getProjectRecommend(Page<ProjectRecommendVo> page, ProjectRecommendDTO dto) {
        return iMaProjectService.getProjectRecommend(page, dto);
    }

    @Override
    public Page<MerchantsVo> getMerchants(Page<MerchantsVo> page, MerchantsDto dto) {
        return iMaProjectService.getMerchants(page, dto);
    }
}