初始化
Build docker and publish / prepare (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.admin image_name:ppanel-admin name:admin]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.api image_name:ppanel-api name:api]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.node image_name:ppanel-node name:node]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.queue image_name:ppanel-queue name:queue]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.scheduler image_name:ppanel-scheduler name:scheduler]) (push) Has been cancelled
Build docker and publish / deploy (push) Has been cancelled
Build docker and publish / notify (push) Has been cancelled

This commit is contained in:
2026-02-26 04:12:43 -08:00
commit 9dacd85a89
210 changed files with 8261 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
package config
import (
"github.com/zeromicro/go-zero/core/logx"
"github.com/zeromicro/go-zero/core/trace"
)
type Config struct {
Name string
Mode string `json:",default=pro"`
Log logx.LogConf
Telemetry trace.Config `json:",optional"`
MySQL struct {
DataSource string
}
Redis struct {
Host string
Type string
Pass string `json:",optional"`
}
Asynq struct {
Addr string
Pass string `json:",optional"`
}
}
+15
View File
@@ -0,0 +1,15 @@
package handler
import (
"github.com/hibiken/asynq"
"github.com/zero-ppanel/zero-ppanel/apps/queue/internal/svc"
)
func RegisterHandlers(mux *asynq.ServeMux, svcCtx *svc.ServiceContext) {
// TODO: Register asynq task handlers
// mux.HandleFunc("task:send_email", logic.NewSendEmailLogic(svcCtx).Handle)
// mux.HandleFunc("task:send_sms", logic.NewSendSmsLogic(svcCtx).Handle)
// mux.HandleFunc("task:order_timeout", logic.NewOrderTimeoutLogic(svcCtx).Handle)
// mux.HandleFunc("task:telegram_notify", logic.NewTelegramNotifyLogic(svcCtx).Handle)
}
View File
+15
View File
@@ -0,0 +1,15 @@
package svc
import (
"github.com/zero-ppanel/zero-ppanel/apps/queue/internal/config"
)
type ServiceContext struct {
Config config.Config
}
func NewServiceContext(c config.Config) *ServiceContext {
return &ServiceContext{
Config: c,
}
}
+9
View File
@@ -0,0 +1,9 @@
package types
const (
TaskSendEmail = "task:send_email"
TaskSendSms = "task:send_sms"
TaskOrderTimeout = "task:order_timeout"
TaskTelegramNotify = "task:telegram_notify"
TaskSendMessage = "task:send_message"
)