店铺增加一些字段

This commit is contained in:
zhl 2021-04-20 18:35:29 +08:00
parent dc4bbcb80f
commit 0f4122bf41

View File

@ -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}