using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using WIDESEAWCS_Core; using WIDESEAWCS_Core.BaseController; using WIDESEAWCS_ITelescopicService; using WIDESEAWCS_IWMSPart; using WIDESEAWCS_Model.Models; namespace WIDESEAWCS_Server.Controllers.Telescopic { [Route("api/[controller]")] [ApiController] public class MaintenanceController : ApiBaseController { public MaintenanceController(IMaintenanceService service) : base(service) { } /// /// 查看检修管理 /// /// [HttpGet,Route("ShowMaintence"),AllowAnonymous] public WebResponseContent ShowMaintence() { return Service.ShowMaintence(); } /// /// 在检修人员监控 /// /// [HttpPost, Route("PersonnelMonitoring"), AllowAnonymous] public WebResponseContent PersonnelMonitoring(bool ispossible) { return Service.PersonnelMonitoring(ispossible); } /// /// 更改状态,运行进入检修 /// /// /// [HttpPost,Route("RunOperation"), AllowAnonymous] public WebResponseContent RunOperation(int id) { return Service.RunOperation(id); } /// /// 更改状态 /// /// /// [HttpPost, Route("ChangeTasState"), AllowAnonymous] public WebResponseContent ChangeTasState(int id) { return Service.ChangeTasState(id); } } }