29 lines
700 B
Go
29 lines
700 B
Go
//go:build plus
|
|
|
|
package bills
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/plus"
|
|
"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", "bills").
|
|
|
|
// 财务管理
|
|
Prefix("/finance/bills").
|
|
Get("", new(IndexAction)).
|
|
GetPost("/generate", new(GenerateAction)).
|
|
Post("/pay", new(PayAction)).
|
|
Get("/bill", new(BillAction)).
|
|
EndAll()
|
|
})
|
|
}
|