using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using WIDESEA_Core; using WIDESEA_Core.BaseController; using WIDESEA_Core.Const; using WIDESEA_Core.Helper; using WIDESEA_Core.HttpContextUser; using WIDESEA_ISystemService; using WIDESEA_Model; using WIDESEA_Model.Models; using WIDESEA_Model.Models.System; namespace WIDESEA_WMSServer.Controllers { [Route("api/Dt_Repair")] [ApiController] public class Dt_RepairController : ApiBaseController { private readonly IHttpContextAccessor _httpContextAccessor; public Dt_RepairController(IDt_RepairService tenantService, IHttpContextAccessor httpContextAccessor) : base(tenantService) { _httpContextAccessor = httpContextAccessor; } [HttpGet, Route("GetBarcodeMessage"), AllowAnonymous] public WebResponseContent GetBarcodeMessage(string barocde) { return Service.GetBarcodeMessage(barocde); } [HttpGet, Route("UpdateBarcode"), AllowAnonymous] public WebResponseContent UpdateBarcode(string barocde) { return Service.UpdateBarcode(barocde); } [HttpGet, Route("UpdateBarcoend"), AllowAnonymous] public WebResponseContent UpdateBarcoend(string barocde, int wcount, int selectvalue) { return Service.UpdateBarcoend(barocde, wcount, selectvalue); } [HttpGet, Route("UpdateBarcoendwj"), AllowAnonymous] public WebResponseContent UpdateBarcoendwj(string barocde) { return Service.UpdateBarcoendwj(barocde); } } }