using DS.Module.Core;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Entity;
using DS.WMS.Core.System.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.WebApi.Controllers;
///
/// 系统参数模块
///
public class ConfigController : ApiController
{
private readonly ISysConfigService _invokeService;
///
/// 构造函数
///
///
public ConfigController(ISysConfigService 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] SysConfigInput model)
{
var res = _invokeService.EditConfig(model);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetConfigInfo")]
public DataResult GetConfigInfo([FromQuery] string id)
{
var res = _invokeService.GetConfigInfo(id);
return res;
}
}