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.

42 lines
1.1 KiB
C#

using DS.Module.Core;
using DS.WMS.Core.Code.Import;
using DS.WMS.Core.Code.Interface;
using DS.WMS.Core.Code.Method;
using DS.WMS.Core.Sys.Dtos;
using DS.WMS.Core.Sys.Interface;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers
{
/// <summary>
/// 数据导入 模块
/// </summary>
public class DataImportController : ApiController
{
private readonly IDataImportService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public DataImportController(IDataImportService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 导入昭阳信息
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
[HttpPost]
[Route("ImportZYData")]
public async Task<DataResult<string>> ImportZYData(DataImportZY req)
{
var res = await _invokeService.ImportZYData(req);
return res;
}
}
}