This commit is contained in:
2025-07-03 20:34:31 +08:00
parent 2fce6350c6
commit c67877e811
10 changed files with 163 additions and 69 deletions
+18 -1
View File
@@ -1,9 +1,26 @@
package models
type Wed_configs_t struct {
type Configs_web_t struct {
Host string `mapstructure:"host"`
Port string `mapstructure:"port"`
Tls bool `mapstructure:"tls"`
Cert_private_path string `mapstructure:"cert_private_path"`
Cert_public_path string `mapstructure:"cert_public_path"`
}
type Configs_user_t struct {
Cookie_timeout int `mapstructure:"cookie_timeout"`
Pass_hash_type string `mapstructure:"pass_hash_type"`
Avatar_save_path string `mapstructure:"avatar_save_path"`
Avatar_ginrouter_path string `mapstructure:"avatar_ginrouter_path"`
Avatar_path string `mapstructure:"avatar_path"`
}
type Configs_file_t struct {
Max_size_mb uint `mapstructure:"max_size_mb"`
Pahts []string `mapstructure:"pahts"`
Allow_image_mime []map[string]bool `mapstructure:"allow_image_mime"`
Allow_video_mime []map[string]bool `mapstructure:"allow_video_mime"`
Allow_music_mime []map[string]bool `mapstructure:"allow_music_mime"`
Allow_pdf_mime []map[string]bool `mapstructure:"allow_pdf_mime"`
}