package com.fjhx.stock.controller;

import com.fjhx.params.stock.StockCorrectVo;
import com.fjhx.stock.service.StockCorrectService;
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 2022-11-09
 */
@RestController
@RequestMapping("/stockCorrect")
public class StockCorrectController {

    @Autowired
    private StockCorrectService stockCorrectService;

    @PostMapping("/add")
    public R add(@RequestBody StockCorrectVo stockCorrectVo) {
        stockCorrectService.add(stockCorrectVo);
        return R.success();
    }

}

