using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Code.Interface;
using DS.WMS.Core.Sys.Dtos;
using DS.WMS.Core.Sys.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
///
/// 订单关系人设置 模块
///
public class OrderContactController : ApiController
{
private readonly IOrderContactService _invokeService;
///
/// 构造函数
///
///
public OrderContactController(IOrderContactService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetOrderContactList")]
public DataResult> GetOrderContactList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditOrderContact")]
public DataResult EditOrderContact([FromBody] CodeOrderContactReq req)
{
var res = _invokeService.EditOrderContact(req);
return res;
}
///
/// 详情
///
/// Id
///
[HttpGet]
[Route("GetOrderContactInfo")]
public DataResult GetOrderContactInfo([FromQuery] string id)
{
var res = _invokeService.GetOrderContactInfo(id);
return res;
}
///
/// 根据客户Id获取订单关系人列表
///
/// Id
///
[HttpGet]
[Route("GetOrderContactListByClientId")]
public DataResult> GetOrderContactListByClientId([FromQuery] string id)
{
var res = _invokeService.GetOrderContactListByClientId(id);
return res;
}
///
/// 批量删除
///
/// req
///
[HttpPost]
[Route("BatchDelOrderContact")]
public DataResult BatchDelOrderContact([FromBody] IdModel req)
{
var res = _invokeService.BatchDelOrderContact(req);
return res;
}
}