|
@@ -3,10 +3,10 @@ const Schema = require('mongoose').Schema;
|
|
|
const metaPlugin = require('naf-framework-mongoose-free/lib/model/meta-plugin');
|
|
|
|
|
|
const reply = {
|
|
|
- reply_person: { type: String, zh: '评论人' },
|
|
|
content: { type: String, zh: '内容' },
|
|
|
+ time: { type: String, zh: '时间' },
|
|
|
file: { type: Array, zh: '图片' },
|
|
|
- // reply:reply,
|
|
|
+ reply: { type: String, zh: '店家回复' },
|
|
|
};
|
|
|
|
|
|
// 商品评价
|
|
@@ -15,7 +15,7 @@ const goodsRate = {
|
|
|
shop: { type: String, required: false, zh: '店铺', ref: 'Shop.Shop' }, //
|
|
|
goods: { type: String, required: false, zh: '商品', ref: 'Shop.Goods' }, //
|
|
|
goodsSpec: { type: String, required: false, zh: '规格', ref: 'Shop.GoodsSpec' }, //
|
|
|
- reply: { type: Object, required: false, zh: '回复' }, //
|
|
|
+ reply: { type: Array, required: false, zh: '回复' }, //
|
|
|
goods_score: { type: Number, required: false, zh: '商品评分' }, //
|
|
|
shop_score: { type: Number, required: false, zh: '店铺评分' }, //
|
|
|
transport_score: { type: Number, required: false, zh: '快递评分' }, //
|