| | |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseController; |
| | | using WIDESEAWCS_Core.Enums; |
| | | using WIDESEAWCS_DTO.TaskInfo; |
| | | using WIDESEAWCS_ISystemServices; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | | |
| | | namespace WIDESEAWCS_Server.Controllers.Task |
| | | { |
| | | [Route("api/robotTask")] |
| | | [Route("api/RobotTask")] |
| | | [ApiController] |
| | | public class RobotTaskController : ApiBaseController<IRobotTaskService, Dt_RobotTask> |
| | | { |
| | | public RobotTaskController(IRobotTaskService service) : base(service) |
| | | { |
| | | |
| | | }
|
| | | [HttpGet, HttpPost, Route("DeleteRobotTask"), AllowAnonymous] |
| | | public WebResponseContent DeleteRobotTask(int id) |
| | | { |
| | | if (Service.DeleteRobotTask(id)){
|
| | | return WebResponseContent.Instance.OK();
|
| | | } |
| | | return WebResponseContent.Instance.Error(); |
| | | } |
| | | |
| | | } |
| | | } |