model

package
v0.0.0-...-00ec2d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMySqlDB

func GetMySqlDB() *gorm.DB

func InitSelfDB

func InitSelfDB() *gorm.DB

Types

type ChooseFood

type ChooseFood struct {
	ChooseFoodId string `json:"chooseFoodId"`
	ChooseName   string `json:"chooseName"`
}

type Comment

type Comment struct {
	//评论ID
	CommentId string `json:"commentId"`
	//评论
	Comment string `json:"comment"`
	//评论人
	AccountName string `json:"accountName"`
	//评论人头像
	AccountPic string `json:"accountPic"`
	//评分
	Star int `json:"star"`
	//人均消费
	AveragePerson int `json:"averagePerson"`
	//是否是优质点评
	IsGood int `json:"isGood"`
}

type CommentTag

type CommentTag struct {
	//TagID
	TagId string `json:"tagId"`
	//Tag名称
	TagName string `json:"tagName"`
	//Tag数
	TagNum int `json:"tagNum"`
	//餐馆ID
	HotelId string `json:"hotelId"`
}

type DataBase

type DataBase struct {
	MyDB *gorm.DB
}
var DB *DataBase

func (*DataBase) Close

func (db *DataBase) Close()

func (*DataBase) Init

func (db *DataBase) Init()

type Discount

type Discount struct {
	//自增ID
	Id string `json:"id"`
	//DiscountId
	DiscountId string `json:"discountId"`
	//优惠icon地址
	DiscountItemIcon string `json:"discountItemIcon"`
	//优惠项目src
	DiscountItemSrc string `json:"discountItemSrc"`
	//优惠标题
	DiscountItemTitle string `json:"discountItemTitle"`
	//优惠餐馆
	DiscountItemHotel string `json:"discountItemHotel"`
	//优惠价格
	DiscountItemGoodPrice int32 `json:"discountItemGoodsPrice"`
	//原始价格
	DiscountItemPrice int32 `json:"discountItemPrice"`
	//折扣
	Discount string `json:"discount"`
	//TODO 最后做
	Pos int `json:"pos"`
}

type Guess

type Guess struct {
	//GuessId
	GuessId string `json:"guess_id"`
	// 图片的地址
	Src string `json:"src"`
	// 展示标题
	Title string `json:"title"`
	// 描述
	Desc string `json:"desc"`
	//优惠价格
	GoodPrice string `json:"goodPrice"`
	//原始价格
	Price string `json:"price"`
	//售出分数
	SoldNum int32 `json:"soldNum"`
}

猜你喜欢

type Hotel

type Hotel struct {
	//餐馆ID
	HotelID string `json:"hotelId"`
	//餐馆名称
	HotelName string `json:"hotelName"`
	// 餐馆图片地址
	Pic string `json:"pic"`
	// 餐馆打分
	Star string `json:"star"`
	//评论数
	Num int `json:"num"`
	//人均消费
	AveragePrice float64 `json:"averagePrice"`
	//口味
	Taste float64 `json:"taste"`
	//环境
	Env float64 `json:"env"`
	//服务
	Service float64 `json:"service"`
	//详细地址 (某路某号某广场2层)
	MapAddr string `json:"mapAddr"`
	//详细地址2 (距地铁几号线某站 A 西北口步行多少米)
	MapAddr2 string `json:"mapAddr2"`
	//类型(潮汕菜/湘菜)
	ShortType string `json:"shortType"`
	//营业时间
	BusinessTime string `json:"businessTime"`
	//榜单排行
	Bang string `json:"bang"`
	//团购列表
	TeamList []Team
	//推荐菜列表
	FoodList []SuggestFood
	//评论tag列表
	CommentTagList []CommentTag
	//评论列表
	CommentList []Comment
	//商场
	Market Market
}

type HotelFoodCategory

type HotelFoodCategory struct {
	//HotelFoodCategoryId
	HotelFoodCategoryId string `json:"hotelFoodCategoryId"`
	// 分类名称
	HotelFoodCategoryName string `json:"hotelFoodCategoryName"`
	// 餐馆ID
	HotelId string `json:"hotelId"`
}

type IndexNavItem

type IndexNavItem struct {
	Id    string `json:"id"`
	Src   string `json:"src"`
	Title string `json:"title"`
}

首页导航项

type Market

type Market struct {
	//MarketId
	MarketId string `json:"marketId"`
	//商场名称
	MarketName string `json:"marketName"`
	//商场地址
	Addr string `json:"addr"`
	//类型
	ShortType string `json:"shortType"`
	//评价
	Star int `json:"star"`
	//商场图片地址
	Pic string `json:"pic"`
}

type MeItem

type MeItem struct {
	//ItemId
	ItemId string `json:"itemId"`
	//图片地址
	Src string `json:"src"`
	//标题
	Title string `json:"title"`
	Type  string `json:"type"`
}

我的 页面配置项

type Nav struct {
	NavId string `json:"navId"`
	//图片地址
	Src string `json:"src"`
	//导航标题
	Title string `json:"title"`
}

首页导航

type OrderSeat

type OrderSeat struct {
	//OrderSeatId
	OrderSeatId string `json:"orderSeatId"`
	//餐馆ID
	HotelID string `json:"hotelId"`
	//订座人数
	Persons int `json:"persons"`
	//预定时间
	DateTime int64 `json:"datetime"`
	//联系手机号
	Mobile int `json:"mobile"`
	//房间类型
	RoomType int `json:"room_Type"`
	//联系人名称
	Name string `json:"name"`
	//联系人性别
	Sex int `json:"sex"`
	//留言
	Message string `json:"message"`
}

订座

type RestaurantNav

