Node增删改查
parent
cb90fb6458
commit
d2f33b2f0f
|
@ -12,7 +12,6 @@ import io.swagger.v3.oas.annotations.Operation;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
*/
|
||||
|
@ -76,6 +75,7 @@ public class NodeController {
|
|||
* @param req
|
||||
* @return
|
||||
*/
|
||||
|
||||
@PutMapping("/{id}")
|
||||
@Operation(summary = "任务信息修改",description = "通过任务id修改任务信息")
|
||||
public Result update(@PathVariable("id") Integer id , @RequestBody NodeUpdReq req){
|
||||
|
|
|
@ -32,6 +32,7 @@ public class TaskInfoController {
|
|||
* @param req
|
||||
* @return
|
||||
*/
|
||||
|
||||
@PostMapping("/list")
|
||||
@Operation(summary = "查看任务", description = "根据任务名称 权重 状态 查询")
|
||||
public Result<Page<TaskInfoResp>> selectList(@RequestBody TaskInfoListReq req) {
|
||||
|
@ -43,6 +44,7 @@ public class TaskInfoController {
|
|||
* @param req
|
||||
* @return
|
||||
*/
|
||||
|
||||
@PostMapping()
|
||||
@Operation(summary = "添加任务", description = "添加任务信息表")
|
||||
public Result save(@RequestBody @Validated TaskInfoAddReq req) {
|
||||
|
@ -55,6 +57,7 @@ public class TaskInfoController {
|
|||
* @param id
|
||||
* @return
|
||||
*/
|
||||
|
||||
@GetMapping("/{id}")
|
||||
@Operation(summary = "任务信息查询",description = "通过任务id查询任务信息")
|
||||
public Result<TaskInfoResp> selectById(@PathVariable("id") Long id) {
|
||||
|
@ -62,6 +65,7 @@ public class TaskInfoController {
|
|||
return Result.success(TaskInfo.build(byId));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id删除任务
|
||||
* @param id
|
||||
|
|
Loading…
Reference in New Issue