diff --git a/auto-solution-admin/src/main/java/com/solution/web/controller/behaviour/HbNodeCommandController.java b/auto-solution-admin/src/main/java/com/solution/web/controller/behaviour/HbNodeCommandController.java new file mode 100644 index 0000000..7e7a6ef --- /dev/null +++ b/auto-solution-admin/src/main/java/com/solution/web/controller/behaviour/HbNodeCommandController.java @@ -0,0 +1,25 @@ +package com.solution.web.controller.behaviour; + +import com.solution.common.core.controller.BaseController; +import com.solution.common.core.domain.AjaxResult; +import com.solution.system.service.HbNodeCommandService; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +@RequestMapping("/api/node/command") +public class HbNodeCommandController extends BaseController { + + private final HbNodeCommandService nodeCommandService; + + public HbNodeCommandController(HbNodeCommandService nodeCommandService) { + this.nodeCommandService = nodeCommandService; + } + + @GetMapping(value = "/all") + public AjaxResult all() { + return success(nodeCommandService.findAll()); + } + +}