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<IMaintenanceService, Dt_Maintenance>
|
{
|
public MaintenanceController(IMaintenanceService service) : base(service)
|
{
|
|
}
|
|
/// <summary>
|
/// 查看检修管理
|
/// </summary>
|
/// <returns></returns>
|
[HttpGet,Route("ShowMaintence"),AllowAnonymous]
|
public WebResponseContent ShowMaintence()
|
{
|
return Service.ShowMaintence();
|
}
|
|
/// <summary>
|
/// 在检修人员监控
|
/// </summary>
|
/// <returns></returns>
|
[HttpPost, Route("PersonnelMonitoring"), AllowAnonymous]
|
public WebResponseContent PersonnelMonitoring(bool ispossible)
|
{
|
return Service.PersonnelMonitoring(ispossible);
|
}
|
|
|
/// <summary>
|
/// 更改状态,运行进入检修
|
/// </summary>
|
/// <param name="id"></param>
|
/// <returns></returns>
|
[HttpPost,Route("RunOperation"), AllowAnonymous]
|
public WebResponseContent RunOperation(int id)
|
{
|
return Service.RunOperation(id);
|
}
|
|
/// <summary>
|
/// 更改状态
|
/// </summary>
|
/// <param name="id"></param>
|
/// <returns></returns>
|
[HttpPost, Route("ChangeTasState"), AllowAnonymous]
|
public WebResponseContent ChangeTasState(int id)
|
{
|
return Service.ChangeTasState(id);
|
}
|
}
|
}
|