refactor: remove legacy finance module
This commit is contained in:
@@ -21,7 +21,6 @@ import (
|
||||
"ops-assistant/internal/core/ecode"
|
||||
"ops-assistant/internal/core/ops"
|
||||
"ops-assistant/internal/core/runbook"
|
||||
"ops-assistant/internal/service"
|
||||
"ops-assistant/models"
|
||||
"ops-assistant/version"
|
||||
|
||||
@@ -40,7 +39,6 @@ type WebServer struct {
|
||||
db *gorm.DB
|
||||
dbPath string
|
||||
baseDir string
|
||||
finance *service.FinanceService
|
||||
port int
|
||||
username string
|
||||
password string
|
||||
@@ -161,12 +159,11 @@ var rolePermissions = map[string][]string{
|
||||
},
|
||||
}
|
||||
|
||||
func NewWebServer(db *gorm.DB, dbPath, baseDir string, finance *service.FinanceService, port int, username, password, sessionKey string, reloadFn func() (string, error)) *WebServer {
|
||||
func NewWebServer(db *gorm.DB, dbPath, baseDir string, port int, username, password, sessionKey string, reloadFn func() (string, error)) *WebServer {
|
||||
return &WebServer{
|
||||
db: db,
|
||||
dbPath: dbPath,
|
||||
baseDir: baseDir,
|
||||
finance: finance,
|
||||
port: port,
|
||||
username: username,
|
||||
password: password,
|
||||
|
||||
Reference in New Issue
Block a user