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