ludc
2024-11-15 600c2ebb55b18d687ff848cb6c9d9a61b8bfa307
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.vci.web.controller;
 
import com.vci.starter.web.annotation.controller.VciUnCheckRight;
import com.vci.starter.web.pagemodel.Tree;
import com.vci.web.service.VciMdServiceI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.List;
 
/**
 * markdown的控制器
 * @author weidy
 * @date 2021/3/16
 */
@RestController
@RequestMapping("/mdController")
public class VciMdController {
 
    /**
     * md的服务
     */
    @Autowired
    private VciMdServiceI mdService;
 
    /**
     * 所有的帮助文档的名称
     * @return 名称的树
     */
    @GetMapping("/treeAllMD")
    @VciUnCheckRight
    public List<Tree> treeAllMD(){
        return  mdService.treeAllMD();
    }
}