🚧 developing...

This commit is contained in:
2025-03-04 01:32:34 +08:00
parent 4d0f628586
commit c0d0d784d6
9 changed files with 343 additions and 4 deletions

View File

@@ -659,6 +659,9 @@ type (
Provider string `json:"provider"`
Bucket string `json:"bucket"`
}
DownloadAlbumResponse {
Records []string `json:"records"`
}
// 搜索图片请求参数
SearchImageRequest {
Type string `json:"type"`
@@ -671,6 +674,21 @@ type (
SearchImageResponse {
Records []AllImageDetail `json:"records"`
}
// 搜索相册请求参数
SearchAlbumRequest {
Keyword string `json:"keyword"`
}
// 搜索相册相应参数
SearchAlbumResponse {
Albums []Album `json:"albums"`
}
// 图片添加到相册请求参数
AddImageToAlbumRequest {
IDS []int64 `json:"ids"`
AlbumID int64 `json:"album_id"`
Provider string `json:"provider"`
Bucket string `json:"bucket"`
}
)
// 文件上传
@@ -780,11 +798,19 @@ service auth {
// 下载相册
@handler downloadAlbum
post /album/download (DownloadAlbumRequest) returns (string)
post /album/download (DownloadAlbumRequest) returns (DownloadAlbumResponse)
// 图片搜索
@handler searchImage
post /image/search (SearchImageRequest) returns (SearchImageResponse)
// 搜索相册
@handler searchAlbum
post /album/search (SearchAlbumRequest) returns (SearchAlbumResponse)
// 添加图片到相册
@handler addImageToAlbum
post /album/add/image (AddImageToAlbumRequest) returns (string)
}
type (