Documentation ¶
Index ¶
- func GetMySqlDB() *gorm.DB
- func InitSelfDB() *gorm.DB
- type ChooseFood
- type Comment
- type CommentTag
- type DataBase
- type Discount
- type Guess
- type Hotel
- type HotelFoodCategory
- type IndexNavItem
- type Market
- type MeItem
- type Nav
- type OrderSeat
- type RestaurantNav
- type RestaurantTabItem
- type SameCity
- type SameCityItems
- type Suggest
- type SuggestFood
- type TakeOut
- type TakeOutItem
- type Team
- type TeamAggregation
- type TeamChooseFood
- type TeamChooseItem
- type TeamDetail
- type TeamPostOrder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMySqlDB ¶
func InitSelfDB ¶
Types ¶
type ChooseFood ¶
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 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 MeItem ¶
type MeItem struct { //ItemId ItemId string `json:"itemId"` //图片地址 Src string `json:"src"` //标题 Title string `json:"title"` Type string `json:"type"` }
我的 页面配置项
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 { string `json:"navId"` Title string `json:"title"` Desc string `json:"desc"` Src string `json:"src"` Level int `json:"level"` }NavId
美食热门排行榜
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 SameCityItems ¶
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 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"` }
团购下单
Source Files ¶
- OrderSeat.go
- choose_food.go
- comment.go
- comment_tag.go
- discount.go
- guess.go
- hotel.go
- hotel_food_category.go
- indexNavItem.go
- market.go
- meItem.go
- mysql.go
- nav.go
- restrant.go
- same_city.go
- sugguest.go
- suguest_food.go
- take_out.go
- team.go
- team_choose_food.go
- team_choose_item.go
- team_detail.go
- team_post_order.go
Click to show internal directories.
Click to hide internal directories.