You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
470 B

package handler
import (
"context"
"github.com/TremblingV5/DouTok/applications/feed/pack"
"github.com/TremblingV5/DouTok/applications/feed/service"
"github.com/TremblingV5/DouTok/kitex_gen/feed"
)
func (s *FeedServiceImpl) GetVideoById(ctx context.Context, req *feed.VideoIdRequest) (resp *feed.Video, err error) {
data, err := service.GetVideoByIdInRDB(uint64(req.VideoId))
if err != nil {
return &feed.Video{}, err
}
return pack.PackVideoInfoResp(data)
}