fix(order): 支持客服跨站处理订单与退款

This commit is contained in:
yml
2026-11-19 20:29:16 +08:00
parent 3492ecbe9b
commit cd081d1cdd
18 changed files with 349 additions and 191 deletions
+1
View File
@@ -910,6 +910,7 @@ func New(cfg config.Config, deps Dependencies, logger *zap.Logger) *gin.Engine {
adminRoutes.POST("/points-mall/redemptions/:id/complete", requirePerm("points_mall:manage"), pointsMallHandler.CompleteRedemption)
adminRoutes.GET("/orders", requirePerm("order:list"), orderHandler.AdminList)
adminRoutes.GET("/listing-orders/:id/latest", requirePerm("order:view"), orderHandler.AdminLatestByListing)
adminRoutes.GET("/orders/:id/payments", requirePerm("order:view"), paymentHandler.AdminOrderPayments)
adminRoutes.GET("/orders/:id", requirePerm("order:view"), orderHandler.AdminDetail)
adminRoutes.GET("/orders/:id/handoff-records", requirePerm("order:view"), orderHandler.AdminHandoffRecords)
adminRoutes.GET("/orders/:id/process-events", requirePerm("order:view"), orderHandler.AdminProcessEvents)
+1
View File
@@ -58,6 +58,7 @@ func TestExtractedAdminRoutesRemainRegisteredWithoutDuplicates(t *testing.T) {
"PUT /api/admin/roles/:id/permissions",
"PUT /api/admin/admin-users/:id/password",
"POST /api/admin/announcements/:id/publish",
"GET /api/admin/orders/:id/payments",
"GET /api/site/context",
"GET /api/site/check-domain",
"GET /api/distribution/sites/:id/listings",