yanjinhui
2025-03-19 2632d69e3a6364b2d32c00a1526bc745aaa4bb58
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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);
        }
    }
}