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}