package com.YuyeTech.HeartRate.game.food.controller;


import com.YuyeTech.HeartRate.VO.ResultVO;
import com.YuyeTech.HeartRate.game.food.service.FoodService;
import com.YuyeTech.HeartRate.utils.ResultVOUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
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;

@RestController
@RequestMapping("/backstage_food")
@Slf4j
public class BackstageFoodController {

    @Autowired
    private FoodService foodService;


//    @GetMapping(value = "/searchFromGroup")
//    public ResultVO searchFromGroup(@RequestParam(value = "group") Integer group,
//                                    @RequestParam(value = "page" ,defaultValue = "1") Integer page){
//
//        String url = "/food/group/"+group +"&page="+page;
//        return  ResultVOUtil.success(foodService.getListFromUrl(url));
//    }
}
