$ show yuzd/AntMgr
AntMgr is an ASP.NET Core MVC admin management framework designed for rapid development of backend systems. It provides built-in user, role, menu, and permission management with button-level authorization, along with a CRUD code generator and a SQL query tool. The architecture follows a layered pattern: Web (mgr.core) -> ServicesModel -> ViewModels -> Repository -> Infrastructure, using Autofac for DI, AutoMapper for object mapping, and a custom ORM (AntData.ORM) supporting MySQL and SQL Server. The frontend relies on jQuery, Bootstrap 3, and Vue.js 1.0 with numerous third-party plugins for UI components. Key features include role-based access control with hierarchical roles and god-mode bypass, a code generation engine using DotLiquid templates that produces full CRUD modules (Controller, Repository, ViewModel, ServiceModel, View), Excel import/export via Npoi.Mapper, and an integrated SQL editor with field hints. The system emphasizes convention over configuration, allowing developers to quickly scaffold admin pages with minimal setup. While functionally complete and actively maintained (last commit 2026-03-16), the codebase carries significant technical debt from outdated frontend libraries (Vue 1.0, Bootstrap 3, numerous jQuery plugins from 2014-2016) and a custom ORM that may lack community support. The hardcoded god-mode users and direct SQL execution tool also pose security risks. The code generation engine and Excel helper are the most reusable components, demonstrating practical patterns for meta-programming and data I/O.
The LLM identified 2 files worth highlighting for reuse:
This component provides a code generation engine that uses DotLiquid templates to produce complete CRUD modules (Controller, Repository, ViewModel, ServiceModel, and Razor views) from database table metadata. It demonstrates a meta-programming pattern where template files (Controller.tpl, Respository.tpl, etc.) are parameterized and rendered at runtime, enabling rapid scaffolding of consistent, convention-based admin interfaces. The engine is self-contained and could be extracted for use in other ASP.NET Core projects with minimal modification, making it a highly reusable asset for any project that requires automated code generation.
This component provides a generic Excel import/export utility built on Npoi.Mapper, using custom attributes (ExcelClass, ExcelField) to define mapping between .NET objects and spreadsheet columns. It abstracts away the complexities of Apache POI and offers a clean, declarative API for reading and writing Excel files. The pattern is fully reusable: any .NET project needing Excel data exchange can adopt this helper by defining attributes on its models. It demonstrates solid data engineering practicesβidempotent operations, error handling, and configuration-driven mapping.