Feat: may download segment (#601)

* may download segment audio

* display original audio with the recording in post
This commit is contained in:
an-lee
2024-05-13 10:25:28 +08:00
committed by GitHub
parent c01548d3a0
commit 156222f28c
16 changed files with 258 additions and 5 deletions

View File

@@ -440,4 +440,19 @@ export class Client {
payment(id: string): Promise<PaymentType> {
return this.api.get(`/api/payments/${id}`);
}
mineSegments(params?: {
page?: number;
segmentIndex?: number;
targetId?: string;
targetType?: string;
}): Promise<
{
segments: SegmentType[];
} & PagyResponseType
> {
return this.api.get("/api/mine/segments", {
params: decamelizeKeys(params),
});
}
}