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.
106 lines
2.4 KiB
C#
106 lines
2.4 KiB
C#
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;
|
|
|
|
/// <summary>
|
|
/// 客户基础信息同步-模块
|
|
/// </summary>
|
|
public class CodeInfoSyncController : ApiController
|
|
{
|
|
private readonly ICodeInfoSyncService _invokeService;
|
|
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="invokeService"></param>
|
|
public CodeInfoSyncController(ICodeInfoSyncService invokeService)
|
|
{
|
|
_invokeService = invokeService;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 同步国家信息
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("SyncCountryInfo")]
|
|
public async Task<DataResult<string>> SyncCountryInfo()
|
|
{
|
|
var res = await _invokeService.SyncCountryInfo();
|
|
return res;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 同步包装信息
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("SyncPackageInfo")]
|
|
public async Task<DataResult<string>> SyncPackageInfo()
|
|
{
|
|
var res = await _invokeService.SyncPackageInfo();
|
|
return res;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 同步港口信息
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("SyncPortInfo")]
|
|
public async Task<DataResult<string>> SyncPortInfo()
|
|
{
|
|
var res = await _invokeService.SyncPortInfo();
|
|
return res;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 同步箱型信息
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("SyncCtnInfo")]
|
|
public async Task<DataResult<string>> SyncCtnInfo()
|
|
{
|
|
var res = await _invokeService.SyncCtnInfo();
|
|
return res;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 同步船公司信息
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("SyncCarrierInfo")]
|
|
public async Task<DataResult<string>> SyncCarrierInfo()
|
|
{
|
|
var res = await _invokeService.SyncCarrierInfo();
|
|
return res;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 同步商品信息
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("SyncGoodsInfo")]
|
|
public async Task<DataResult<string>> SyncGoodsInfo()
|
|
{
|
|
var res = await _invokeService.SyncGoodsInfo();
|
|
return res;
|
|
}
|
|
} |