src/main/java/com/nathan/crm/controller/ModuleController.java
(完整代码) 927Bpackage com.nathan.crm.controller;
import com.nathan.base.BaseController;
import com.nathan.crm.model.TreeModel;
import com.nathan.crm.service.ModuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.List;
@Controller
@RequestMapping("module")
public class ModuleController extends BaseController {
@Autowired
private ModuleService moduleService;
/**
* 查询所有的模块以zTree的格式存储
*
* @param roleId 角色id
* @return
*/
@GetMapping("queryAllModules")
@ResponseBody
public List<TreeModel> queryAllModules(Integer roleId){
return moduleService.queryAllModules(roleId);
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。