feat: 接通图片预览 AI 修图流程
This commit is contained in:
@@ -49,6 +49,9 @@ protocol TravelAlbumServing {
|
||||
|
||||
/// 提交相册素材 AI 修图任务。
|
||||
func submitAIRetouch(_ request: TravelAlbumAIRetouchRequest) async throws
|
||||
|
||||
/// 提交单张素材重新修图任务。
|
||||
func submitAIReretouch(_ request: TravelAlbumAIReretouchRequest) async throws
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@@ -179,6 +182,13 @@ final class TravelAlbumAPI: TravelAlbumServing {
|
||||
APIRequest(method: .post, path: "\(basePath)/ai-retouch", body: request)
|
||||
)
|
||||
}
|
||||
|
||||
/// 提交重新修图任务;服务端返回的批次与额度信息当前无需消费。
|
||||
func submitAIReretouch(_ request: TravelAlbumAIReretouchRequest) async throws {
|
||||
let _: EmptyPayload = try await client.send(
|
||||
APIRequest(method: .post, path: "\(basePath)/ai-reretouch", body: request)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/// 旅拍相册 ID 请求体。
|
||||
|
||||
Reference in New Issue
Block a user