package com.lightinit.hsdatashow.controller.api;

import com.lightinit.hsdatashow.service.api.IWaterApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author WangYao
 * @date 2018/7/19 14:01
 * @description 水务运行API控制器
 */
@RestController
@RequestMapping(value = "/api/water")
public class WaterApiController {

    @Autowired
    IWaterApiService waterApiService;

    @RequestMapping(value = "add")
    public void addRandom(){
        waterApiService.randomAddWaterSupplyAggregate(2);
    }
}
