dp_service

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 {
	Repo *repository.ListNavItemRepo
}

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
}

func (*MeService) ListMe

func (m *MeService) ListMe() []model.MeItem

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

Jump to

Keyboard shortcuts

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