You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
2.4 KiB
C#
89 lines
2.4 KiB
C#
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;
|
|
|
|
/// <summary>
|
|
/// 订单关系人设置 模块
|
|
/// </summary>
|
|
public class OrderContactController : ApiController
|
|
{
|
|
private readonly IOrderContactService _invokeService;
|
|
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="invokeService"></param>
|
|
public OrderContactController(IOrderContactService invokeService)
|
|
{
|
|
_invokeService = invokeService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetOrderContactList")]
|
|
public DataResult<List<CodeOrderContactRes>> GetOrderContactList([FromBody] PageRequest request)
|
|
{
|
|
var res = _invokeService.GetListByPage(request);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 编辑
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("EditOrderContact")]
|
|
public DataResult EditOrderContact([FromBody] CodeOrderContactReq req)
|
|
{
|
|
var res = _invokeService.EditOrderContact(req);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 详情
|
|
/// </summary>
|
|
/// <param name="id">Id</param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetOrderContactInfo")]
|
|
public DataResult<CodeOrderContactRes> GetOrderContactInfo([FromQuery] string id)
|
|
{
|
|
var res = _invokeService.GetOrderContactInfo(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 根据客户Id获取订单关系人列表
|
|
/// </summary>
|
|
/// <param name="id">Id</param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetOrderContactListByClientId")]
|
|
public DataResult<List<CodeOrderContactRes>> GetOrderContactListByClientId([FromQuery] string id)
|
|
{
|
|
var res = _invokeService.GetOrderContactListByClientId(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 批量删除
|
|
/// </summary>
|
|
/// <param name="req">req</param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("BatchDelOrderContact")]
|
|
public DataResult BatchDelOrderContact([FromBody] IdModel req)
|
|
{
|
|
var res = _invokeService.BatchDelOrderContact(req);
|
|
return res;
|
|
}
|
|
} |