Skip to content

Commit 686a3f3

Browse files
authored
Merge pull request #155 from Mikaelemmmm/dev
Dev
2 parents 4d9cc0b + e159937 commit 686a3f3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

app/mqueue/cmd/job/internal/logic/routes.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"looklook/app/mqueue/cmd/job/jobtype"
88
)
99

10-
1110
type CronJob struct {
1211
ctx context.Context
1312
svcCtx *svc.ServiceContext
@@ -26,15 +25,15 @@ func (l *CronJob) Register() *asynq.ServeMux {
2625
mux := asynq.NewServeMux()
2726

2827
//scheduler job
29-
mux.Handle(jobtype.ScheduleSettleRecord,NewSettleRecordHandler(l.svcCtx))
28+
mux.Handle(jobtype.ScheduleSettleRecord, NewSettleRecordHandler(l.svcCtx))
3029

3130
//defer job
32-
mux.Handle(jobtype.DeferCloseHomestayOrder,NewCloseHomestayOrderHandler(l.svcCtx))
31+
mux.Handle(jobtype.DeferCloseHomestayOrder, NewCloseHomestayOrderHandler(l.svcCtx))
3332

33+
//SuccessNotifyUser job
34+
mux.Handle(jobtype.MsgPaySuccessNotifyUser, NewPaySuccessNotifyUserHandler(l.svcCtx))
3435
//queue job , asynq support queue job
3536
// wait you fill..
3637

3738
return mux
3839
}
39-
40-

0 commit comments

Comments
 (0)