package com.fjhx.controller.water;

import com.fjhx.params.water.WaterVo;
import com.fjhx.service.water.WaterService;
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-09-20
 */
@RestController
@RequestMapping("/water")
public class WaterController {

    @Autowired
    private WaterService waterService;

    /**
     * 出入库
     *
     * @param waterVo
     * @return
     */
    @PostMapping("/add")
    public R add(@RequestBody WaterVo waterVo) {
        waterService.add(waterVo);
        return R.success();
    }

}

