A backend permission management system with frontend and backend separation, built on technologies such as .NET 10.0, FreeSql Suite, Autofac, Mapster, CAP, and more. It embraces a development philosophy that anticipates your needs, aiming to facilitate rapid development for everyone. Leveraging FreeSql ORM, it supports mainstream domestic and international databases, read-write separation, sharding, distributed transactions (TCC/SAGA), and other functionalities. Upon project initialization, the database is automatically generated. The CodeFirst mode enables automatic synchronization of table structures and permission data from entity configurations to the database. To explore the project, utilize the new version of Swagger API documentation to view interface request parameters and response data.
- Admin.Core vue3 version preview https://admin.zhontai.net
account:user password:123asd
- View development documentation:https://zhontai.net
- Admin.Core v3 version https://github.com/zhontai/Admin.Core
Here is the translated document with numbered items:
- User Management: Manage and query users, supporting advanced query schemes and department-linked user retrieval. Users can be enabled/disabled, set/unset as supervisors, have passwords reset, be configured with multiple roles and departments, allow one-click login for specified users, view online/offline status, be forced offline, transferred between departments, and managed via recycle bin.
- Role Management: Manage roles and role groups, supporting role-based user linkage, menu and data permission settings, and batch addition/removal of employees.
- Department Management: Manage departments, supporting tree-structured lists and graphical displays.
- Permission Management: Manage permission groups, menus, and permission points across multiple platforms. Permission points can be configured with multiple interface addresses and displayed in a tree-structured list.
- Tenant Plans: Manage tenant plans, supporting menu permission settings and batch addition/removal of plan-associated enterprises.
- Tenant Management: Manage tenants. New tenants are automatically initialized with default departments, roles, and administrators. Supports plan configuration, enabling/disabling, and one-click login for tenant administrators.
- Dictionary Management: Manage data dictionary categories and subcategories, supporting category-linked subcategory retrieval. Subcategories feature server-side multi-column sorting, data import, and export functions.
- Task Scheduling: Manage and view tasks along with their execution logs. Supports task creation, modification, deletion, starting, pausing, immediate execution, failure retries, and alert email notifications.
- Cache Management: Query cache lists and clear caches based on cache keys.
- Interface Management: Manage interfaces, supporting synchronization functions. Primarily used for selecting interfaces when adding permission points. Features tree-structured lists, operation log toggles, and configuration of request parameters and response results in log details.
- View Management: Manage views across multiple platforms, used for selecting view components when adding menus. Supports tree-structured list display.
- File Management: Manage file uploads, supporting file queries, uploading to OSS or local storage, downloading, copying file addresses, deleting files, and enlarged image previews for pictures.
- Region Management: Manage and query regions, supporting enabling/disabling, setting/unsetting popular regions, and one-click synchronization of national administrative division data.
- Login Logs: Query login logs, recording successful and failed login attempts with IP location tracking.
- Operation Logs: Query operation logs, recording normal and abnormal user operations with IP location tracking and detailed log viewing.
- Personal Center: Display and modify personal information, including password, phone number, and email updates.
- Message Categories: Manage message categories, supporting 2-level custom classifications for message management selection.
- Message Management: Manage messages, supporting targeted user messaging with read status and timestamp tracking.
- Inbox: Manage internal messages, supporting detailed viewing, deletion, marking as read, and marking all as read.
- Print Templates: Manage print templates, supporting component drag-and-drop, JSON data source configuration, designer tools, parameter initialization, paper selection/customization, scaling, layout adjustments, printing, previewing, template JSON viewing, and saving/refreshing templates.
Using the latest version of .NET .NET version > 10.0+
Create a new project using the source code of an existing project.
# Clone a project
git clone https://github.com/zhontai/Admin.Core.git
# Enter the project
cd Admin.Core
# Open the project
Open the ZhonTai.sln solution
# Run the project
Set ZhonTai.Admin.Host as the startup project, press Ctrl + F5 to build and run the project directly without debugging
Alternatively, navigate to the ZhonTai.Admin.Host directory in Command Prompt (cmd) and enter the dotnet run command to execute the project.
# Package and Publish
Select ZhonTai.Admin.Host, then right-click and choose Publish from the context menu.Create a new project using a project template.
# Installation template
dotnet new install ZhonTai.Template.App
# View help
dotnet new MyApp -h
# New the project
dotnet new MyApp -n MyCompanyName.MySys -at sys -ac sys -p 16010 -gp 16011 -db MySql
# Run the project
Set MyCompanyName.MySys.Host as the startup project, press Ctrl + F5 to compile and run the project directly (without debugging)
Alternatively, navigate to the 'MyCompanyName.MySys.Host' directory in Command Prompt (cmd) and enter the 'dotnet run' command to execute the project.
# Package and Publish
Select MyCompanyName.MySys.Host, then right-click and choose Publish from the context menu.Using Tye to Run & Debug Modular Projects:
- Install Tye
dotnet tool install -g Microsoft.Tye --version "0.12.0-*" --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json
- Run & Debug
1. Install the EasyRun extension for Visual Studio.
2. Open Visual Studio, navigate to View -> Other Windows -> EasyRun to open the EasyRun window.
3. Click the Tye button to run the application.
4. Select the microservice you want to debug and click the Debugger button to start debugging.
Running the Frontend Project
-
Clone the Code
The frontend project is located in theui/zhontai.ui.admin.vue3directory. -
Set Up Registry (Optional - Faster Chinese Mirror)
# Install nrm (NPM registry manager) npm install -g nrm --registry https://registry.npmmirror.com # List available registries nrm ls # Switch to npm mirror nrm use npm
-
Install pnpm
npm install -g pnpm
-
Install Dependencies
pnpm install
-
Run the Development Server
pnpm dev
Zhontai Admin development group (2000-member capacity)
-
QQ Group Number:1058693879
If you think the framework is good, or if you are already using it, we hope you can go to Github or Gitee Please give me a ⭐ Star, it would be a great encouragement and support to me.