Feat: may download segment (#601)
* may download segment audio * display original audio with the recording in post
This commit is contained in:
@@ -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),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user