🆕初始化脚本以及一些工具类

This commit is contained in:
coward
2024-03-06 16:24:49 +08:00
parent a9333df157
commit 7fd186d298
15 changed files with 500 additions and 11 deletions

View File

@@ -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
View 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"`
}