yanjinhui
2025-03-17 b8510ca5d1e56ef78cd27c45b6bd65a2c13f6b27
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
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 NjTaskController : ApiBaseController<INjTaskServer, Dt_NjTask>
    {
        public NjTaskController(INjTaskServer service) : base(service)
        {
 
        }
 
 
        [HttpPost, Route("Submtandsave"), AllowAnonymous] //提交并保存模板
        public WebResponseContent Submtandsave([FromBody] NjtakeDTO njtakeDTO)
        {
            return Service.Submtandsave(njtakeDTO);
        }
 
 
        [HttpPost, Route("Submit"), AllowAnonymous] //提交
        public WebResponseContent Submit([FromBody] NotempDTO notempDTO)
        {
            return Service.Submit(notempDTO);
        }
 
        [HttpPost, Route("AddNjtake"), AllowAnonymous]//添加任务表信息
        public WebResponseContent AddNjtake([FromBody] AddNjtDTO addNjtDTO)
        {
            return Service.AddNjtake(addNjtDTO);
        }
 
        [HttpGet, Route("GetNjdetail"), AllowAnonymous]
        public WebResponseContent GetNjdetail(string njtaskID)
        {
            return Service.GetNjdetail(njtaskID);
        }
 
 
        [HttpPut, Route("PuNjtake"), AllowAnonymous]
        public WebResponseContent PuNjtake([FromBody] PutNjtDTO putNjtDTO)
        {
            return Service.PuNjtake(putNjtDTO);
        }
 
 
 
    }
}