type RestaurantNav struct {
	//NavId
	NavId string `json:"navId"`
	//标题
	Title string `json:"title"`
	//描述
	Desc string `json:"desc"`
	//图片地址
	Src string `json:"src"`
	//等级
	Level int `json:"level"`
}

美食热门排行榜

type RestaurantTabItem

type RestaurantTabItem struct {
	ItemId string  `json:"itemId"`
	Src    string  `json:"src"`
	Title  string  `json:"title"`
	Star   float32 `json:"star"`
	Price  string  `json:"price"`
	Area   string  `json:"area"`
	Type   string  `json:"type"`
	Desc   string  `json:"desc"`
	Team   string  `json:"team"`
	Quan   string  `json:"quan"`
}

type SameCity

type SameCity struct {
	Id        string `json:"id"`
	Title     string `json:"title"`
	PhotoAddr string `json:"photoAddr"`
	Distance  string `json:"distance"`
	AvatarUrl string `json:"avatarUrl"`
	Location  string `json:"location"`
	Random    int32  `json:"random"`
	Desc      string `json:"desc"`
}

type SameCityItems

type SameCityItems struct {
	Items1 []SameCity `json:"items1"`
	Items2 []SameCity `json:"items2"`
}

type Suggest

type Suggest struct {
	SuggestId string `json:"suggestId"`
	//关键字
	KeyWord1 string `json:"keyWord1"`
	KeyWord2 string `json:"keyWord2"`
	KeyWord3 string `json:"keyWord3"`
	KeyWord4 string `json:"keyWord4"`
	//图片地址
	Src string `json:"src"`
	//菜品名称
	FoodName string `json:"foodName"`
	//icon图标
	Icon string `json:"icon"`
	//餐馆名称
	HotelName string `json:"hotelName"`
	//参加人数
	JoinPersons string `json:"joinPersons"`
	//价格
	Price string `json:"price"`
	//优惠价格
	GoodPrice string `json:"goodPrice"`
	//距离我多远
	Distance string `json:"distance"`
	//等级分类
	Level int `json:"level"`
}

首页推荐

type SuggestFood

type SuggestFood struct {
	SuggestFoodId   string `json:"suggestFoodId"`
	SuggestFoodName string `json:"suggestFoodName"`
	SuggestPersons  string `json:"suggestPersons"`
}

type TakeOut

type TakeOut struct {
	//TakeOutId
	TakeOutId string `json:"takeOutId"`
	//餐馆分类ID
	HotelFoodCategoryId string `json:"hotelFoodCategoryId"`
	//菜品名称
	FoodName string `json:"foodName"`
	//菜品图片
	Pic string `json:"pic"`
	//月销售数量
	MonthSoldNum string `json:"monthSoldNum"`
	//好评率
	Zan int `json:"zan"`
	//价格
	Price int `json:"price"`
	//是否为推荐
	IsSuggest int `json:"isSuggest"`
	//折扣价格
	DiscountPrice int `json:"discountPrice"`
	//优惠
	Discount float64 `json:"discount"`
}

外卖

type TakeOutItem

type TakeOutItem struct {
	Hotel
	HotelFoodCategory
	TakeOut
}

type Team

type Team struct {
	//团购Id
	TeamId string `json:"teamId"`
	//餐馆ID
	HotelId string `json:"hotelId"`
	//餐馆名称
	TeamName string `json:"teamName"`
	//原价
	Price int `json:"price"`
	//团购价格
	TeamPrice int `json:"teamPrice"`
	//销售数量
	SoldNum string `json:"soldNum"`
}

团购

type TeamAggregation

type TeamAggregation struct {
	TeamDetail
	TeamChooseFood
	TeamChooseItem
}

type TeamChooseFood

type TeamChooseFood struct {
	//TeamChooseFoodId
	TeamChooseFoodId string `gorm:"column:team_choose_food_id" json:"teamChooseFoodId"`
	//名称
	TeamChooseFoodName string `gorm:"column:team_choose_food_name" json:"teamChooseName"`
}

团购套餐选取(如烧腊2选1)

type TeamChooseItem

type TeamChooseItem struct {
	//TeamChoseItemId
	TeamChoseItemId string `gorm:"column:team_chose_item_id" json:"choseItemId"`
	//套餐名称(如 干贝虾蟹粥)
	TeamChooseItemName string `gorm:"column:team_choose_item_name" json:"chooseItemName"`
	//提示(如两人份)
	TeamChooseItemTip string `gorm:"column:team_choose_item_tip" json:"chooseItemTip"`
	//团购价格
	TeamPrice int `gorm:"column:team_price" json:"teamPrice"`
}

团购套餐选取

type TeamDetail

type TeamDetail struct {
	//TeamDetailId
	TeamDetailId string `gorm:"column:team_detail_id" json:"teamDetailId"`
	//团购详细名称
	TeamDetailName string `gorm:"column:team_detail_name" json:"teamDetailName"`
	//团购政策
	Policy string `gorm:"column:policy" json:"policy"`
	//团购提示
	Tips string `gorm:"column:tips" json:"tips"`
}

type TeamPostOrder

type TeamPostOrder struct {
	TeamPostOrderId string `json:"teamPostOrderId"`
	//团购详情ID
	TeamDetailId string `json:"teamDetailId"`
	//支付价格
	RealPrice int `json:"realPrice"`
	//数量
	Quantity int `json:"quantity"`
	//下单人手机号
	Mobile string `json:"mobile"`
	//下单人名称
	Name string `json:"name"`
	//下单人性别
	Sex int `json:"sex"`
	//附加消息
	Message string `json:"message"`
}

团购下单

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL