yanjinhui
2025-03-10 f391144114bedefe44c700a590bd50272ff067ec
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
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseController;
using WIDESEAWCS_DTO.SerialPort;
using WIDESEAWCS_DTO.TaskInfo;
using WIDESEAWCS_ITaskInfoService;
using WIDESEAWCS_Model.Models;
 
 
namespace WIDESEAWCS_Server.Controllers.SerialPort
{
    [Route("api/[controller]")]
    [ApiController]
    public class ProcessController : ApiBaseController<IProcessServer, Dt_Process>
    {
        public ProcessController(IProcessServer service) : base(service)
        {
 
        }
        [HttpGet, Route("GetProcess"), AllowAnonymous]
        public WebResponseContent GetProcess(string gruop)
        {
            return Service.GetProcess(gruop);
        }
 
        [HttpGet, Route("GetSleeveandStep"), AllowAnonymous]
        public WebResponseContent GetSleeveandStep(string grops)
        {
            return Service.GetSleeveandStep(grops);
        }
 
        [HttpPost, Route("AddProcess"), AllowAnonymous]
        public WebResponseContent AddProcess([FromBody] AddProcessDTO addProcessDTO)
        {
            return Service.AddProcess(addProcessDTO);
        }
 
        [HttpPut, Route("Upprocess"), AllowAnonymous]
        public WebResponseContent Upprocess([FromBody] PutProcessDTO addProcessDTO)
        {
            return Service.Upprocess(addProcessDTO);
        }
 
 
        [HttpGet, Route("Getcircuit"), AllowAnonymous]
        public WebResponseContent Getcircuit(string groups)
        {
            return Service.Getcircuit(groups);
        }
 
    }
}