| 1234567891011121314151617181920212223242526 |
- package seecoder.devcloud.web.controller;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.RestController;
- import seecoder.devcloud.web.po.TreeNode;
- import seecoder.devcloud.web.service.TreeNodeService;
- import java.util.List;
- @RestController
- public class TreeNodesController {
- @Autowired
- private TreeNodeService treeNodeService;
- //注意 这里混用po和vo了
- @GetMapping("/all")
- public List<TreeNode> getAllNodes(){
- return treeNodeService.getAllNodes();
- }
- @GetMapping("/")
- public String test(){
- return "123";
- }
- }
|