package com.jwipc.order.api.controller;

import com.jwipc.api.dto.ApiResult;
import com.jwipc.order.api.dto.CreateBasicPlanDTO;
import com.jwipc.order.api.logic.CreateBasicPlanLogic;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: swq
 * @Date: 2024/4/3 11:20
 */
@RestController
@RequestMapping("/sap/api/basicPlan/")
@RequiredArgsConstructor
@Slf4j
public class CreateBasicPlanApiController {
private final CreateBasicPlanLogic createBasicPlanLogic;
    @PostMapping("createBasicPlan")
    public ApiResult createBasicPlan(@RequestBody CreateBasicPlanDTO createBasicPlanDTO) {
        return createBasicPlanLogic.createBasicPlan(createBasicPlanDTO);
    }
}
