diff --git a/lib/routes/hpoi/all.ts b/lib/routes/hpoi/all.ts index aff063070766a3..135abfa3a21eaa 100644 --- a/lib/routes/hpoi/all.ts +++ b/lib/routes/hpoi/all.ts @@ -8,7 +8,7 @@ export const route: Route = { example: '/hpoi/items/all', parameters: { order: { - description: '排序, 见下表,默认为 add', + description: '排序', options: [ { value: 'release', label: '发售' }, { value: 'add', label: '入库' }, diff --git a/lib/routes/hpoi/character.ts b/lib/routes/hpoi/character.ts index 94f799bff4a487..ae8b705bfbb0d9 100644 --- a/lib/routes/hpoi/character.ts +++ b/lib/routes/hpoi/character.ts @@ -9,7 +9,7 @@ export const route: Route = { parameters: { id: '角色 ID', order: { - description: '排序, 见下表,默认为 add', + description: '排序', options: [ { value: 'release', label: '发售' }, { value: 'add', label: '入库' }, diff --git a/lib/routes/hpoi/info.ts b/lib/routes/hpoi/info.ts index 1550594db83cd2..6d9177f506d0fb 100644 --- a/lib/routes/hpoi/info.ts +++ b/lib/routes/hpoi/info.ts @@ -7,7 +7,17 @@ export const route: Route = { path: '/info/:type?', categories: ['anime'], example: '/hpoi/info/all', - parameters: { type: '分类, 见下表, 默认为`all`' }, + parameters: { + type: { + description: '分类', + options: [ + { value: 'all', label: '全部' }, + { value: 'hobby', label: '手办' }, + { value: 'model', label: '模型' }, + ], + default: 'all', + }, + }, features: { requireConfig: false, requirePuppeteer: false, @@ -19,11 +29,6 @@ export const route: Route = { name: '情报', maintainers: ['sanmmm DIYgod'], handler, - description: `分类 - - | 全部 | 手办 | 模型 | - | ---- | ----- | ----- | - | all | hobby | model |`, }; async function handler(ctx) { diff --git a/lib/routes/hpoi/user.ts b/lib/routes/hpoi/user.ts index f51a0e916a243f..4f11bd557bad9a 100644 --- a/lib/routes/hpoi/user.ts +++ b/lib/routes/hpoi/user.ts @@ -16,7 +16,22 @@ export const route: Route = { path: '/user/:user_id/:caty', categories: ['anime'], example: '/hpoi/user/116297/buy', - parameters: { user_id: '用户ID', caty: '类别, 见下表' }, + parameters: { + user_id: { + description: '用户ID', + }, + caty: { + description: '类别', + options: [ + { value: 'want', label: '想买' }, + { value: 'preorder', label: '预定' }, + { value: 'buy', label: '已入' }, + { value: 'care', label: '关注' }, + { value: 'resell', label: '有过' }, + ], + default: 'buy', + }, + }, features: { requireConfig: false, requirePuppeteer: false, @@ -28,9 +43,6 @@ export const route: Route = { name: '用户动态', maintainers: ['DIYgod', 'luyuhuang'], handler, - description: `| 想买 | 预定 | 已入 | 关注 | 有过 | - | ---- | -------- | ---- | ---- | ------ | - | want | preorder | buy | care | resell |`, }; async function handler(ctx) { diff --git a/lib/routes/hpoi/work.ts b/lib/routes/hpoi/work.ts index 30d78ec855595c..7a609bb3628b73 100644 --- a/lib/routes/hpoi/work.ts +++ b/lib/routes/hpoi/work.ts @@ -9,7 +9,7 @@ export const route: Route = { parameters: { id: '作品 ID', order: { - description: '排序, 见下表,默认为 add', + description: '排序', options: [ { value: 'release', label: '发售' }, { value: 'add', label: '入库' },