add admin conf

This commit is contained in:
ljw
2024-11-11 22:26:15 +08:00
parent 15a518c1ac
commit 7bb2ce0a43
5 changed files with 102 additions and 1 deletions

View File

@@ -17,10 +17,15 @@ type App struct {
WebClient int `mapstructure:"web-client"`
Register bool `mapstructure:"register"`
}
type Admin struct {
Title string `mapstructure:"title"`
Hello string `mapstructure:"hello"`
HelloFile string `mapstructure:"hello-file"`
}
type Config struct {
Lang string `mapstructure:"lang"`
App App
Admin Admin
Gorm Gorm
Mysql Mysql
Gin Gin