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; /// /// 构造函数 /// /// public HomeController(IHomeService invokeService) { _invokeService = invokeService; } /// /// 获取首页数据-业务数据 /// /// [HttpGet] [Route("GetBusinessData")] public DataResult GetBusinessData() { var res = _invokeService.GetBusinessData(); return res; } /// /// 商品品类 /// /// [HttpGet] [Route("GetGoodsData")] public DataResult> GetGoodsData() { var res = _invokeService.GetGoodsData(); return res; } /// /// 园区告警 /// /// [HttpGet] [Route("GetSecurityData")] public DataResult GetSecurityData() { var res = _invokeService.GetSecurityData(); return res; } /// /// 业务趋势 /// /// [HttpGet] [Route("GetBusinessTrendData")] public DataResult GetBusinessTrendData() { var res = _invokeService.GetBusinessTrendData(); return res; } }