using DS.Module.Core; using DS.WMS.Core.System.Dtos; using DS.WMS.Core.System.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.MainApi.Controllers; /// /// 组织机构模块 /// public class OrgController : ApiController { private readonly ISysOrgService _invokeService; /// /// 构造函数 /// /// public OrgController(ISysOrgService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetOrgList")] public DataResult> GetOrgList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditOrg")] public DataResult EditOrg([FromBody] SysOrgReq model) { var res = _invokeService.EditOrg(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetOrgInfo")] public DataResult GetOrgInfo([FromQuery] string id) { var res = _invokeService.GetOrgInfo(id); return res; } }