mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-12-26 01:55:58 +08:00
feat: add oss service factory implements, add support for setting custom upload handler, localstorage and minio oss
This commit is contained in:
@@ -19,7 +19,8 @@ type AppConfig struct {
|
||||
AesEncryptKey string
|
||||
SmsConfig AliYunSmsConfig // AliYun send message service config
|
||||
ExtConfig ChatPlusExtConfig // ChatPlus extensions callback api config
|
||||
MinioConfig MinioConfig
|
||||
|
||||
OSS OSSConfig // OSS config
|
||||
}
|
||||
|
||||
type ChatPlusApiConfig struct {
|
||||
@@ -40,6 +41,11 @@ type AliYunSmsConfig struct {
|
||||
Domain string
|
||||
}
|
||||
|
||||
type OSSConfig struct {
|
||||
Active string
|
||||
Local LocalStorageConfig
|
||||
Minio MinioConfig
|
||||
}
|
||||
type MinioConfig struct {
|
||||
Endpoint string
|
||||
AccessKey string
|
||||
@@ -49,6 +55,11 @@ type MinioConfig struct {
|
||||
Domain string
|
||||
}
|
||||
|
||||
type LocalStorageConfig struct {
|
||||
BasePath string
|
||||
BaseURL string
|
||||
}
|
||||
|
||||
type RedisConfig struct {
|
||||
Host string
|
||||
Port int
|
||||
|
||||
Reference in New Issue
Block a user