using DS.Module.Core; using DS.WMS.Core.Sys.Dtos; using DS.WMS.Core.Sys.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.AdminApi.Controllers; /// /// 系统参数配置模块 /// public class ConfigController : ApiController { private readonly IConfigService _invokeService; /// /// 构造函数 /// /// public ConfigController(IConfigService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetConfigList")] public DataResult> GetConfigList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditConfig")] public DataResult EditConfig([FromBody] ConfigReq req) { var res = _invokeService.EditConfig(req); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetConfigInfo")] public DataResult GetConfigInfo([FromQuery] string id) { var res = _invokeService.GetConfigInfo(id); return res; } }