refactor: remove legacy finance module

This commit is contained in:
2026-09-15 08:12:22 +08:00
parent 2834f765a9
commit 5e453b83e2
9 changed files with 39 additions and 483 deletions
+4 -7
View File
@@ -11,7 +11,6 @@ import (
"time"
"ops-assistant/internal/core/ops"
"ops-assistant/internal/service"
"ops-assistant/internal/core/ai"
"ops-assistant/models"
@@ -26,12 +25,11 @@ import (
"gorm.io/gorm"
)
// DefaultUserID 统一用户ID,使所有平台共享同一份账本
// DefaultUserID 统一用户ID
const DefaultUserID int64 = 1
type QQBot struct {
api openapi.OpenAPI
finance *service.FinanceService
credentials *token.QQBotCredentials
db *gorm.DB
opsSvc *ops.Service
@@ -39,11 +37,10 @@ type QQBot struct {
aiAutoReload time.Time
}
func NewQQBot(db *gorm.DB, appID string, secret string, finance *service.FinanceService, opsSvc *ops.Service) *QQBot {
func NewQQBot(db *gorm.DB, appID string, secret string, opsSvc *ops.Service) *QQBot {
return &QQBot{
db: db,
finance: finance,
opsSvc: opsSvc,
db: db,
opsSvc: opsSvc,
credentials: &token.QQBotCredentials{
AppID: appID,
AppSecret: secret,