feat: 更新产品参数处理逻辑,支持数组格式;修改相关 API 文档;添加产品参数迁移脚本
This commit is contained in:
@@ -731,7 +731,9 @@ paths:
|
||||
prod_list_icon: <产品图标附件ID>|<string>
|
||||
prod_list_description: <产品说明>|<string>
|
||||
prod_list_feature: <产品特色>|<string>
|
||||
prod_list_parameters: <产品参数JSON>|<object>
|
||||
prod_list_parameters:
|
||||
- name: <属性名>|<string>
|
||||
value: <属性值>|<string>
|
||||
prod_list_plantype: <产品方案>|<string>
|
||||
prod_list_category: <产品分类>|<string>
|
||||
prod_list_sort: <排序值>|<number>
|
||||
@@ -1628,11 +1630,20 @@ components:
|
||||
description: 产品特色
|
||||
example: <产品特色>|<string>
|
||||
prod_list_parameters:
|
||||
type: object
|
||||
additionalProperties: true
|
||||
description: 产品参数(JSON 对象/数组)
|
||||
type: array
|
||||
description: 产品参数数组,每项包含 name/value
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
example: <属性名>|<string>
|
||||
value:
|
||||
type: string
|
||||
example: <属性值>|<string>
|
||||
example:
|
||||
key: <参数值>|<string>
|
||||
- name: <属性名>|<string>
|
||||
value: <属性值>|<string>
|
||||
prod_list_plantype:
|
||||
type: string
|
||||
description: 产品方案
|
||||
@@ -1694,7 +1705,8 @@ components:
|
||||
prod_list_description: <产品说明>|<string>
|
||||
prod_list_feature: <产品特色>|<string>
|
||||
prod_list_parameters:
|
||||
key: <参数值>|<string>
|
||||
- name: <属性名>|<string>
|
||||
value: <属性值>|<string>
|
||||
prod_list_plantype: <产品方案>|<string>
|
||||
prod_list_category: <产品分类>|<string>
|
||||
prod_list_sort: <排序值>|<number>
|
||||
@@ -1756,7 +1768,8 @@ components:
|
||||
prod_list_description: <产品说明>|<string>
|
||||
prod_list_feature: <产品特色>|<string>
|
||||
prod_list_parameters:
|
||||
key: <参数值>|<string>
|
||||
- name: <属性名>|<string>
|
||||
value: <属性值>|<string>
|
||||
prod_list_plantype: <产品方案>|<string>
|
||||
prod_list_category: <产品分类>|<string>
|
||||
prod_list_sort: <排序值>|<number>
|
||||
|
||||
Reference in New Issue
Block a user