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.Info.Dtos;
using DS.WMS.Core.Info.Interface;
using DS.WMS.Core.Sys.Dtos;
using DS.WMS.Core.Sys.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
///
/// 客户基础信息同步-模块
///
public class CodeInfoSyncController : ApiController
{
private readonly ICodeInfoSyncService _invokeService;
///
/// 构造函数
///
///
public CodeInfoSyncController(ICodeInfoSyncService invokeService)
{
_invokeService = invokeService;
}
///
/// 同步国家信息
///
///
[HttpGet]
[Route("SyncCountryInfo")]
public async Task> SyncCountryInfo()
{
var res = await _invokeService.SyncCountryInfo();
return res;
}
///
/// 同步包装信息
///
///
[HttpGet]
[Route("SyncPackageInfo")]
public async Task> SyncPackageInfo()
{
var res = await _invokeService.SyncPackageInfo();
return res;
}
///
/// 同步港口信息
///
///
[HttpGet]
[Route("SyncPortInfo")]
public async Task> SyncPortInfo()
{
var res = await _invokeService.SyncPortInfo();
return res;
}
///
/// 同步箱型信息
///
///
[HttpGet]
[Route("SyncCtnInfo")]
public async Task> SyncCtnInfo()
{
var res = await _invokeService.SyncCtnInfo();
return res;
}
///
/// 同步船公司信息
///
///
[HttpGet]
[Route("SyncCarrierInfo")]
public async Task> SyncCarrierInfo()
{
var res = await _invokeService.SyncCarrierInfo();
return res;
}
///
/// 同步商品信息
///
///
[HttpGet]
[Route("SyncGoodsInfo")]
public async Task> SyncGoodsInfo()
{
var res = await _invokeService.SyncGoodsInfo();
return res;
}
}