| | |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using System; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseController; |
| | | using WIDESEAWCS_DTO.Telescopic; |
| | |
| | | { |
| | | return Service.MaintenanceOperationRecord(pagination); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ¥çç»å
¥ä»å¤©è´¦å·çæ£ä¿®ä»»å¡ |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("MaintenanceTasksOfTheDay"), AllowAnonymous] |
| | | public WebResponseContent MaintenanceTasksOfTheDay(string account) |
| | | { |
| | | return Service.MaintenanceTasksOfTheDay(account); |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// å¼å§æ£ä¿® |
| | | /// </summary> |
| | | /// <param name="account"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("StartMaintenceTask"), AllowAnonymous] |
| | | public WebResponseContent StartMaintenceTask(string account) |
| | | { |
| | | return Service.StartMaintenceTask(account); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// ç»ææ£ä¿® |
| | | /// </summary> |
| | | /// <param name="account"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("StopMaintenanceTask"), AllowAnonymous] |
| | | public WebResponseContent StopMaintenanceTask(string account) |
| | | { |
| | | return Service.StopMaintenanceTask(account); |
| | | } |
| | | } |
| | | } |