From 8deff0d0c1fd0fd133c6322c6e71d463317f340f Mon Sep 17 00:00:00 2001 From: phoooob <1162762894@qq.com> Date: Sat, 5 Sep 2020 10:04:07 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=80=80=E6=AC=BE=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E6=94=B9=E4=B8=BAint=E7=B1=BB=E5=9E=8B=EF=BC=8C=E5=8D=95?= =?UTF-8?q?=E4=BD=8D=EF=BC=9A=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collection/uni-id-base-order/collection.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collection/uni-id-base-order/collection.json b/collection/uni-id-base-order/collection.json index eb70066..e63d500 100644 --- a/collection/uni-id-base-order/collection.json +++ b/collection/uni-id-base-order/collection.json @@ -41,8 +41,8 @@ "description": "是否是退款订单" }, "refund_amount": { - "bsonType": "float", - "description": "退款金额(非退款订单表示已退款总金额,退款订单表示该笔退款的退款金额),单位:元" + "bsonType": "int", + "description": "退款金额(非退款订单表示已退款总金额,退款订单表示该笔退款的退款金额),单位:分" }, "refund_count": { "bsonType": "int", From d64b2444b5853edf8f92268fa5b2bf4734522970 Mon Sep 17 00:00:00 2001 From: phoooob <1162762894@qq.com> Date: Sun, 20 Sep 2020 08:07:36 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E7=95=99=E8=A8=80=E5=8F=8D=E9=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collection/uni-id-feedback/collection.json | 79 ++++++++++++++++++++++ collection/uni-id-feedback/package.json | 17 +++++ database/uni-id/db_init.json | 3 +- 3 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 collection/uni-id-feedback/collection.json create mode 100644 collection/uni-id-feedback/package.json diff --git a/collection/uni-id-feedback/collection.json b/collection/uni-id-feedback/collection.json new file mode 100644 index 0000000..dcef82e --- /dev/null +++ b/collection/uni-id-feedback/collection.json @@ -0,0 +1,79 @@ +{ + "schema": { + "bsonType": "object", + "required": ["uid", "content"], + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "uid": { + "bsonType": "string", + "description": "留言反馈用户ID/回复留言用户ID,参考uni-id-users表" + }, + "create_time": { + "bsonType": "timestamp", + "description": "留言时间/回复留言时间" + }, + "content": { + "bsonType": "string", + "description": "留言内容/回复内容" + }, + "imgs": { + "bsonType": "array", + "description": "图片列表" + }, + "is_reply": { + "bsonType": "bool", + "description": "是否是回复类型" + }, + "feedback_id": { + "bsonType": "string", + "description": "被回复留言ID" + }, + "contact": { + "bsonType": "string", + "description": "联系人" + }, + "mobile": { + "bsonType": "string", + "description": "联系电话" + }, + "reply_count": { + "bsonType": "int", + "description": "被回复条数" + } + } + }, + "index": [ + { + "IndexName": "uid", + "MgoKeySchema": { + "MgoIndexKeys": [{ + "Name": "uid", + "Direction": "1" + }], + "MgoIsUnique": false + } + }, + { + "IndexName": "is_reply", + "MgoKeySchema": { + "MgoIndexKeys": [{ + "Name": "is_reply", + "Direction": "1" + }], + "MgoIsUnique": false + } + }, + { + "IndexName": "create_time", + "MgoKeySchema": { + "MgoIndexKeys": [{ + "Name": "create_time", + "Direction": "1" + }], + "MgoIsUnique": false + } + } + ] +} diff --git a/collection/uni-id-feedback/package.json b/collection/uni-id-feedback/package.json new file mode 100644 index 0000000..8a2750b --- /dev/null +++ b/collection/uni-id-feedback/package.json @@ -0,0 +1,17 @@ +{ + "name": "@opendb/uni-id-feedback", + "version": "0.0.1", + "description": "用户留言反馈", + "keywords": ["留言","反馈"], + "opendb": { + "title": "留言反馈", + "type": "collection", + "contributors": [ + { + "name": "BaseCloud", + "email": "11162762894@qq.com", + "homepage": "https://ext.dcloud.net.cn/plugin?id=2772" + } + ] + } +} \ No newline at end of file diff --git a/database/uni-id/db_init.json b/database/uni-id/db_init.json index 31b71b3..36b5f50 100644 --- a/database/uni-id/db_init.json +++ b/database/uni-id/db_init.json @@ -7,5 +7,6 @@ "uni-id-scores": {}, "uni-id-task": {}, "uni-id-task-log": {}, - "uni-id-followers": {} + "uni-id-followers": {}, + "uni-id-feedback": {} } From 62808544334bca44f3fc2710b940e652b123294a Mon Sep 17 00:00:00 2001 From: phoooob <1162762894@qq.com> Date: Wed, 30 Sep 2020 18:48:59 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=9B=B4=E6=AD=A3=E8=A1=A8=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{uni-id-feedback => opendb-feedback}/collection.json | 0 collection/{uni-id-feedback => opendb-feedback}/package.json | 2 +- collection/uni-id-address/package.json | 2 +- database/uni-id/db_init.json | 3 +-- 4 files changed, 3 insertions(+), 4 deletions(-) rename collection/{uni-id-feedback => opendb-feedback}/collection.json (100%) rename collection/{uni-id-feedback => opendb-feedback}/package.json (90%) diff --git a/collection/uni-id-feedback/collection.json b/collection/opendb-feedback/collection.json similarity index 100% rename from collection/uni-id-feedback/collection.json rename to collection/opendb-feedback/collection.json diff --git a/collection/uni-id-feedback/package.json b/collection/opendb-feedback/package.json similarity index 90% rename from collection/uni-id-feedback/package.json rename to collection/opendb-feedback/package.json index 8a2750b..ebe382a 100644 --- a/collection/uni-id-feedback/package.json +++ b/collection/opendb-feedback/package.json @@ -1,5 +1,5 @@ { - "name": "@opendb/uni-id-feedback", + "name": "@opendb/opendb-feedback", "version": "0.0.1", "description": "用户留言反馈", "keywords": ["留言","反馈"], diff --git a/collection/uni-id-address/package.json b/collection/uni-id-address/package.json index 5920129..718c0f0 100644 --- a/collection/uni-id-address/package.json +++ b/collection/uni-id-address/package.json @@ -14,4 +14,4 @@ } ] } -} +} \ No newline at end of file diff --git a/database/uni-id/db_init.json b/database/uni-id/db_init.json index 36b5f50..31b71b3 100644 --- a/database/uni-id/db_init.json +++ b/database/uni-id/db_init.json @@ -7,6 +7,5 @@ "uni-id-scores": {}, "uni-id-task": {}, "uni-id-task-log": {}, - "uni-id-followers": {}, - "uni-id-feedback": {} + "uni-id-followers": {} }