开始整新权限管理系统

This commit is contained in:
yutou
2021-06-25 18:26:19 +08:00
parent d6734600fe
commit 590b26dac0
11 changed files with 398 additions and 38 deletions

View File

@@ -1,7 +1,14 @@
package com.yutou.tools;
import com.alibaba.fastjson.JSONObject;
import com.yutou.tools.Tools.AuthManagerController;
import com.yutou.tools.utils.Tools;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import java.util.List;
@SpringBootTest
class ToolsApplicationTests {
@@ -10,4 +17,16 @@ class ToolsApplicationTests {
void contextLoads() {
}
@Test
void main(){
List<String> list=Tools.getUrls("com.yutou.tools",null);
for (String aClass : list) {
System.out.println(aClass);
}
}
@Test
void ptest(){
JSONObject json=new AuthManagerController().getUserAuth("3");
System.out.println(json.toJSONString());
}
}