2026-04-09 10:01:23 +08:00
|
|
|
package storage
|
|
|
|
|
|
|
|
|
|
import (
|
2026-08-21 00:41:07 +08:00
|
|
|
"code.tczkiot.com/wlw/ai-agent/internal/pkg/dto"
|
|
|
|
|
"code.tczkiot.com/wlw/ai-agent/internal/pkg/enums"
|
2026-04-09 10:01:23 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type UploadInfo struct {
|
2026-08-28 22:23:13 +08:00
|
|
|
Prefix string
|
|
|
|
|
ConversationID int64
|
|
|
|
|
Filename string
|
|
|
|
|
FileSize int64
|
|
|
|
|
MimeType string
|
|
|
|
|
Principal *dto.AuthPrincipal
|
2026-04-09 10:01:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type StoredFile struct {
|
|
|
|
|
Provider enums.AssetProvider
|
|
|
|
|
StorageKey string
|
|
|
|
|
URL string
|
|
|
|
|
Filename string
|
|
|
|
|
FileSize int64
|
|
|
|
|
MimeType string
|
|
|
|
|
}
|