53 lines
1.2 KiB
C#
53 lines
1.2 KiB
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using AutoMapper;
|
|
using HHWMS.Web.Models;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using WalkingTec.Mvvm.Core;
|
|
|
|
namespace HHWMS.Web
|
|
{
|
|
/// <summary>
|
|
/// WCS接口
|
|
/// 调用方向 WCS --> WMS
|
|
/// </summary>
|
|
[Public]
|
|
[ActionDescription("HHWMS.WCSApi")]
|
|
[ApiController]
|
|
[Route("api/[controller]/[action]"), ApiExplorerSettings(GroupName = "User")]
|
|
public class IWCSController : ApiController
|
|
{
|
|
private readonly IUnitWork _unitwork;
|
|
private readonly IMapper _mapper;
|
|
|
|
public IWCSController(IUnitWork unitwork, IMapper mapper)
|
|
{
|
|
_unitwork = unitwork;
|
|
_mapper = mapper;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 请求入库
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public IActionResult RequestIn()
|
|
{
|
|
|
|
return ApiResult();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 状态返回
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public IActionResult TaskStatusResult()
|
|
{
|
|
return ApiResult();
|
|
}
|
|
|
|
}
|
|
}
|