1
z8018
2025-04-08 e69f814f50fd59739dbedd88518dc8cb8d2ed3ee
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
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseController;
using WIDESEAWCS_DTO.BasicInfo;
using WIDESEAWCS_IBasicInfoService;
using WIDESEAWCS_ISystemServices;
using WIDESEAWCS_ITaskInfoService;
using WIDESEAWCS_Model.Models;
 
namespace WIDESEAWCS_Server.Controllers.BasicInfo
{
    [Route("api/OrderDetails")]
    [ApiController]
    public class OrderDetailsController : ApiBaseController<IOrderDetailsService, OrderDetails>
    {
        private readonly IHttpContextAccessor _httpContextAccessor;
        public OrderDetailsController(IOrderDetailsService service, IHttpContextAccessor httpContextAccessor) : base(service)
        {
            _httpContextAccessor = httpContextAccessor;
        }
 
        [HttpPost, Route("ToMesBarc"), AllowAnonymous]
        public ToMesBarcRes ToMesBarc(int Barcodes)
        {
            ToMesBarcRes? toMes = Service.ToMesBarc(Barcodes);
            return toMes != null ? toMes : new ToMesBarcRes() { code = -1, type = false };
        }
    }
}