add episode list

This commit is contained in:
AceDataCloud committed 2022-02-08 00:03:09 +08:00
1 parent 344fd73833
commit 36a338b631
15 files changed
+326 -47

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { AxiosResponse } from 'axios';
import httpClient from '../instance';
import { IUserDetailResponse, IUser } from './types';
class UserService {
key = 'users';
async get(id: string | string[]): Promise<AxiosResponse<IUserDetailResponse>> {
return httpClient.get(`/${this.key}/${id}`);
}
}
export default new UserService();
+15
View File
@@ -0,0 +1,15 @@
export interface IUser {
id: string;
username?: string;
first_name?: string;
last_name?: string;
email?: string;
nickname?: string;
gender?: number;
city?: string;
province?: string;
country?: string;
avatar?: string;
}
export interface IUserDetailResponse extends IUser {}