Documentation ¶
Index ¶
- Constants
- Variables
- type FavoriteService
- func (s *FavoriteService) FavoriteAction(ctx context.Context, req *pb.FavoriteActionRequest) (*pb.FavoriteActionReply, error)
- func (s *FavoriteService) GetFavoriteList(ctx context.Context, req *pb.FavoriteListRequest) (*pb.FavoriteListReply, error)
- func (s *FavoriteService) IsFavorite(ctx context.Context, req *pb.IsFavoriteRequest) (*pb.IsFavoriteReply, error)
Constants ¶
View Source
const ( CodeSuccess = 0 CodeFailed = 300 )
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewFavoriteService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type FavoriteService ¶
type FavoriteService struct { pb.UnimplementedFavoriteServiceServer // contains filtered or unexported fields }
func NewFavoriteService ¶
func NewFavoriteService(fu *biz.FavoriteUseCase, logger log.Logger) *FavoriteService
func (*FavoriteService) FavoriteAction ¶
func (s *FavoriteService) FavoriteAction( ctx context.Context, req *pb.FavoriteActionRequest, ) (*pb.FavoriteActionReply, error)
func (*FavoriteService) GetFavoriteList ¶
func (s *FavoriteService) GetFavoriteList( ctx context.Context, req *pb.FavoriteListRequest, ) (*pb.FavoriteListReply, error)
func (*FavoriteService) IsFavorite ¶
func (s *FavoriteService) IsFavorite( ctx context.Context, req *pb.IsFavoriteRequest, ) (*pb.IsFavoriteReply, error)
Click to show internal directories.
Click to hide internal directories.