优化配置文件的结构体,优化文件上传与下载功能,系统配置的前端展示更友好及其他的优化

This commit is contained in:
SliverHorn
2020-10-06 11:30:50 +08:00
parent 785fde0eaf
commit d16ca6967f
24 changed files with 589 additions and 375 deletions

15
server/config/oss.go Normal file
View File

@@ -0,0 +1,15 @@
package config
type Local struct {
Path string `mapstructure:"path" json:"path" yaml:"path" `
}
type Qiniu struct {
Zone string `mapstructure:"zone" json:"zone" yaml:"zone"`
Bucket string `mapstructure:"bucket" json:"bucket" yaml:"bucket"`
ImgPath string `mapstructure:"img-path" json:"imgPath" yaml:"img-path"`
UseHTTPS bool `mapstructure:"use-https" json:"useHttps" yaml:"use-https"`
AccessKey string `mapstructure:"access-key" json:"accessKey" yaml:"access-key"`
SecretKey string `mapstructure:"secret-key" json:"secretKey" yaml:"secret-key"`
UseCdnDomains bool `mapstructure:"use-cdn-domains" json:"useCdnDomains" yaml:"use-cdn-domains"`
}