| | |
| | | using System; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseController; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_DTO.Telescopic; |
| | | using WIDESEAWCS_ITelescopicService; |
| | | using WIDESEAWCS_IWMSPart; |
| | |
| | | [ApiController] |
| | | public class MaintenanceController : ApiBaseController<IMaintenanceService, Dt_Maintenance> |
| | | { |
| | | |
| | | public MaintenanceController(IMaintenanceService service) : base(service) |
| | | { |
| | | |
| | |
| | | [HttpPost,Route("RunOperation"), AllowAnonymous] |
| | | public WebResponseContent RunOperation(int id, string ispossible) |
| | | { |
| | | // |
| | | return Service.RunOperation(id,ispossible); |
| | | } |
| | | |
| | |
| | | [HttpPost, Route("MaintenanceOperationRecord"), AllowAnonymous] |
| | | public WebResponseContent MaintenanceOperationRecord([FromBody] PaginationDTO pagination) |
| | | { |
| | | |
| | | return Service.MaintenanceOperationRecord(pagination); |
| | | } |
| | | |
| | |
| | | [HttpPost, Route("MaintenanceTasksOfTheDay"), AllowAnonymous] |
| | | public WebResponseContent MaintenanceTasksOfTheDay(string account) |
| | | { |
| | | |
| | | return Service.MaintenanceTasksOfTheDay(account); |
| | | } |
| | | |
| | |
| | | [HttpPost, Route("StartMaintenceTask"), AllowAnonymous] |
| | | public WebResponseContent StartMaintenceTask(string account) |
| | | { |
| | | return Service.StartMaintenceTask(account); |
| | | var userIp = HttpContext.GetUserIp();//用户电脑ip |
| | | var reslut = userIp.Replace("::ffff:", " "); |
| | | return Service.StartMaintenceTask(account, reslut); |
| | | } |
| | | |
| | | |