Initial commit (code only without large binaries)
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
//go:build plus
|
||||
|
||||
package accounts
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/plus"
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/finance/accounts/account"
|
||||
"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)).
|
||||
Data("teaMenu", "finance").
|
||||
Data("teaSubMenu", "accounts").
|
||||
|
||||
// 财务管理
|
||||
Prefix("/finance/accounts").
|
||||
Get("", new(IndexAction)).
|
||||
GetPost("/update", new(UpdateAction)).
|
||||
Post("/userAccount", new(UserAccountAction)).
|
||||
|
||||
// 账户
|
||||
Prefix("/finance/accounts/account").
|
||||
Get("", new(account.IndexAction)).
|
||||
Get("/logs", new(account.LogsAction)).
|
||||
GetPost("/update", new(account.UpdateAction)).
|
||||
|
||||
//
|
||||
EndAll()
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user