From f6512301ac540a804ae3f55c8af3e6ed48094245 Mon Sep 17 00:00:00 2001 From: wakary Date: Thu, 13 May 2021 08:36:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?update=20collection/opendb-mall-goods/colle?= =?UTF-8?q?ction.json.=20=E5=95=86=E5=93=81=E6=8F=8F=E8=BF=B0=E5=A4=A7?= =?UTF-8?q?=E6=A6=82=E6=A0=BC=E5=BC=8F=EF=BC=9A=20-=20=E5=AF=8C=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E6=B7=B7=E6=8E=92=EF=BC=9B=20-=20=E7=BA=AF=E6=96=87?= =?UTF-8?q?=E5=AD=97=EF=BC=9B=20-=20=E7=BA=AF=E5=9B=BE=E7=89=87=EF=BC=9B?= =?UTF-8?q?=20-=20=E6=96=87=E5=AD=97=E6=AE=B5+=E5=9B=BE=E7=89=87=E6=AE=B5?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit goods_desc本身是能满足这几种要求,基于不同的使用需求,我们配置不同的goods_desc(自己知道如何提取出对应的数据)。 我们建议再傻瓜一点,通过增加goods_imgs来适配更多的使用情况。比如商品的描述全是图片的,可以直接使用使用goods_imgs,文字描述+图片的,可以使用goods_desc+goods_imgs。 --- collection/opendb-mall-goods/collection.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/collection/opendb-mall-goods/collection.json b/collection/opendb-mall-goods/collection.json index a09a4e7..cba13d9 100644 --- a/collection/opendb-mall-goods/collection.json +++ b/collection/opendb-mall-goods/collection.json @@ -41,6 +41,10 @@ "title": "详细描述", "trim":"both" }, + "goods_imgs": { + "bsonType": "array", + "description": "商品详情页的图片描述地址" + }, "goods_thumb": { "bsonType": "string", "description": "商品缩略图,用于在列表或搜索结果中预览显示", From 9f8b0288eff13be569fac42d9aee3f98844e5205 Mon Sep 17 00:00:00 2001 From: wakary Date: Thu, 13 May 2021 09:10:15 +0800 Subject: [PATCH 2/2] =?UTF-8?q?update=20collection/opendb-news-comments/co?= =?UTF-8?q?llection.json.=20-=20=E5=A2=9E=E5=8A=A0=E5=8D=95=E7=8B=AC?= =?UTF-8?q?=E7=9A=84=E8=AF=84=E8=AE=BA=E5=9B=BE=E7=89=87=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collection/opendb-news-comments/collection.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/collection/opendb-news-comments/collection.json b/collection/opendb-news-comments/collection.json index 81a0e89..3a31e86 100644 --- a/collection/opendb-news-comments/collection.json +++ b/collection/opendb-news-comments/collection.json @@ -31,6 +31,11 @@ "title": "评论内容", "trim":"right" }, + "comment_imgs": { + "bsonType": "array", + "description": "评论图片", + "title": "评论图片" + }, "like_count": { "bsonType": "int", "description": "评论喜欢数、点赞数"