🆕初始化脚本以及一些工具类
This commit is contained in:
@@ -6,4 +6,5 @@ type config struct {
|
||||
Http *http `yaml:"http"`
|
||||
Database *database `yaml:"database"`
|
||||
Redis *redis `yaml:"redis"`
|
||||
File *file `yaml:"file"`
|
||||
}
|
||||
|
10
config/file.go
Normal file
10
config/file.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package config
|
||||
|
||||
type file struct {
|
||||
Type string `yaml:"type"`
|
||||
Path string `yaml:"path"`
|
||||
Endpoint string `yaml:"endpoint"`
|
||||
AccessId string `yaml:"accessId"`
|
||||
AccessSecret string `yaml:"accessSecret"`
|
||||
BucketName string `yaml:"bucketName"`
|
||||
}
|
Reference in New Issue
Block a user