feat: 完善 Rock 发货异常闭环与绑定判定
This commit is contained in:
@@ -301,6 +301,10 @@ func Setup(h *Handlers) *gin.Engine {
|
||||
platform.POST("/platform/rock/tokens/:id/release-check", h.Rock.CheckReleaseToken)
|
||||
platform.GET("/platform/rock/tokens/:id/status-logs", h.Rock.ListTokenStatusLogs)
|
||||
platform.GET("/platform/rock/tokens/:id/delivery-logs", h.Rock.ListDeliveryLogs)
|
||||
platform.GET("/platform/rock/tokens/:id/incidents", h.Rock.ListTokenIncidents)
|
||||
platform.GET("/platform/rock/incidents", h.Rock.ListIncidents)
|
||||
platform.PATCH("/platform/rock/incidents/:id", h.Rock.ResolveIncident)
|
||||
platform.POST("/platform/rock/incidents/:id/retry", h.Rock.RetryIncident)
|
||||
platform.POST("/platform/rock/tokens/:id/refresh-binding", h.Rock.RefreshBinding)
|
||||
platform.POST("/platform/rock/token-batches/refresh-stale", h.Rock.RefreshStaleTokens)
|
||||
platform.GET("/platform/rock/token-batches/preview", h.Rock.PreviewTokenDelete)
|
||||
|
||||
@@ -54,7 +54,7 @@ func newTestRouterWithDB(t *testing.T) (*gin.Engine, *jwt.Manager, *gorm.DB) {
|
||||
SourceOpen: handler.NewOpenHandler(fulfillmentSvc),
|
||||
Merchant: handler.NewMerchantHandler(merchantSvc, fulfillmentSvc, callbackSvc, deliverySvc, rechargeSvc),
|
||||
Recharge: handler.NewRechargeHandler(rechargeSvc),
|
||||
Rock: handler.NewRockHandler(rockSvc),
|
||||
Rock: handler.NewRockHandler(rockSvc, deliverySvc),
|
||||
JWT: jm,
|
||||
Tenant: tenantSvc,
|
||||
OpenDB: db,
|
||||
|
||||
Reference in New Issue
Block a user