店铺增加一些字段
This commit is contained in:
parent
dc4bbcb80f
commit
0f4122bf41
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user