package com.hssx.centerdata.controller;


import com.hssx.centerdata.entity.TDataSizeInfoWarehouseUnits;
import com.hssx.centerdata.service.TDataSizeInfoWarehouseUnitsService;
import com.hssx.centerdata.util.HttpRespMsg;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 数据量信息_入库单位数 前端控制器
 * </p>
 *
 * @author 吴涛涛
 * @since 2019-11-15
 */
@Controller
@RequestMapping("/tdatasizeinfowarehouseunits")
public class TDataSizeInfoWarehouseUnitsController {
    @Autowired
    private TDataSizeInfoWarehouseUnitsService tDataSizeInfoWarehouseUnitsService;

    /**
     * 中心库数据模块数据
     * @return
     */
    @ApiOperation(value = "中心库数据模块数据", notes = "中心库数据模块数据")
    @RequestMapping("/centralRepository")
    @ResponseBody
    public HttpRespMsg centralRepository() {
        return tDataSizeInfoWarehouseUnitsService.getCenterData();
    }

    /**
     * 五大库模块数据
     * @return
     */
    @ApiOperation(value = "五大库模块数据")
    @RequestMapping("/dataExchange")
    @ResponseBody
    public HttpRespMsg dataExchange() {
        return tDataSizeInfoWarehouseUnitsService.dataExchange();
    }

    /**
     * 五大库模块数据
     * @return
     */
    @ApiOperation(value = "五大库模块数据")
    @RequestMapping("/fiveMainStorehouses")
    @ResponseBody
    public HttpRespMsg fiveMainStorehouses() {
        return tDataSizeInfoWarehouseUnitsService.fiveMainStorehouses();
    }

    /**
     * 数据交换模块数据
     * @return
     */
    @ApiOperation(value = "云平台模块数据")
    @RequestMapping("/cloudPlatform")
    @ResponseBody
    public HttpRespMsg cloudPlatform() {
        return tDataSizeInfoWarehouseUnitsService.cloudPlatform();
    }



}

