feat(knowledge): 图片上传接口(S3 存储,限 5MB jpg/png/webp)

This commit is contained in:
weijuesen
2026-08-12 12:12:28 +08:00
parent 8bb93ad5c3
commit c8aa213626
6 changed files with 201 additions and 2 deletions
+1
View File
@@ -16,6 +16,7 @@ type Config struct {
S3AccessKey string `env:"S3_ACCESS_KEY" envDefault:"silk-app"`
S3SecretKey string `env:"S3_SECRET_KEY" envDefault:"Silk-App-Secret-2026!"`
S3Bucket string `env:"S3_BUCKET" envDefault:"silk-video-events"`
S3BucketImages string `env:"S3_BUCKET_IMAGES" envDefault:"silk-images"`
S3Region string `env:"S3_REGION" envDefault:"us-east-1"`
WVPAPIBase string `env:"WVP_API_BASE" envDefault:"http://localhost:18978"`
WVPUsername string `env:"WVP_USERNAME" envDefault:"admin"`