package com.czg.controller.user;

import com.czg.market.service.MkProductSmartSuggestService;
import com.czg.resp.CzgResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 点单智能推荐
 *
 * @author ww
 */

@RestController
@RequestMapping("/user/suggest")
public class UProductSmartSuggestController {
    @Resource
    private MkProductSmartSuggestService suggestService;

    /**
     * 获取点单智能推荐
     */
    @GetMapping
    public CzgResult<Map<String, Object>> getActivity(@RequestParam Long shopId) {
        Map<String, Object> map = suggestService.getProductSmartSuggestByShopId(shopId);
        return CzgResult.success(map);
    }


}
