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 treeAllMD(){ return mdService.treeAllMD(); } }