Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2025-06-05 11:04:12 +08:00
parent 9b63e88da8
commit 9d3eb0cea9
1675 changed files with 357271 additions and 1 deletions
+36
View File
@@ -0,0 +1,36 @@
package models
var Configs map[string]interface{}
var Wed_configs map[string]interface{}
var Database_configs map[string]interface{}
var User_configs map[string]interface{}
var Allowed_avatar_ext = map[string]bool{
".jpg": true,
".jpeg": true,
".png": true,
}
var Allowed_avatar_mime = map[string]bool{
"image/jpeg": true,
"image/png": true,
}
func init() {
}
func All_config_init() {
//读取web配置
Wed_configs = Configs["web"].(map[string]interface{})
//初始化数据库
Database_init()
//初始化user config
User_configs = Configs["user"].(map[string]interface{})
}