File tree 1 file changed +4
-5
lines changed
app/mqueue/cmd/job/internal/logic
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 7
7
"looklook/app/mqueue/cmd/job/jobtype"
8
8
)
9
9
10
-
11
10
type CronJob struct {
12
11
ctx context.Context
13
12
svcCtx * svc.ServiceContext
@@ -26,15 +25,15 @@ func (l *CronJob) Register() *asynq.ServeMux {
26
25
mux := asynq .NewServeMux ()
27
26
28
27
//scheduler job
29
- mux .Handle (jobtype .ScheduleSettleRecord ,NewSettleRecordHandler (l .svcCtx ))
28
+ mux .Handle (jobtype .ScheduleSettleRecord , NewSettleRecordHandler (l .svcCtx ))
30
29
31
30
//defer job
32
- mux .Handle (jobtype .DeferCloseHomestayOrder ,NewCloseHomestayOrderHandler (l .svcCtx ))
31
+ mux .Handle (jobtype .DeferCloseHomestayOrder , NewCloseHomestayOrderHandler (l .svcCtx ))
33
32
33
+ //SuccessNotifyUser job
34
+ mux .Handle (jobtype .MsgPaySuccessNotifyUser , NewPaySuccessNotifyUserHandler (l .svcCtx ))
34
35
//queue job , asynq support queue job
35
36
// wait you fill..
36
37
37
38
return mux
38
39
}
39
-
40
-
You can’t perform that action at this time.
0 commit comments