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.

44 lines
957 B
C#

using DS.Module.Core;
using DS.Module.Core.Extensions;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Entity;
using DS.WMS.Core.System.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;
}
}