using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.MainApi.Controllers; /// /// 业务参数配置模块 /// public class CodeConfigController : ApiController { private readonly ICodeConfigService _invokeService; /// /// 构造函数 /// /// public CodeConfigController(ICodeConfigService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetCodeConfigList")] public DataResult> GetCodeConfigList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditCodeConfig")] public DataResult EditCodeConfig([FromBody] CodeConfigReq req) { var res = _invokeService.EditCodeConfig(req); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetCodeConfigInfo")] public DataResult GetCodeConfigInfo([FromQuery] string id) { var res = _invokeService.GetCodeConfigInfo(id); return res; } /// /// 批量删除 /// /// 主表Ids /// [HttpPost] [Route("BatchDelCodeConfig")] public DataResult BatchDelCodeConfig([FromBody] IdModel req) { var res = _invokeService.BatchDelCodeConfig(req); return res; } }