Initial commit (code only without large binaries)

This commit is contained in:
robin
2026-02-15 18:58:44 +08:00
commit 35df75498f
9442 changed files with 1495866 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
//go:build plus
package finance
import (
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
"github.com/TeaOSLab/EdgeAdmin/internal/plus"
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/finance/fee"
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/finance/users"
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
"github.com/iwind/TeaGo"
)
func init() {
TeaGo.BeforeStart(func(server *TeaGo.Server) {
server.
Helper(plus.NewHelper(plus.ComponentCodeFinance)).
Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeFinance)).
// 财务管理
Prefix("/finance").
Get("", new(IndexAction)).
Data("teaMenu", "finance").
// 计费设置
Prefix("/finance/fee").
Data("teaSubMenu", "fee").
GetPost("", new(fee.IndexAction)).
Get("/traffic", new(fee.TrafficAction)).
Get("/bandwidth", new(fee.BandwidthAction)).
GetPost("/updatePricePopup", new(fee.UpdatePricePopupAction)).
GetPost("/calculator", new(fee.CalculatorAction)).
// 用户
Prefix("/finance/users").
Post("/options", new(users.OptionsAction)).
//
EndAll()
})
}