using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Info.Interface;
using DS.WMS.Core.Sys.Dtos;
using DS.WMS.Core.Sys.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
///
/// 客户参数信息-模块
///
public class ClientParamController : ApiController
{
private readonly IClientParamService _invokeService;
///
/// 构造函数
///
///
public ClientParamController(IClientParamService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetClientParamList")]
public DataResult> GetClientParamList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditClientParam")]
public DataResult EditClientParam([FromBody] ClientParamReq req)
{
var res = _invokeService.EditClientParam(req);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetClientParamInfo")]
public DataResult GetClientParamInfo([FromQuery] string id)
{
var res = _invokeService.GetClientParamInfo(id);
return res;
}
///
/// 批量删除
///
///
///
[HttpPost]
[Route("BatchDelClientParam")]
public DataResult BatchDelClientParam([FromBody] IdModel req)
{
var res = _invokeService.BatchDelClientParam(req);
return res;
}
///
/// 获取租户参数下拉
///
///
[HttpGet]
[Route("GetTenantParamSelectList")]
public DataResult> GetTenantParamSelectList()
{
var res = _invokeService.GetTenantParamSelectList();
return res;
}
///
/// 获取租户参数值下拉
///
///
///
[HttpGet]
[Route("GetTenantParamDataSelectList")]
public DataResult> GetTenantParamDataSelectList([FromQuery] string code)
{
var res = _invokeService.GetTenantParamDataSelectList(code);
return res;
}
}