feat: 更新字典管理功能;优化图片上传和展示逻辑,支持多图上传和拖拽排序;扩展文档接口,新增多个字段以支持更丰富的文档信息
This commit is contained in:
@@ -753,10 +753,31 @@ paths:
|
||||
updated: 记录更新时间 | string
|
||||
document_id: 文档业务ID | string
|
||||
document_create: 文档创建时间,由数据库自动生成 | string
|
||||
document_effect_date: 文档生效日期 | string
|
||||
document_expiry_date: 文档到期日期 | string
|
||||
document_title: 文档标题 | string
|
||||
document_type: 文档类型,按system_dict_id@dict_word_enum保存 | string
|
||||
document_subtitle: 文档副标题 | string
|
||||
document_summary: 文档摘要 | string
|
||||
document_content: 正文内容 | string
|
||||
document_image: 图片附件ID串,底层按|分隔 | string
|
||||
document_video: 视频附件ID串,底层按|分隔 | string
|
||||
document_file: 文件附件ID串,底层按|分隔 | string
|
||||
document_status: 文档状态 | string
|
||||
document_owner: 上传者openid | string
|
||||
document_relation_model: 关联机型标识 | string
|
||||
document_keywords: 关键词,多选按|分隔 | string
|
||||
document_share_count: 分享次数 | number
|
||||
document_download_count: 下载次数 | number
|
||||
document_favorite_count: 收藏次数 | number
|
||||
document_embedding_status: 文档嵌入状态 | string
|
||||
document_embedding_error: 文档嵌入错误原因 | string
|
||||
document_embedding_lasttime: 最后一次嵌入更新时间 | string
|
||||
document_vector_version: 向量版本号或模型名称 | string
|
||||
document_product_categories: 产品关联文档,多选按|分隔 | string
|
||||
document_application_scenarios: 筛选依据,多选按|分隔 | string
|
||||
document_hotel_type: 适用场景,多选按|分隔 | string
|
||||
document_remark: 备注 | string
|
||||
filterByTypeToken:
|
||||
value:
|
||||
page: 页码 | integer
|
||||
@@ -771,10 +792,31 @@ paths:
|
||||
updated: 记录更新时间 | string
|
||||
document_id: 文档业务ID | string
|
||||
document_create: 文档创建时间,由数据库自动生成 | string
|
||||
document_effect_date: 文档生效日期 | string
|
||||
document_expiry_date: 文档到期日期 | string
|
||||
document_title: 文档标题 | string
|
||||
document_type: 文档类型,按system_dict_id@dict_word_enum保存 | string
|
||||
document_subtitle: 文档副标题 | string
|
||||
document_summary: 文档摘要 | string
|
||||
document_content: 正文内容 | string
|
||||
document_image: 图片附件ID串,底层按|分隔 | string
|
||||
document_video: 视频附件ID串,底层按|分隔 | string
|
||||
document_file: 文件附件ID串,底层按|分隔 | string
|
||||
document_status: 文档状态 | string
|
||||
document_owner: 上传者openid | string
|
||||
document_relation_model: 关联机型标识 | string
|
||||
document_keywords: 关键词,多选按|分隔 | string
|
||||
document_share_count: 分享次数 | number
|
||||
document_download_count: 下载次数 | number
|
||||
document_favorite_count: 收藏次数 | number
|
||||
document_embedding_status: 文档嵌入状态 | string
|
||||
document_embedding_error: 文档嵌入错误原因 | string
|
||||
document_embedding_lasttime: 最后一次嵌入更新时间 | string
|
||||
document_vector_version: 向量版本号或模型名称 | string
|
||||
document_product_categories: 产品关联文档,多选按|分隔 | string
|
||||
document_application_scenarios: 筛选依据,多选按|分隔 | string
|
||||
document_hotel_type: 适用场景,多选按|分隔 | string
|
||||
document_remark: 备注 | string
|
||||
- id: ofy47wp9mmm0aub
|
||||
collectionId: pbc_3636602973
|
||||
collectionName: tbl_document
|
||||
@@ -782,10 +824,31 @@ paths:
|
||||
updated: '2026-03-28 07:20:00.000Z'
|
||||
document_id: DOC-1774680568340-TeUSQn
|
||||
document_create: '2026-03-28 08:22:48.000Z'
|
||||
document_effect_date: ''
|
||||
document_expiry_date: ''
|
||||
document_title: 易从碳达人节能系统,为酒店每天每间房省二元,以智能推动酒店ESG双碳落地!上海酒店用品展我们在E7A01等您!!
|
||||
document_type: DICT-1774599144591-hAEFQj@UT1
|
||||
document_subtitle: ''
|
||||
document_summary: ''
|
||||
document_content: ''
|
||||
document_image: ATT-1774680568287-zuhJWN
|
||||
document_video: ''
|
||||
document_file: ''
|
||||
document_status: 有效
|
||||
document_owner: su13106859882
|
||||
document_relation_model: ''
|
||||
document_keywords: ''
|
||||
document_share_count: 0
|
||||
document_download_count: 0
|
||||
document_favorite_count: 0
|
||||
document_embedding_status: ''
|
||||
document_embedding_error: ''
|
||||
document_embedding_lasttime: ''
|
||||
document_vector_version: ''
|
||||
document_product_categories: ''
|
||||
document_application_scenarios: ''
|
||||
document_hotel_type: ''
|
||||
document_remark: ''
|
||||
'400':
|
||||
description: 查询参数错误
|
||||
content:
|
||||
@@ -1433,13 +1496,46 @@ components:
|
||||
type: string
|
||||
description: "文档创建时间,由数据库自动生成"
|
||||
example: 文档创建时间,由数据库自动生成 | string
|
||||
document_effect_date:
|
||||
type: string
|
||||
description: "文档生效日期"
|
||||
example: 文档生效日期 | string
|
||||
document_expiry_date:
|
||||
type: string
|
||||
description: "文档到期日期"
|
||||
example: 文档到期日期 | string
|
||||
document_title:
|
||||
type: string
|
||||
description: "文档标题"
|
||||
example: 文档标题 | string
|
||||
document_type:
|
||||
type: string
|
||||
description: "文档类型,多选时按 system_dict_id@dict_word_enum|... 保存"
|
||||
example: 文档类型,按system_dict_id@dict_word_enum保存 | string
|
||||
document_subtitle:
|
||||
type: string
|
||||
description: "文档副标题"
|
||||
example: 文档副标题 | string
|
||||
document_summary:
|
||||
type: string
|
||||
description: "文档摘要"
|
||||
example: 文档摘要 | string
|
||||
document_content:
|
||||
type: string
|
||||
description: "正文内容,保存 Markdown"
|
||||
example: 正文内容 | string
|
||||
document_image:
|
||||
type: string
|
||||
description: "图片附件 ID 集合,底层以 | 分隔"
|
||||
example: 图片附件ID串,底层按|分隔 | string
|
||||
document_video:
|
||||
type: string
|
||||
description: "视频附件 ID 集合,底层以 | 分隔"
|
||||
example: 视频附件ID串,底层按|分隔 | string
|
||||
document_file:
|
||||
type: string
|
||||
description: "文件附件 ID 集合,底层以 | 分隔"
|
||||
example: 文件附件ID串,底层按|分隔 | string
|
||||
document_status:
|
||||
type: string
|
||||
description: "文档状态,仅 `有效` / `过期`"
|
||||
@@ -1448,6 +1544,58 @@ components:
|
||||
type: string
|
||||
description: "上传者 openid"
|
||||
example: 上传者openid | string
|
||||
document_relation_model:
|
||||
type: string
|
||||
description: "关联机型 / 模型标识"
|
||||
example: 关联机型标识 | string
|
||||
document_keywords:
|
||||
type: string
|
||||
description: "关键词,多选后以 | 分隔"
|
||||
example: 关键词,多选按|分隔 | string
|
||||
document_share_count:
|
||||
type: number
|
||||
description: "分享次数"
|
||||
example: 分享次数 | number
|
||||
document_download_count:
|
||||
type: number
|
||||
description: "下载次数"
|
||||
example: 下载次数 | number
|
||||
document_favorite_count:
|
||||
type: number
|
||||
description: "收藏次数"
|
||||
example: 收藏次数 | number
|
||||
document_embedding_status:
|
||||
type: string
|
||||
description: "文档嵌入状态"
|
||||
example: 文档嵌入状态 | string
|
||||
document_embedding_error:
|
||||
type: string
|
||||
description: "文档嵌入错误原因"
|
||||
example: 文档嵌入错误原因 | string
|
||||
document_embedding_lasttime:
|
||||
type: string
|
||||
description: "最后一次嵌入更新时间"
|
||||
example: 最后一次嵌入更新时间 | string
|
||||
document_vector_version:
|
||||
type: string
|
||||
description: "向量版本号 / 模型名称"
|
||||
example: 向量版本号或模型名称 | string
|
||||
document_product_categories:
|
||||
type: string
|
||||
description: "产品关联文档,多选后以 | 分隔"
|
||||
example: 产品关联文档,多选按|分隔 | string
|
||||
document_application_scenarios:
|
||||
type: string
|
||||
description: "筛选依据,多选后以 | 分隔"
|
||||
example: 筛选依据,多选按|分隔 | string
|
||||
document_hotel_type:
|
||||
type: string
|
||||
description: "适用场景,多选后以 | 分隔"
|
||||
example: 适用场景,多选按|分隔 | string
|
||||
document_remark:
|
||||
type: string
|
||||
description: "备注"
|
||||
example: 备注 | string
|
||||
PocketBaseDocumentRecord:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/PocketBaseRecordBase'
|
||||
@@ -1460,10 +1608,31 @@ components:
|
||||
updated: 记录更新时间 | string
|
||||
document_id: 文档业务ID | string
|
||||
document_create: 文档创建时间,由数据库自动生成 | string
|
||||
document_effect_date: 文档生效日期 | string
|
||||
document_expiry_date: 文档到期日期 | string
|
||||
document_title: 文档标题 | string
|
||||
document_type: 文档类型,按system_dict_id@dict_word_enum保存 | string
|
||||
document_subtitle: 文档副标题 | string
|
||||
document_summary: 文档摘要 | string
|
||||
document_content: 正文内容 | string
|
||||
document_image: 图片附件ID串,底层按|分隔 | string
|
||||
document_video: 视频附件ID串,底层按|分隔 | string
|
||||
document_file: 文件附件ID串,底层按|分隔 | string
|
||||
document_status: 文档状态 | string
|
||||
document_owner: 上传者openid | string
|
||||
document_relation_model: 关联机型标识 | string
|
||||
document_keywords: 关键词,多选按|分隔 | string
|
||||
document_share_count: 分享次数 | number
|
||||
document_download_count: 下载次数 | number
|
||||
document_favorite_count: 收藏次数 | number
|
||||
document_embedding_status: 文档嵌入状态 | string
|
||||
document_embedding_error: 文档嵌入错误原因 | string
|
||||
document_embedding_lasttime: 最后一次嵌入更新时间 | string
|
||||
document_vector_version: 向量版本号或模型名称 | string
|
||||
document_product_categories: 产品关联文档,多选按|分隔 | string
|
||||
document_application_scenarios: 筛选依据,多选按|分隔 | string
|
||||
document_hotel_type: 适用场景,多选按|分隔 | string
|
||||
document_remark: 备注 | string
|
||||
PocketBaseDocumentListResponse:
|
||||
type: object
|
||||
required:
|
||||
@@ -1510,10 +1679,31 @@ components:
|
||||
updated: 记录更新时间 | string
|
||||
document_id: 文档业务ID | string
|
||||
document_create: 文档创建时间,由数据库自动生成 | string
|
||||
document_effect_date: 文档生效日期 | string
|
||||
document_expiry_date: 文档到期日期 | string
|
||||
document_title: 文档标题 | string
|
||||
document_type: 文档类型,按system_dict_id@dict_word_enum保存 | string
|
||||
document_subtitle: 文档副标题 | string
|
||||
document_summary: 文档摘要 | string
|
||||
document_content: 正文内容 | string
|
||||
document_image: 图片附件ID串,底层按|分隔 | string
|
||||
document_video: 视频附件ID串,底层按|分隔 | string
|
||||
document_file: 文件附件ID串,底层按|分隔 | string
|
||||
document_status: 文档状态 | string
|
||||
document_owner: 上传者openid | string
|
||||
document_relation_model: 关联机型标识 | string
|
||||
document_keywords: 关键词,多选按|分隔 | string
|
||||
document_share_count: 分享次数 | number
|
||||
document_download_count: 下载次数 | number
|
||||
document_favorite_count: 收藏次数 | number
|
||||
document_embedding_status: 文档嵌入状态 | string
|
||||
document_embedding_error: 文档嵌入错误原因 | string
|
||||
document_embedding_lasttime: 最后一次嵌入更新时间 | string
|
||||
document_vector_version: 向量版本号或模型名称 | string
|
||||
document_product_categories: 产品关联文档,多选按|分隔 | string
|
||||
document_application_scenarios: 筛选依据,多选按|分隔 | string
|
||||
document_hotel_type: 适用场景,多选按|分隔 | string
|
||||
document_remark: 备注 | string
|
||||
PocketBaseNativeError:
|
||||
type: object
|
||||
properties:
|
||||
|
||||
Reference in New Issue
Block a user