diff --git a/README.md b/README.md index bc5a7d1..bd540d7 100644 --- a/README.md +++ b/README.md @@ -8,21 +8,19 @@ This document presents an example of dynamic permission menu loading based on jC **Technology Stack** - **Backend:** Spring Boot 2.x + jCasbin + Spring Data JPA -- **Frontend:** Bootstrap + Thymeleaf +- **Frontend:** Tailwind CSS + Thymeleaf **Startup Instructions** 1. Build the menu structure you need in the [`casbin/policy.csv`](https://github.com/jcasbin/jcasbin-menu-permission/blob/master/src/main/resources/casbin/policy.csv) file. Specifically, `g2` represents the relationship between menus. For example: `g2, submenu name, parent menu name`. -2. Once the configuration is complete, run the `main` method in [`Application.java`](https://github.com/jcasbin/jcasbin-menu-permission/blob/master/src/main/java/org/casbin/Application.java) located under `org/casbin/`. Access `http://localhost:8080/casbin/menu` for testing. +2. Once the configuration is complete, run the `main` method in [`Application.java`](https://github.com/jcasbin/jcasbin-menu-permission/blob/master/src/main/java/org/casbin/Application.java) located under `org/casbin/`. Access `http://localhost:8080/` for testing. 3. The access control model file for jCasbin is located at [`casbin/model.conf`](https://github.com/jcasbin/jcasbin-menu-permission/blob/master/src/main/resources/casbin/model.conf), and the policy file is at [`casbin/policy.csv`](https://github.com/jcasbin/jcasbin-menu-permission/blob/master/src/main/resources/casbin/policy.csv). Modify them as needed based on your requirements. ## Simple Examples **Demonstration video** - +example_demo **Root user** @@ -30,7 +28,9 @@ This document presents an example of dynamic permission menu loading based on jC **Admin user** -admin_example +admin_example + +admin_example **Normal user** diff --git a/examples/admin_example.png b/examples/admin_example.png deleted file mode 100644 index 3d78cbd..0000000 Binary files a/examples/admin_example.png and /dev/null differ diff --git a/examples/admin_example_1.png b/examples/admin_example_1.png new file mode 100644 index 0000000..ba82b7a Binary files /dev/null and b/examples/admin_example_1.png differ diff --git a/examples/admin_example_2.png b/examples/admin_example_2.png new file mode 100644 index 0000000..c367c5e Binary files /dev/null and b/examples/admin_example_2.png differ diff --git a/examples/example.gif b/examples/example.gif new file mode 100644 index 0000000..0a9750b Binary files /dev/null and b/examples/example.gif differ diff --git a/examples/example.mp4 b/examples/example.mp4 deleted file mode 100644 index 04a839c..0000000 Binary files a/examples/example.mp4 and /dev/null differ diff --git a/examples/root_example.png b/examples/root_example.png index 73edee8..130698f 100644 Binary files a/examples/root_example.png and b/examples/root_example.png differ diff --git a/examples/user_example.png b/examples/user_example.png index 5b0bd30..e798da1 100644 Binary files a/examples/user_example.png and b/examples/user_example.png differ