wangxinhui
2026-01-12 ded9c653b4bd5f45cb23124068687135c29e6915
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using HslCommunication.WebSocket;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEAWCS_Common.TaskEnum;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseController;
using WIDESEAWCS_Core.Helper;
using WIDESEAWCS_DTO.PackInfo;
using WIDESEAWCS_DTO.TaskInfo;
using WIDESEAWCS_IPackInfoService;
using WIDESEAWCS_Model.Models;
 
namespace WIDESEAWCS_WCSServer.Controllers.PackInfo
{
    [Route("api/Packinfo")]
    [ApiController]
    public class PackinfoController : ApiBaseController<IPackinfoService, Dt_Packinfo>
    {
        private readonly IHttpContextAccessor _httpContextAccessor;
 
        public PackinfoController(IPackinfoService service, IHttpContextAccessor httpContextAccessor) : base(service)
        {
            _httpContextAccessor = httpContextAccessor;
        }
        [HttpPost, HttpGet, Route("ReceivePackaxisTask"), AllowAnonymous]
        public WebResponseContent ReceivePackaxisTask([FromBody] List<MESProPackInfoDTO> mESProPackInfoDTOs)
        {
            return Service.ReceivePackaxisTask(mESProPackInfoDTOs);
        }
    }
}