package easydo.technology.controller;

import easydo.technology.model.ProductPlan;
import easydo.technology.service.ProductPlanService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/productPlan")
public class ProductPlanController {

    @Resource
    private ProductPlanService productPlanService;

    @RequestMapping(value = "/getPage")
    public Object getPage(@RequestBody Map<String, Object> map) throws Exception {
        Map<String, Object> result = productPlanService.getPage(map);
        return new ResponseEntity<>(result, HttpStatus.OK);
    }
}

