30 lines
673 B
Go
30 lines
673 B
Go
//go:build plus
|
|
|
|
package income
|
|
|
|
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", "income").
|
|
|
|
// 财务管理
|
|
Prefix("/finance/income").
|
|
Get("", new(IndexAction)).
|
|
Get("/monthly", new(MonthlyAction)).
|
|
Get("/daily", new(DailyAction)).
|
|
|
|
//
|
|
EndAll()
|
|
})
|
|
}
|