using DS.Module.Core; 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; } }