using DS.Module.Core;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Info.Interface;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
///
/// 客户基本信息-模块
///
public class ClientInfoController : ApiController
{
private readonly IClientInfoService _invokeService;
///
/// 构造函数
///
///
public ClientInfoController(IClientInfoService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetClientInfoList")]
public DataResult> GetClientInfoList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditClientInfo")]
public DataResult EditClientInfo([FromBody] ClientInfoReq req)
{
var res = _invokeService.EditClientInfo(req);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetClientInfo")]
public DataResult GetClientInfo([FromQuery] string id)
{
var res = _invokeService.GetClientInfo(id);
return res;
}
}