Documentation ¶
Index ¶
- Constants
- Variables
- type PublishService
- func (s *PublishService) FeedList(ctx context.Context, req *pb.ListFeedRequest) (*pb.ListFeedReply, error)
- func (s *PublishService) GetPublishList(ctx context.Context, req *pb.PublishListRequest) (*pb.PublishListReply, error)
- func (s *PublishService) GetVideoListByVideoIds(ctx context.Context, req *pb.VideoListByVideoIdsRequest) (*pb.VideoListReply, error)
- func (s *PublishService) PublishAction(ctx context.Context, req *pb.PublishActionRequest) (*pb.PublishActionReply, error)
Constants ¶
View Source
const ( CodeSuccess = 0 CodeFailed = 300 )
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewPublishService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type PublishService ¶
type PublishService struct { pb.UnimplementedPublishServiceServer // contains filtered or unexported fields }
func NewPublishService ¶
func NewPublishService(uc *biz.PublishUseCase, logger log.Logger) *PublishService
func (*PublishService) FeedList ¶
func (s *PublishService) FeedList(ctx context.Context, req *pb.ListFeedRequest) (*pb.ListFeedReply, error)
FeedList 返回一个按照投稿时间倒序的视频列表,单次最多30个视频
func (*PublishService) GetPublishList ¶
func (s *PublishService) GetPublishList(ctx context.Context, req *pb.PublishListRequest) (*pb.PublishListReply, error)
func (*PublishService) GetVideoListByVideoIds ¶
func (s *PublishService) GetVideoListByVideoIds(ctx context.Context, req *pb.VideoListByVideoIdsRequest) (*pb.VideoListReply, error)
func (*PublishService) PublishAction ¶
func (s *PublishService) PublishAction(ctx context.Context, req *pb.PublishActionRequest) (*pb.PublishActionReply, error)
Click to show internal directories.
Click to hide internal directories.