potato/config/app.go

22 lines
1.3 KiB
Go
Raw Permalink Normal View History

2021-03-23 00:55:26 +08:00
/*
* @Date: 2021-03-22 09:46:19
* @LastEditors: viletyy
2021-06-14 21:15:55 +08:00
* @LastEditTime: 2021-06-13 23:00:46
2021-03-23 00:55:26 +08:00
* @FilePath: /potato/config/app.go
*/
package config
type App struct {
2021-06-14 21:15:55 +08:00
Name string `mapstructure:"name" json:"name" yaml:"name"`
Version string `mapstructure:"version" json:"version" yaml:"version"`
PageSize int64 `mapstructure:"page_size" json:"page_size" yaml:"page_size"`
JwtSecret string `mapstructure:"jwt_secret" json:"jwt_secret" yaml:"jwt_secret"`
JwtExpire int64 `mapstructure:"jwt_expire" json:"jwt_expire" yaml:"jwt_expire"`
RunMode string `mapstructure:"run_mode" json:"run_mode" yaml:"run_mode"`
DefaultContextTimeout int64 `mapstructure:"default_context_timeout" json:"default_context_timeout" yaml:"default_context_timeout"`
UploadSavePath string `mapstructure:"upload_save_path" json:"upload_save_path" yaml:"upload_save_path"`
UploadServerPath string `mapstructure:"upload_server_path" json:"upload_server_path" yaml:"upload_server_path"`
UploadImageMaxSize int64 `mapstructure:"upload_image_max_size" json:"upload_image_max_size" yaml:"upload_image_max_size"`
UploadImageAllowExts []string `mapstructure:"upload_image_allow_exts" json:"upload_image_allow_exts" yaml:"upload_image_allow_exts"`
2021-03-23 00:55:26 +08:00
}