将上传目录访问路径和存储路径分开成两个配置

This commit is contained in:
aaronwmy
2022-05-29 12:21:24 +08:00
parent 72e11a7d31
commit 6026ac31b1
3 changed files with 10 additions and 8 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
package config
type Local struct {
Path string `mapstructure:"path" json:"path" yaml:"path"` // 本地文件路径
Path string `mapstructure:"path" json:"path" yaml:"path"` // 本地文件访问路径
StorePath string `mapstructure:"store-path" json:"store-path" yaml:"store-path"` // 本地文件存储路径
}