feat: 产品/客户/订单批量删除;接入 GeoLite2 城市库(地理分布/激活记录/审计日志显示归属地);仪表盘趋势图美化

This commit is contained in:
Logan.Li committed 2026-09-14 22:48:14 +08:00
1 parent 252ae14aef
commit 473dcd0aab
24 files changed
+431 -34

No files matched your search

+3
View File
@@ -160,6 +160,7 @@ func SetupRouter(db *gorm.DB, cfg *config.Config) *gin.Engine {
register(products, "GET", "/:id", productController.Get)
register(products, "PUT", "/:id", productController.Update)
register(products, "DELETE", "/:id", productController.Delete)
register(products, "POST", "/batch-delete", productController.BatchDelete)
register(products, "PATCH", "/:id/status", productController.UpdateStatus)
}
@@ -172,6 +173,7 @@ func SetupRouter(db *gorm.DB, cfg *config.Config) *gin.Engine {
register(customers, "GET", "/:id", customerController.Get)
register(customers, "PUT", "/:id", customerController.Update)
register(customers, "DELETE", "/:id", customerController.Delete)
register(customers, "POST", "/batch-delete", customerController.BatchDelete)
register(customers, "PATCH", "/:id/status", customerController.UpdateStatus)
}
@@ -211,6 +213,7 @@ func SetupRouter(db *gorm.DB, cfg *config.Config) *gin.Engine {
register(orders, "GET", "", orderController.List)
register(orders, "GET", "/:id", orderController.GetDetail)
register(orders, "POST", "/manual-grant", orderController.ManualGrant)
register(orders, "POST", "/batch-delete", orderController.BatchDelete)
}
// 客户权益管理