You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.5 KiB
C#
64 lines
1.5 KiB
C#
2 years ago
|
using DS.Module.Core;
|
||
|
using DS.WMS.Core.System.Dtos;
|
||
|
using DS.WMS.Core.System.Interface;
|
||
|
using Microsoft.AspNetCore.Mvc;
|
||
|
|
||
|
namespace DS.WMS.WebApi.Controllers;
|
||
|
|
||
|
public class HomeController : ApiController
|
||
|
{
|
||
|
private readonly IHomeService _invokeService;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 构造函数
|
||
|
/// </summary>
|
||
|
/// <param name="invokeService"></param>
|
||
|
public HomeController(IHomeService invokeService)
|
||
|
{
|
||
|
_invokeService = invokeService;
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 获取首页数据-业务数据
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet]
|
||
|
[Route("GetBusinessData")]
|
||
|
public DataResult<BusinessData> GetBusinessData()
|
||
|
{
|
||
|
var res = _invokeService.GetBusinessData();
|
||
|
return res;
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 商品品类
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet]
|
||
|
[Route("GetGoodsData")]
|
||
|
public DataResult<List<GoodsData>> GetGoodsData()
|
||
|
{
|
||
|
var res = _invokeService.GetGoodsData();
|
||
|
return res;
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 园区告警
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet]
|
||
|
[Route("GetSecurityData")]
|
||
|
public DataResult<SecurityData> GetSecurityData()
|
||
|
{
|
||
|
var res = _invokeService.GetSecurityData();
|
||
|
return res;
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 业务趋势
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet]
|
||
|
[Route("GetBusinessTrendData")]
|
||
|
public DataResult<BusinessTrendData> GetBusinessTrendData()
|
||
|
{
|
||
|
var res = _invokeService.GetBusinessTrendData();
|
||
|
return res;
|
||
|
}
|
||
|
}
|