Documentation
¶
Overview ¶
internal/service/goods_portrayal.go
Index ¶
- Variables
- type BloggerServiceService
- type FetcherService
- type GoodsPortrayalServiceService
- type GoodsTrendServiceService
- type ProductServiceService
- func (s *ProductServiceService) GetProduct(ctx context.Context, req *pb.ProductQueryRequest) (*pb.ProductQueryResponse, error)
- func (s *ProductServiceService) ListGoodsAwemes(ctx context.Context, req *pb.ListGoodsAwemesRequest) (*pb.ListGoodsAwemesResponse, error)
- func (s *ProductServiceService) ListProducts(ctx context.Context, req *pb.ListProductsRequest) (*pb.ListProductsResponse, error)
- type VideoRankService
- type VideoServiceService
- type VideoTrendServiceService
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewVideoRankService, NewVideoServiceService, NewProductServiceService, NewBloggerServiceService, NewVideoTrendServiceService, NewGoodsTrendServiceService, NewGoodsPortrayalServiceService, )
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type BloggerServiceService ¶
type BloggerServiceService struct {
pb.UnimplementedBloggerServiceServer
// contains filtered or unexported fields
}
func NewBloggerServiceService ¶
func NewBloggerServiceService(uc *biz.BloggerUsecase) *BloggerServiceService
func (*BloggerServiceService) GetBlogger ¶
func (s *BloggerServiceService) GetBlogger(ctx context.Context, req *pb.BloggerQueryRequest) (*pb.BloggerQueryResponse, error)
GetBlogger retrieves a single blogger.
func (*BloggerServiceService) ListBloggers ¶
func (s *BloggerServiceService) ListBloggers(ctx context.Context, req *pb.ListBloggersRequest) (*pb.ListBloggersResponse, error)
type FetcherService ¶
type FetcherService struct {
v1.UnimplementedFetcherServer
// contains filtered or unexported fields
}
func NewFetcherService ¶
func NewFetcherService(uc *fetcher.HttpUsecase, logger log.Logger) *FetcherService
func (*FetcherService) Hello ¶
func (s *FetcherService) Hello(ctx context.Context, req *v1.HelloRequest) (*v1.HelloReply, error)
type GoodsPortrayalServiceService ¶
type GoodsPortrayalServiceService struct {
v1.UnimplementedGoodsPortrayalServiceServer
// contains filtered or unexported fields
}
func NewGoodsPortrayalServiceService ¶
func NewGoodsPortrayalServiceService(uc *biz.GoodsPortrayalUsecase) *GoodsPortrayalServiceService
func (*GoodsPortrayalServiceService) GetGoodsPortrayal ¶
func (s *GoodsPortrayalServiceService) GetGoodsPortrayal(ctx context.Context, req *v1.GetGoodsPortrayalRequest) (*v1.GetGoodsPortrayalResponse, error)
type GoodsTrendServiceService ¶
type GoodsTrendServiceService struct {
pb.UnimplementedGoodsTrendServiceServer
// contains filtered or unexported fields
}
func NewGoodsTrendServiceService ¶
func NewGoodsTrendServiceService(uc *biz.GoodsTrendUsecase) *GoodsTrendServiceService
func (*GoodsTrendServiceService) ListGoodsTrends ¶
func (s *GoodsTrendServiceService) ListGoodsTrends(ctx context.Context, req *pb.ListGoodsTrendsRequest) (*pb.ListGoodsTrendsResponse, error)
type ProductServiceService ¶
type ProductServiceService struct {
pb.UnimplementedProductServiceServer
// contains filtered or unexported fields
}
func NewProductServiceService ¶
func NewProductServiceService(uc *biz.ProductUsecase, guc *biz.GoodsUsecase) *ProductServiceService
func (*ProductServiceService) GetProduct ¶
func (s *ProductServiceService) GetProduct(ctx context.Context, req *pb.ProductQueryRequest) (*pb.ProductQueryResponse, error)
GetProduct retrieves a single product.
func (*ProductServiceService) ListGoodsAwemes ¶
func (s *ProductServiceService) ListGoodsAwemes(ctx context.Context, req *pb.ListGoodsAwemesRequest) (*pb.ListGoodsAwemesResponse, error)
【新增方法】实现 ListGoodsAwemes 接口
func (*ProductServiceService) ListProducts ¶
func (s *ProductServiceService) ListProducts(ctx context.Context, req *pb.ListProductsRequest) (*pb.ListProductsResponse, error)
type VideoRankService ¶
type VideoRankService struct {
pb.UnimplementedVideoRankServer
// contains filtered or unexported fields
}
func NewVideoRankService ¶
func NewVideoRankService(uc *biz.VideoRankUsecase) *VideoRankService
NewVideoRankService 构造 VideoRankService
func (*VideoRankService) GetVideoRank ¶
func (s *VideoRankService) GetVideoRank(ctx context.Context, req *pb.VideoRankQueryRequest) (*pb.VideoRankQueryResponse, error)
GetVideoRank 查询单个视频榜单
func (*VideoRankService) ListVideoRank ¶
func (s *VideoRankService) ListVideoRank(ctx context.Context, req *pb.ListVideoRankRequest) (*pb.ListVideoRankResponse, error)
ListVideoRank 分页查询视频榜单
type VideoServiceService ¶
type VideoServiceService struct {
pb.UnimplementedVideoServiceServer
// contains filtered or unexported fields
}
func NewVideoServiceService ¶
func NewVideoServiceService(uc *biz.VideoUsecase) *VideoServiceService
func (*VideoServiceService) GetVideo ¶
func (s *VideoServiceService) GetVideo(ctx context.Context, req *pb.VideoQueryRequest) (*pb.VideoQueryResponse, error)
func (*VideoServiceService) ListVideos ¶
func (s *VideoServiceService) ListVideos(ctx context.Context, req *pb.ListVideosRequest) (*pb.ListVideosResponse, error)
type VideoTrendServiceService ¶
type VideoTrendServiceService struct {
pb.UnimplementedVideoTrendServiceServer
// contains filtered or unexported fields
}
func NewVideoTrendServiceService ¶
func NewVideoTrendServiceService(uc *biz.VideoTrendUsecase) *VideoTrendServiceService
func (*VideoTrendServiceService) ListVideoTrends ¶
func (s *VideoTrendServiceService) ListVideoTrends(ctx context.Context, req *pb.ListVideoTrendsRequest) (*pb.ListVideoTrendsResponse, error)
Click to show internal directories.
Click to hide internal directories.