| using Autofac.Core; | 
| using Microsoft.AspNetCore.Authorization; | 
| using Microsoft.AspNetCore.Http; | 
| using Microsoft.AspNetCore.Mvc; | 
| using WIDESEAWCS_Core; | 
| using WIDESEAWCS_Core.BaseController; | 
| using WIDESEAWCS_QuartzJob.Models; | 
| using WIDESEAWCS_QuartzJob.Service; | 
|   | 
| namespace WIDESEAWCS_Server.Controllers.QuartzJob | 
| { | 
|     [Route("api/DeviceProtocol")] | 
|     [ApiController] | 
|     public class DeviceProtocolController : ApiBaseController<IDeviceProtocolService, Dt_DeviceProtocol> | 
|     { | 
|         public DeviceProtocolController(IDeviceProtocolService service) : base(service) | 
|         { | 
|         } | 
|         [HttpPost, Route("GetImportData"), AllowAnonymous] | 
|         public WebResponseContent GetImportData(List<IFormFile> fileInput) | 
|         { | 
|             return Service.GetImportData(fileInput); | 
|         } | 
|   | 
|         [HttpPost, Route("AddDeviceProtocol"), AllowAnonymous] | 
|         public WebResponseContent AddDeviceProtocol(int DeviceID,string DeviceChildCode, decimal DeviceProOffset) | 
|         { | 
|              | 
|             return Service.AddDeviceProtocol(DeviceID, DeviceChildCode, DeviceProOffset); | 
|         } | 
|     } | 
| } |