Documentation ¶
Index ¶
- func Convert2HotelFoodCategoryResp(c model.HotelFoodCategory) res.HotelFoodCategoryResp
- func Convert2TeamChooseFoodResp(food *model.TeamChooseFood) res.TeamChooseFoodResp
- func TeamChooseItem(item *model.TeamChooseItem) res.TeamChooseItemResp
- type CommentService
- type CommentTagService
- type DiscountService
- type GuessService
- type HotelService
- type ListNavItemService
- type MarketService
- type MeService
- type OrderSeatService
- type PostTeamOrderService
- type RestaurantService
- type SuggestFoodService
- type SuggestService
- type TakeOutService
- type TeamService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert2HotelFoodCategoryResp ¶
func Convert2HotelFoodCategoryResp(c model.HotelFoodCategory) res.HotelFoodCategoryResp
func Convert2TeamChooseFoodResp ¶
func Convert2TeamChooseFoodResp(food *model.TeamChooseFood) res.TeamChooseFoodResp
func TeamChooseItem ¶
func TeamChooseItem(item *model.TeamChooseItem) res.TeamChooseItemResp
Types ¶
type CommentService ¶
type CommentService struct {
Repo repository.CommentRepo
}
func (*CommentService) GetCommentList ¶
func (c *CommentService) GetCommentList(hotelId string) []model.Comment
type CommentTagService ¶
type CommentTagService struct {
Repo repository.CommentTagRepo
}
func (*CommentTagService) GetCommentTagList ¶
func (c *CommentTagService) GetCommentTagList(hotelId string) []model.CommentTag
type DiscountService ¶
type DiscountService struct {
Repo *repository.Discount
}
func (*DiscountService) ListDiscounts ¶
func (d *DiscountService) ListDiscounts() []model.Discount
type GuessService ¶
type GuessService struct {
Repo *repository.GuessRepo
}
func (*GuessService) ListGuess ¶
func (g *GuessService) ListGuess() []model.Guess
type HotelService ¶
type HotelService struct { Repo *repository.HotelRepo TeamRepo *repository.TeamRepo SuggestFoodRepo *repository.SuggestFoodRepo CommentTagRepo *repository.CommentTagRepo CommentRepo *repository.CommentRepo MarketRepo *repository.MarketRepo }
func (*HotelService) GetHotelDetailByID ¶
func (h *HotelService) GetHotelDetailByID(id string) (*model.Hotel, error)
type ListNavItemService ¶
type ListNavItemService struct {
}func (*ListNavItemService) ListNavItems ¶
func (i *ListNavItemService) ListNavItems(level int) []res.Nav
type MarketService ¶
type MarketService struct {
Repo repository.MarketRepo
}
func (*MarketService) GetMarketInfo ¶
func (m *MarketService) GetMarketInfo(hotelId string) model.Market
type MeService ¶
type MeService struct {
Repo *repository.MeItemRepo
}
type OrderSeatService ¶
type OrderSeatService struct {
Repo *repository.OrderSeatRepo
}
func (*OrderSeatService) OrderSeatOp ¶
func (os *OrderSeatService) OrderSeatOp(p param.OrderSeat) string
type PostTeamOrderService ¶
type PostTeamOrderService struct { TeamRepo *repository.TeamRepo Repo *repository.TeamPostOrderRepo }
func (*PostTeamOrderService) PostTeamOrder ¶
func (t *PostTeamOrderService) PostTeamOrder(order param.TeamPostOrder) (string, error)
type RestaurantService ¶
type RestaurantService struct { Repo *repository.RestaurantNavRepo ItemRepo *repository.RestaurantTabItemRepo }
func (*RestaurantService) ListGoodRestaurantTabItem ¶
func (r *RestaurantService) ListGoodRestaurantTabItem() []model.RestaurantTabItem
func (*RestaurantService) ListRestaurantNav ¶
func (r *RestaurantService) ListRestaurantNav(level int) []model.RestaurantNav
type SuggestFoodService ¶
type SuggestFoodService struct {
Repo *repository.SuggestFoodRepo
}
func (*SuggestFoodService) GetFoodByHotelId ¶
func (sf *SuggestFoodService) GetFoodByHotelId(hotelId string) []model.SuggestFood
func (*SuggestFoodService) ListSuggestList ¶
func (sf *SuggestFoodService) ListSuggestList(level int) []model.Suggest
type SuggestService ¶
type SuggestService struct {
Repo *repository.SuggestRepo
}
func (*SuggestService) GetSuggestByLevel ¶
func (sf *SuggestService) GetSuggestByLevel(level int) model.Suggest
type TakeOutService ¶
type TakeOutService struct {
Repo *repository.TakeOutItemRepo
}
func (*TakeOutService) GetTakeOutListByHotelId ¶
func (to *TakeOutService) GetTakeOutListByHotelId(hotelId string) res.TakeOutRsp
type TeamService ¶
type TeamService struct {
Repo *repository.TeamRepo
}
func (*TeamService) GetTeamDetail ¶
func (t *TeamService) GetTeamDetail(teamId string) res.TeamResp
func (*TeamService) GetTeamListByHotelId ¶
func (t *TeamService) GetTeamListByHotelId(hotelId string) []model.Team
Click to show internal directories.
Click to hide internal directories.