/*
*接口编写处...
*如果接口需要做Action的权限验证,请在Action上使用属性
*如: [ApiActionPermission("Dt_boxing_head",Enums.ActionPermissionOptions.Search)]
*/
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Http;
using WIDESEA.Entity.DomainModels;
using WIDESEA.Services.IServices;
using Microsoft.AspNetCore.Authorization;
using WIDESEA.Core.Utilities;
namespace WIDESEA.Services.Controllers
{
public partial class Dt_boxing_headController
{
private readonly IDt_boxing_headService _service;//访问业务代码
private readonly IHttpContextAccessor _httpContextAccessor;
[ActivatorUtilitiesConstructor]
public Dt_boxing_headController(
IDt_boxing_headService service,
IHttpContextAccessor httpContextAccessor
)
: base(service)
{
_service = service;
_httpContextAccessor = httpContextAccessor;
}
///
/// 创建组盘信息
///
/// 托盘号
///
[HttpPost, Route("CreateBoxingInfo")]
public WebResponseContent CreateBoxingInfo([FromBody] SaveModel saveModel)
{
return Service.CreateBoxingInfo(saveModel);
}
///
/// 创建空托入库任务
///
/// 托盘号
///
[HttpPost, Route("CreateEmptyPalletTask")]
public WebResponseContent CreateEmptyPalletTask([FromBody] SaveModel saveModel)
{
return Service.CreateEmptyPalletTask(saveModel);
}
///
/// 查询一个托盘号对应的组盘信息
///
/// 托盘号
///
[HttpPost, Route("GetBoxingInfo")]
public WebResponseContent GetBoxingInfo([FromBody] SaveModel saveModel)
{
return Service.GetBoxingInfo(saveModel);
}
}
}