files for previous commit

This commit is contained in:
onysd 2026-09-03 08:33:27 +03:00
parent 8ef2b58bf9
commit 863ae2e990
7 changed files with 78 additions and 0 deletions

View file

@ -941,6 +941,10 @@ type FilesService interface {
GetFile(ctx context.Context, req domain.FileDownloadRequest) (domain.FileChunk, bool, error)
// CreateEncryptedFileFromUpload 把密聊上传分片组装成盲 blob 并铸造 EncryptedFile 快照P2
CreateEncryptedFileFromUpload(ctx context.Context, file domain.UploadedFileRef, keyFingerprint int) (domain.EncryptedFileRef, error)
// DeleteEncryptedFileBlob deletes a secret-chat encrypted file's blob
// bytes once fully downloaded (TELESRV_SECRET_CHAT_DELETE_FILE_AFTER_DOWNLOAD,
// no-op otherwise) -- see internal/app/files.Service.DeleteEncryptedFileBlob.
DeleteEncryptedFileBlob(ctx context.Context, locationKey string) error
// GeoMapTile 渲染 geo 消息地图缩略占位图upload.getWebFile确定性、无外部依赖。
GeoMapTile(lat, long float64, w, h, zoom, scale int) ([]byte, string)
// 资源读取reaction / sticker / document