新增精品歌单标签列表接口 #921, 新增用户等级信息接口 #929,增加新接口的 d.ts 文件,修复登录接口的 d.ts 的 countrycode 为非可选属性的错误

This commit is contained in:
binaryify
2020-09-19 18:43:52 +08:00
parent cb4c07f421
commit 50a1cb367b
13 changed files with 77 additions and 6 deletions
Vendored
+8
View File
@@ -180,6 +180,8 @@ import {
VideoUrlRequestConfig,
WeblogRequestConfig,
APIBaseResponse,
UserLevelRequestConfig,
PlaylistHighqualityTagsRequestConfig
} from './interface'
// Start
// export interface Response<T> {
@@ -484,6 +486,9 @@ interface APIInstance {
playlist_detail: (
params: PlaylistDetailRequestConfig,
) => Promise<Response<APIBaseResponse>>
playlist_highquality_tags: (
params: PlaylistHighqualityTagsRequestConfig,
) => Promise<Response<APIBaseResponse>>
playlist_hot: (
params: PlaylistHotRequestConfig,
) => Promise<Response<APIBaseResponse>>
@@ -620,6 +625,9 @@ interface APIInstance {
params: UserDetailRequestConfig,
) => Promise<Response<APIBaseResponse>>
user_dj: (params: UserDjRequestConfig) => Promise<Response<APIBaseResponse>>
user_level: (
params: UserLevelRequestConfig,
) => Promise<Response<APIBaseResponse>>
user_event: (
params: UserEventRequestConfig,
) => Promise<Response<APIBaseResponse>>