44 lines
948 B
C#

using DS.Module.Core;
using DS.Module.Core.Extensions;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Sys.Dtos;
using DS.WMS.Core.Sys.Entity;
using DS.WMS.Core.Sys.Interface;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
namespace DS.WMS.AdminApi.Controllers;
/// <summary>
/// 管理员 模块
/// </summary>
public class AdminController : ApiController
{
private readonly IAdminService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public AdminController(IAdminService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 获取服务器信息
/// </summary>
/// <returns></returns>
[HttpGet]
[Route("GetServerInfo")]
public DataResult<dynamic> GetServerInfo()
{
var res = _invokeService.GetServerInfo();
return res;
}
}