|
|
|
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;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 业务来源明细信息服务
|
|
|
|
/// </summary>
|
|
|
|
public class CodeSourceDetailController : ApiController
|
|
|
|
{
|
|
|
|
private readonly ICodeSourceDetailService _invokeService;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 构造函数
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="invokeService"></param>
|
|
|
|
public CodeSourceDetailController(ICodeSourceDetailService invokeService)
|
|
|
|
{
|
|
|
|
_invokeService = invokeService;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 列表
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost]
|
|
|
|
[Route("GetCodeSourceDetailList")]
|
|
|
|
public DataResult<List<CodeSourceDetailRes>> GetCodeSourceDetailList([FromBody] PageRequest request)
|
|
|
|
{
|
|
|
|
var res = _invokeService.GetClientListByPage(request);
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 编辑
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="model"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost]
|
|
|
|
[Route("EditCodeSourceDetail")]
|
|
|
|
public DataResult EditCodeSourceDetail([FromBody] CodeSourceDetailReq model)
|
|
|
|
{
|
|
|
|
var res = _invokeService.EditClientCodeSourceDetail(model);
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 详情
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="id"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpGet]
|
|
|
|
[Route("GetCodeSourceDetailInfo")]
|
|
|
|
public DataResult<CodeSourceDetailRes> GetCodeSourceDetailInfo([FromQuery] string id)
|
|
|
|
{
|
|
|
|
var res = _invokeService.GetClientCodeSourceDetailInfo(id);
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 批量删除
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="req">主表Ids</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost]
|
|
|
|
[Route("BatchDelCodeSourceDetail")]
|
|
|
|
public DataResult BatchDelCodeSourceDetail([FromBody] IdModel req)
|
|
|
|
{
|
|
|
|
var res = _invokeService.BatchDelCodeSourceDetail(req);
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|