refactor: 更新项目引用路径从perfect-panel/ppanel-server到perfect-panel/server
Build docker and publish / build (20.15.1) (push) Failing after 6m27s

feat: 添加版本和构建时间变量
fix: 修正短信队列类型注释错误
style: 清理未使用的代码和测试文件
docs: 更新安装文档中的下载链接
chore: 迁移数据库脚本添加日志和订阅配置
This commit is contained in:
2025-10-13 01:33:03 -07:00
parent 393b42f35a
commit c582087c0f
974 changed files with 23609 additions and 23398 deletions
+21 -11
View File
@@ -2,15 +2,16 @@ package handler
import (
"github.com/hibiken/asynq"
"github.com/perfect-panel/ppanel-server/internal/svc"
countrylogic "github.com/perfect-panel/ppanel-server/queue/logic/country"
orderLogic "github.com/perfect-panel/ppanel-server/queue/logic/order"
smslogic "github.com/perfect-panel/ppanel-server/queue/logic/sms"
"github.com/perfect-panel/ppanel-server/queue/logic/subscription"
"github.com/perfect-panel/ppanel-server/queue/logic/traffic"
"github.com/perfect-panel/ppanel-server/queue/types"
"github.com/perfect-panel/server/internal/svc"
countrylogic "github.com/perfect-panel/server/queue/logic/country"
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"
emailLogic "github.com/perfect-panel/ppanel-server/queue/logic/email"
emailLogic "github.com/perfect-panel/server/queue/logic/email"
)
func RegisterHandlers(mux *asynq.ServeMux, serverCtx *svc.ServiceContext) {
@@ -20,7 +21,6 @@ func RegisterHandlers(mux *asynq.ServeMux, serverCtx *svc.ServiceContext) {
mux.Handle(types.ForthwithSendEmail, emailLogic.NewSendEmailLogic(serverCtx))
// Send sms task
mux.Handle(types.ForthwithSendSms, smslogic.NewSendSmsLogic(serverCtx))
// Defer close order task
mux.Handle(types.DeferCloseOrder, orderLogic.NewDeferCloseOrderLogic(serverCtx))
// Forthwith activate order task
@@ -34,6 +34,16 @@ func RegisterHandlers(mux *asynq.ServeMux, serverCtx *svc.ServiceContext) {
// Schedule total server data
mux.Handle(types.SchedulerTotalServerData, traffic.NewServerDataLogic(serverCtx))
//定时查单
mux.Handle(types.SchedulerCheckOrder, orderLogic.NewCheckOrderLogic(serverCtx))
// Schedule reset traffic
mux.Handle(types.SchedulerResetTraffic, traffic.NewResetTrafficLogic(serverCtx))
// ScheduledBatchSendEmail
mux.Handle(types.ScheduledBatchSendEmail, emailLogic.NewBatchEmailLogic(serverCtx))
// ScheduledTrafficStat
mux.Handle(types.SchedulerTrafficStat, traffic.NewStatLogic(serverCtx))
// ForthwithQuotaTask
mux.Handle(types.ForthwithQuotaTask, task.NewQuotaTaskLogic(serverCtx))
}