using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.Sys.Dtos; using DS.WMS.Core.Sys.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.MainApi.Controllers; /// /// 组织机构Api授权模块 /// public class OrgAuthController : ApiController { private readonly IOrgAuthService _invokeService; /// /// 构造函数 /// /// public OrgAuthController(IOrgAuthService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetOrgAuthList")] public DataResult> GetOrgAuthList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditOrgAuth")] public DataResult EditOrgAuth([FromBody] OrgAuthReq req) { var res = _invokeService.EditOrgAuth(req); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetOrgAuthInfo")] public DataResult GetOrgAuthInfo([FromQuery] string id) { var res = _invokeService.GetOrgAuthInfo(id); return res; } /// /// 批量删除 /// /// /// [HttpPost] [Route("BatchDelOrgAuth")] public DataResult BatchDelOrgAuth([FromBody] IdModel req) { var res = _invokeService.BatchDelOrgAuth(req); return res; } }