using DS.Module.Core;
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;
namespace DS.WMS.WebApi.Controllers;
///
/// 权限模块
///
public class PermissionController : ApiController
{
private readonly IPermissionService _invokeService;
///
/// 构造函数
///
///
public PermissionController(IPermissionService invokeService)
{
_invokeService = invokeService;
}
///
/// 权限列表
///
///
///
[HttpPost]
[Route("GetSysPermissionList")]
public DataResult> GetSysPermissionList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
///
///
///
[HttpGet]
[Route("GetPermissionList")]
public DataResult> GetPermissionList()
{
var res = _invokeService.GetPermissionList();
return res;
}
}