add water mark via tencent cloud
This commit is contained in:
1 parent
4a6a697ddf
commit
c26fba65a2
4 files changed
+31
-16
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { AxiosResponse } from 'axios';
|
||||
import httpClient from '../instance';
|
||||
import { IResourceDetailResponse } from '../resource/types';
|
||||
import { IEpisode, IEpisodeDetailResponse, IEpisodeListResponse } from './types';
|
||||
|
||||
class EpisodeService {
|
||||
@@ -13,6 +14,10 @@ class EpisodeService {
|
||||
return await httpClient.get(`/${this.key}/${id}`);
|
||||
}
|
||||
|
||||
async resource(id: number): Promise<AxiosResponse<IResourceDetailResponse>> {
|
||||
return await httpClient.get(`/${this.key}/${id}/resource/`);
|
||||
}
|
||||
|
||||
async create(data: IEpisode): Promise<AxiosResponse<IEpisodeDetailResponse>> {
|
||||
return await httpClient.post(`/${this.key}/`, data);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
export interface IResource {
|
||||
id: string;
|
||||
url?: string;
|
||||
state?: string;
|
||||
taskId?: string;
|
||||
watermarks?: string[];
|
||||
episode?: number;
|
||||
createdAt?: string;
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
export type IResourceDetailResponse = IResource;
|
||||
Reference in new issue
Block a user