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;
///
/// 管理员 模块
///
public class AdminController : ApiController
{
private readonly IAdminService _invokeService;
///
/// 构造函数
///
///
public AdminController(IAdminService invokeService)
{
_invokeService = invokeService;
}
///
/// 获取服务器信息
///
///
[HttpGet]
[Route("GetServerInfo")]
public DataResult GetServerInfo()
{
var res = _invokeService.GetServerInfo();
return res;
}
}