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 DataRuleController : ApiController { private readonly IDataRuleService _invokeService; /// /// 构造函数 /// /// public DataRuleController(IDataRuleService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetDataRuleList")] public DataResult> GetDataRuleList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditDataRule")] public DataResult EditDataRule([FromBody] DataRuleReq req) { var res = _invokeService.EditDataRule(req); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetDataRuleInfo")] public DataResult GetDataRuleInfo([FromQuery] string id) { var res = _invokeService.GetDataRuleInfo(id); return res; } }