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