using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using DS.WMS.Core.Sys.Dtos; using DS.WMS.Core.Sys.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.MainApi.Controllers; /// /// 自定义列表字段设置 模块 /// public class CustomColumnSetController : ApiController { private readonly ICustomColumnSetService _invokeService; /// /// 构造函数 /// /// public CustomColumnSetController(ICustomColumnSetService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetColumnSetList")] public async Task>> GetCustomColumnSetList([FromBody] PageRequest request) { var res = await _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditCustomColumnSet")] public async Task EditCustomColumnSet([FromBody] CustomColumnSetReq req) { var res = await _invokeService.EditCustomColumnSet(req); return res; } /// /// 详情 /// /// Id /// [HttpGet] [Route("GetCustomColumnSetInfo")] public async Task> GetCustomColumnSetInfo([FromQuery] string id) { var res = await _invokeService.GetCustomColumnSetInfo(id); return res; } /// /// 按模块获取列表设置详情 /// /// 自定义列表代码 /// [HttpGet] [Route("GetCustomColumnSetInfoByCode")] public async Task> GetCustomColumnSetInfoByCode([FromQuery] string code) { var res = await _invokeService.GetCustomColumnSetInfoByCode(code); return res; } /// /// 批量删除 /// /// req /// [HttpPost] [Route("BatchDelCustomColumnSet")] public async Task BatchDelCustomColumnSet([FromBody] IdModel req) { var res = await _invokeService.BatchDelCustomColumnSet(req); return res; } }