From 01c5166aad248cf4de78d7aeb53c31f961835f02 Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期日, 27 四月 2025 08:46:23 +0800 Subject: [PATCH] 1 --- 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/MaintenanceController.cs | 58 ++++++++++++++++++++++++++++++++++++++++------------------ 1 files changed, 40 insertions(+), 18 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/MaintenanceController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/MaintenanceController.cs" index 47a912f..34cdb72 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/MaintenanceController.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/MaintenanceController.cs" @@ -1,6 +1,7 @@ 锘縰sing Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; +using System; using WIDESEAWCS_Core; using WIDESEAWCS_Core.BaseController; using WIDESEAWCS_DTO.Telescopic; @@ -23,17 +24,10 @@ /// 鏌ョ湅妫�淇鐞� /// </summary> /// <returns></returns> -<<<<<<< Updated upstream - [HttpGet,Route("ShowMaintence"),AllowAnonymous] - public WebResponseContent ShowMaintence() - { - return Service.ShowMaintence(); -======= [HttpPost,Route("ShowMaintence"),AllowAnonymous] public WebResponseContent ShowMaintence([FromBody] PaginationDTO pagination) { return Service.ShowMaintence(pagination); ->>>>>>> Stashed changes } /// <summary> @@ -41,15 +35,9 @@ /// </summary> /// <returns></returns> [HttpPost, Route("PersonnelMonitoring"), AllowAnonymous] -<<<<<<< Updated upstream - public WebResponseContent PersonnelMonitoring(bool ispossible) - { - return Service.PersonnelMonitoring(ispossible); -======= public WebResponseContent PersonnelMonitoring([FromBody] PaginationDTO pagination) { return Service.PersonnelMonitoring(pagination); ->>>>>>> Stashed changes } @@ -59,9 +47,9 @@ /// <param name="id"></param> /// <returns></returns> [HttpPost,Route("RunOperation"), AllowAnonymous] - public WebResponseContent RunOperation(int id) + public WebResponseContent RunOperation(int id, string ispossible) { - return Service.RunOperation(id); + return Service.RunOperation(id,ispossible); } /// <summary> @@ -74,8 +62,6 @@ { return Service.ChangeTasState(id); } -<<<<<<< Updated upstream -======= /// <summary> @@ -87,6 +73,42 @@ { return Service.MaintenanceOperationRecord(pagination); } ->>>>>>> Stashed changes + + + /// <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); + } } } -- Gitblit v1.9.3