package com.fjhx.plan.controller;

import com.fjhx.params.plan.PlanConfigVo;
import com.fjhx.plan.service.PlanConfigService;
import org.springblade.core.tool.api.R;
import org.springframework.beans.factory.annotation.Autowired;
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;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2023-01-06
 */
@RestController
@RequestMapping("/planConfig")
public class PlanConfigController {

    @Autowired
    private PlanConfigService planConfigService;

    @PostMapping("/edit")
    public R edit(@RequestBody PlanConfigVo planConfigVo){
        planConfigService.edit(planConfigVo);
        return R.success();
    }

}

