first commit
This commit is contained in:
29
pkg/res/app_user_shop.go
Normal file
29
pkg/res/app_user_shop.go
Normal file
@ -0,0 +1,29 @@
|
||||
package res
|
||||
|
||||
import "servicebase/pkg/datasource/fields"
|
||||
|
||||
type CategoryTreeRes struct {
|
||||
IDBody
|
||||
CatName string `gorm:"column:cat_name;type:varchar(60);not null" json:"cat_name"`
|
||||
IconImg string `gorm:"column:icon_img;type:varchar(255);not null" json:"icon_img"`
|
||||
ParentID string `gorm:"column:parent_id;type:int;not null" json:"parent_id"`
|
||||
Level int32 `gorm:"column:level;type:int;not null" json:"level"`
|
||||
Status int32 `gorm:"column:status;type:int;not null" json:"status"`
|
||||
IsHot string `gorm:"column:is_hot;type:char(1);not null;default:0" json:"is_hot"`
|
||||
CreateAt fields.Time `gorm:"column:create_at;type:datetime;not null" json:"create_at"`
|
||||
UpdateAt fields.Time `gorm:"column:update_at;type:datetime;not null" json:"update_at"`
|
||||
Children []*CategoryTreeRes `json:"children" gorm:"-"`
|
||||
}
|
||||
|
||||
type ShopItemRes struct {
|
||||
ID string `json:"shopId"`
|
||||
ShopName string `json:"shopName"`
|
||||
BgColor string `json:"bgColor"`
|
||||
Lng string `json:"lng"`
|
||||
Lat string `json:"lat"`
|
||||
Address string `json:"address"`
|
||||
PostCode string `json:"postCode"`
|
||||
Phone string `json:"phone"`
|
||||
OpenTime string `json:"openTime"`
|
||||
Traffic string `json:"traffic"`
|
||||
}
|
||||
Reference in New Issue
Block a user