spark-server/internal/module/upload/entity/credential.go
zhr ae9a71034d feat: implement Spark IM V3 modular monolith
Add HTTP /v1 MVC, TCP send path, groups with server-side member-avatar collage, object-storage upload, and friends/favorites around the architecture-v3 layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 19:52:11 +08:00

18 lines
558 B
Go

// Package entity holds upload credential types. Message content stores the object key only.
package entity
type Credential struct {
ObjectKey string `json:"object_key"`
UploadURL string `json:"upload_url"`
Method string `json:"method"`
Headers map[string]string `json:"headers"`
ExpiresIn int64 `json:"expires_in"`
}
type Download struct {
ObjectKey string `json:"object_key"`
DownloadURL string `json:"download_url"`
Method string `json:"method"`
ExpiresIn int64 `json:"expires_in"`
}