feat(quota): enhance quota task management with new request structures and processing logic
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
orderLogic "github.com/perfect-panel/server/queue/logic/order"
|
||||
smslogic "github.com/perfect-panel/server/queue/logic/sms"
|
||||
"github.com/perfect-panel/server/queue/logic/subscription"
|
||||
"github.com/perfect-panel/server/queue/logic/task"
|
||||
"github.com/perfect-panel/server/queue/logic/traffic"
|
||||
"github.com/perfect-panel/server/queue/types"
|
||||
|
||||
@@ -42,4 +43,7 @@ func RegisterHandlers(mux *asynq.ServeMux, serverCtx *svc.ServiceContext) {
|
||||
|
||||
// ScheduledTrafficStat
|
||||
mux.Handle(types.SchedulerTrafficStat, traffic.NewStatLogic(serverCtx))
|
||||
|
||||
// ForthwithQuotaTask
|
||||
mux.Handle(types.ForthwithQuotaTask, task.NewQuotaTaskLogic(serverCtx))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user