using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Code.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
///
/// 业务来源明细信息服务
///
public class CodeSourceDetailController : ApiController
{
private readonly ICodeSourceDetailService _invokeService;
///
/// 构造函数
///
///
public CodeSourceDetailController(ICodeSourceDetailService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetCodeSourceDetailList")]
public DataResult> GetCodeSourceDetailList([FromBody] PageRequest request)
{
var res = _invokeService.GetClientListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditCodeSourceDetail")]
public DataResult EditCodeSourceDetail([FromBody] CodeSourceDetailReq model)
{
var res = _invokeService.EditClientCodeSourceDetail(model);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetCodeSourceDetailInfo")]
public DataResult GetCodeSourceDetailInfo([FromQuery] string id)
{
var res = _invokeService.GetClientCodeSourceDetailInfo(id);
return res;
}
///
/// 批量删除
///
/// 主表Ids
///
[HttpPost]
[Route("BatchDelCodeSourceDetail")]
public DataResult BatchDelCodeSourceDetail([FromBody] IdModel req)
{
var res = _invokeService.BatchDelCodeSourceDetail(req);
return res;
}
}