From 0f4122bf41cbdde8daed19528d8f72c635634974 Mon Sep 17 00:00:00 2001 From: zhl Date: Tue, 20 Apr 2021 18:35:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=93=BA=E5=A2=9E=E5=8A=A0=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/shop/Shop.ts | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/src/models/shop/Shop.ts b/src/models/shop/Shop.ts index 394fbd6..96fdbdb 100644 --- a/src/models/shop/Shop.ts +++ b/src/models/shop/Shop.ts @@ -20,10 +20,38 @@ const saveExcludeKeys = ['createdAt', 'updatedAt', '__v', '_id'] class ShopClass extends FindOrCreate { @prop({ required: true }) public name!: string - + /** + * 详细地址 + * @type {string} + */ @prop() - public area: string + public address: string + /** + * 区域代码 + * @type {number} + */ + @prop() + public areaCode: number + /** + * 根据区域代码获取的区域信息 + * 冗余数据 + * @type {string} + */ + @prop() + public areaStr: string + /** + * 经度 + * @type {number} + */ + @prop() + public longitude: number + /** + * 纬度 + * @type {number} + */ + @prop() + public latitude: number /** * 是否删除 * @type {boolean}