hookehuyr

docs(api): 同步搜索 API 文档,将 file 类型改为 article

- 更新搜索 API 响应字段:files → article
- 字段名规范化:name/value/extension → post_title/post_excerpt/post_link
- 文章详情 API 添加 file_list 字段类型定义
- 计划书 API 完善参数文档说明

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This diff is collapsed. Click to expand it.
......@@ -24,9 +24,28 @@ const Api = {
post_date: string; // 发布日期
post_author: integer; // 发布人id
author_name: string; // 发布人
file_list: {
icon: {
meta_type: string; //
id: integer; //
object_id: null; //
name: string; //
value: string; //
description: null; //
extension: string; //
post_date: string; //
icon: null; //
master_client_id: null; //
hash: string; //
height: string; //
width: string; //
author: integer; //
size: null; //
};
};
is_favorite: integer; //
* };
* } >}
* }>}
*/
export const articleDetailAPI = (params) => fn(fetch.get(Api.ArticleDetail, params));
......
......@@ -13,8 +13,8 @@ const Api = {
* @param {Object} params 请求参数
* @param {string} params.customer_name 申请人
* @param {string} params.customer_gender 性别
* @param {integer} params.customer_age 年龄
* @param {string} params.customer_birthday 出生年月日
* @param {integer} params.customer_age (可选) 与 customer_birthday 二选一,至少提供一个
* @param {string} params.customer_birthday (可选) 与 customer_age 二选一,至少提供一个。格式:YYYY-MM-DD
* @param {integer} params.annual_premium 保额
* @param {string} params.payment_years 繳費年期
* @param {string} params.currency_type 币种
......
......@@ -9,7 +9,7 @@ const Api = {
* @remark
* @param {Object} params 请求参数
* @param {string} params.keyword (可选)
* @param {string} params.type (可选) product=产品,file=文档
* @param {string} params.type (可选) product=产品,article=文章
* @returns {Promise<{
* code: number; // 状态码
* msg: string; // 消息
......@@ -33,18 +33,16 @@ const Api = {
}>;
total: integer; // 产品总数
};
files: {
article: {
list: Array<{
id: integer; // 附件id
name: string; // 附件名
value: string; // 附件地址
extension: string; // 附件类型
post_date: string; // 发布时间
size: string; // 附件大小
id: integer; //
post_title: string; // 文章标题
post_excerpt: null; // 文章简介
post_link: string; //
post_date: string; // 发布日期
is_favorite: integer; // 是否收藏
type: string; //
}>;
total: integer; // 附件
total: integer; //
};
* };
* }>}
......