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.Op.Dtos;
using DS.WMS.Core.Op.Interface;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
namespace DS.WMS.OpApi.Controllers;
///
/// 业务订单联系人-服务
///
public class BusinessOrderContactController : ApiController
{
private readonly IBusinessOrderContactService _invokeService;
///
/// 构造函数
///
///
public BusinessOrderContactController(IBusinessOrderContactService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetBusinessOrderContactList")]
public DataResult> GetBusinessOrderContactList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditBusinessOrderContact")]
public DataResult EditBusinessOrderContact([FromBody] BusinessOrderContactReq model)
{
var res = _invokeService.EditBusinessOrderContact(model);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetBusinessOrderContactInfo")]
public DataResult GetBusinessOrderContactInfo([FromQuery] string id)
{
var res = _invokeService.GetBusinessOrderContactInfo(id);
return res;
}
///
/// 批量删除
///
/// 主表Ids
///
[HttpPost]
[Route("BatchDelBusinessOrderContact")]
public DataResult BatchDelBusinessOrderContact([FromBody] IdModel req)
{
var res = _invokeService.BatchDelBusinessOrderContact(req);
return res;
}
}