feat: add minio service implementation, download midjourney image to local storage

This commit is contained in:
RockYang
2023-08-20 16:17:42 +08:00
parent 329e3eee21
commit 6561b99f8f
13 changed files with 316 additions and 98 deletions

View File

@@ -19,6 +19,7 @@ type AppConfig struct {
AesEncryptKey string
SmsConfig AliYunSmsConfig // AliYun send message service config
ExtConfig ChatPlusExtConfig // ChatPlus extensions callback api config
MinioConfig MinioConfig
}
type ChatPlusApiConfig struct {
@@ -39,6 +40,15 @@ type AliYunSmsConfig struct {
Domain string
}
type MinioConfig struct {
Endpoint string
AccessKey string
AccessSecret string
Bucket string
UseSSL bool
Domain string
}
type RedisConfig struct {
Host string
Port int