using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using WIDESEAWCS_Core; using WIDESEAWCS_Core.BaseController; using WIDESEAWCS_DTO.Telescopic; 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) { } /// /// 查看检修管理 /// /// <<<<<<< 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 } /// /// 在检修人员监控 /// /// [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 } /// /// 更改状态,运行进入检修 /// /// /// [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); } <<<<<<< Updated upstream ======= /// /// 检修操作记录 /// /// [HttpPost, Route("MaintenanceOperationRecord"), AllowAnonymous] public WebResponseContent MaintenanceOperationRecord([FromBody] PaginationDTO pagination) { return Service.MaintenanceOperationRecord(pagination); } >>>>>>> Stashed changes } }