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.
75 lines
1.9 KiB
C#
75 lines
1.9 KiB
C#
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 CodeThirdPartyController : ApiController
|
|
{
|
|
private readonly ICodeThirdPartyService _invokeService;
|
|
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="invokeService"></param>
|
|
public CodeThirdPartyController(ICodeThirdPartyService invokeService)
|
|
{
|
|
_invokeService = invokeService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetCodeThirdPartyList")]
|
|
public DataResult<List<CodeThirdPartyRes>> GetCodeThirdPartyList([FromBody] PageRequest request)
|
|
{
|
|
var res = _invokeService.GetListByPage(request);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 编辑
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("EditCodeThirdParty")]
|
|
public DataResult EditCodeThirdParty([FromBody] CodeThirdPartyReq model)
|
|
{
|
|
var res = _invokeService.EditCodeThirdParty(model);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 详情
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetCodeThirdPartyInfo")]
|
|
public DataResult<CodeThirdPartyRes> GetCodeThirdPartyInfo([FromQuery] string id)
|
|
{
|
|
var res = _invokeService.GetCodeThirdPartyInfo(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 批量删除
|
|
/// </summary>
|
|
/// <param name="req">主表Ids</param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("BatchDelCodeThirdParty")]
|
|
public DataResult BatchDelCodeThirdParty([FromBody] IdModel req)
|
|
{
|
|
var res = _invokeService.BatchDelCodeThirdParty(req);
|
|
return res;
|
|
}
|
|
} |