|
|
|
@ -10,13 +10,13 @@ namespace DS.WMS.AdminApi.Controllers;
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ConfigController : ApiController
|
|
|
|
|
{
|
|
|
|
|
private readonly ICodeConfigService _invokeService;
|
|
|
|
|
private readonly IConfigService _invokeService;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 构造函数
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="invokeService"></param>
|
|
|
|
|
public ConfigController(ICodeConfigService invokeService)
|
|
|
|
|
public ConfigController(IConfigService invokeService)
|
|
|
|
|
{
|
|
|
|
|
_invokeService = invokeService;
|
|
|
|
|
}
|
|
|
|
@ -28,7 +28,7 @@ public class ConfigController : ApiController
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("GetConfigList")]
|
|
|
|
|
public DataResult<List<CodeConfigRes>> GetConfigList([FromBody] PageRequest request)
|
|
|
|
|
public DataResult<List<ConfigRes>> GetConfigList([FromBody] PageRequest request)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetListByPage(request);
|
|
|
|
|
return res;
|
|
|
|
@ -54,7 +54,7 @@ public class ConfigController : ApiController
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetConfigInfo")]
|
|
|
|
|
public DataResult<CodeConfigRes> GetConfigInfo([FromQuery] string id)
|
|
|
|
|
public DataResult<ConfigRes> GetConfigInfo([FromQuery] string id)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetConfigInfo(id);
|
|
|
|
|
return res;
|
|
|
|
|