using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Mvc;
|
using WIDESEA_Core;
|
using WIDESEA_Core.BaseController;
|
using WIDESEA_IWMsInfoServices;
|
using WIDESEA_Model.Models;
|
|
namespace WIDESEA_WMSServer.Controllers.WMSInfo
|
{
|
[Route("api/[controller]")]
|
[ApiController]
|
public class SupplyTaskHtyController : ApiBaseController<ISupplyTaskHtyService, Dt_SupplyTask_Hty>
|
{
|
public SupplyTaskHtyController(ISupplyTaskHtyService service) : base(service)
|
{
|
}
|
[HttpPost, HttpGet, Route("GetInOutTasks"), AllowAnonymous]
|
public object GetInOutTasks()
|
{
|
WebResponseContent content = Service.GetInOutTasks();
|
if (!content.Status)
|
{
|
return new
|
{
|
code = "404",
|
note = content.Message
|
};
|
}
|
else
|
{
|
return new
|
{
|
code = "000",
|
note = "成功",
|
date = content.Data
|
};
|
}
|
}
|
|
}
|
}
|