From 92612bc4fe0f0424f6d73c3690780941789269c5 Mon Sep 17 00:00:00 2001 From: YXL Date: Sun, 13 Sep 2020 12:57:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E6=8F=90=E4=BE=9B=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=E7=9A=84=E5=8F=82=E6=95=B0=E6=94=B9=E4=B8=BA=E5=8F=AF?= =?UTF-8?q?=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module_types/album_songsaleboard.d.ts | 4 ++-- module_types/banner.d.ts | 2 +- module_types/cloudsearch.d.ts | 2 +- module_types/daily_signin.d.ts | 2 +- module_types/dj_toplist.d.ts | 2 +- module_types/homepage_block_page.d.ts | 2 +- module_types/playlist_order_update.d.ts | 2 +- module_types/user_record.d.ts | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/module_types/album_songsaleboard.d.ts b/module_types/album_songsaleboard.d.ts index 317d142..e0d9e63 100644 --- a/module_types/album_songsaleboard.d.ts +++ b/module_types/album_songsaleboard.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface AlbumSongSaleBoardRequestConfig extends RequestBaseConfig { - albumType: 0 | 1 // 0 为数字专辑,1 为数字单曲 - type: 'daily' | 'week' | 'year' | 'total' + albumType?: 0 | 1 // 0 为数字专辑,1 为数字单曲 + type?: 'daily' | 'week' | 'year' | 'total' year?: string | number // 年份,默认本年。 type 为 year 时有效 } diff --git a/module_types/banner.d.ts b/module_types/banner.d.ts index f5f719e..38c0cb4 100644 --- a/module_types/banner.d.ts +++ b/module_types/banner.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' export interface BannerRequestConfig extends RequestBaseConfig { - type: 0 | 1 | 2 | 3 + type?: 0 | 1 | 2 | 3 } diff --git a/module_types/cloudsearch.d.ts b/module_types/cloudsearch.d.ts index 64c8dc6..4c0b2d7 100644 --- a/module_types/cloudsearch.d.ts +++ b/module_types/cloudsearch.d.ts @@ -2,7 +2,7 @@ import { RequestBaseConfig } from './base' export interface CloudSearchRequestConfig extends RequestBaseConfig { keywords: string - type: 1 | 10 | 100 | 1000 | 1002 | 1004 | 1006 | 1009 | 1014 + type?: 1 | 10 | 100 | 1000 | 1002 | 1004 | 1006 | 1009 | 1014 limit?: string | number offset?: string | number } diff --git a/module_types/daily_signin.d.ts b/module_types/daily_signin.d.ts index 1d718fd..875f1d8 100644 --- a/module_types/daily_signin.d.ts +++ b/module_types/daily_signin.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' export interface DailySigninRequestConfig extends RequestBaseConfig { - type: 0 | 1 + type?: 0 | 1 } diff --git a/module_types/dj_toplist.d.ts b/module_types/dj_toplist.d.ts index e9c31a6..78d7236 100644 --- a/module_types/dj_toplist.d.ts +++ b/module_types/dj_toplist.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface DjToplistRequestConfig extends RequestBaseConfig { - type: 'new' | 'hot' + type?: 'new' | 'hot' limit?: string | number offset?: string | number } diff --git a/module_types/homepage_block_page.d.ts b/module_types/homepage_block_page.d.ts index b098928..6a8d29a 100644 --- a/module_types/homepage_block_page.d.ts +++ b/module_types/homepage_block_page.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' export interface HomepageBlockPageRequestConfig extends RequestBaseConfig { - refresh: 'true' | 'false' + refresh?: 'true' | 'false' | boolean } diff --git a/module_types/playlist_order_update.d.ts b/module_types/playlist_order_update.d.ts index eaf41f5..613d270 100644 --- a/module_types/playlist_order_update.d.ts +++ b/module_types/playlist_order_update.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' export interface PlaylistOrderUpdateRequestConfig extends RequestBaseConfig { - ids?: string + ids: string } diff --git a/module_types/user_record.d.ts b/module_types/user_record.d.ts index eaf46ec..659ea76 100644 --- a/module_types/user_record.d.ts +++ b/module_types/user_record.d.ts @@ -2,5 +2,5 @@ import { RequestBaseConfig } from './base' export interface UserRecordRequestConfig extends RequestBaseConfig { uid: string | number - type: 1 | 0 + type?: 1 | 0 }