using DS.Module.Core; using DS.WMS.Core.Sys.Dtos; using DS.WMS.Core.Sys.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.MainApi.Controllers; /// /// 操作权限模块 /// public class OperationRuleController : ApiController { private readonly IOperationRuleService _invokeService; /// /// 构造函数 /// /// public OperationRuleController(IOperationRuleService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetOperationRuleList")] public DataResult> GetOperationRuleList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditOperationRule")] public DataResult EditOperationRule([FromBody] OperationRuleReq req) { var res = _invokeService.EditOperationRule(req); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetOperationRuleInfo")] public DataResult GetOperationRuleInfo([FromQuery] string id) { var res = _invokeService.GetOperationRuleInfo(id); return res; } }