refactor: localize protobuf definitions
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/social/feed/internal/logic/timeline"
|
||||
pb "bsm/full/module/social/feed/pb"
|
||||
"context"
|
||||
)
|
||||
|
||||
type TimelineServer struct {
|
||||
@@ -16,21 +16,21 @@ func NewTimelineServer() *TimelineServer {
|
||||
}
|
||||
|
||||
// 推荐
|
||||
func (s *TimelineServer) Recommend(ctx context.Context, in *pb.FetchRequest) (*pb.PostListReply, error) {
|
||||
func (s *TimelineServer) Recommend(ctx context.Context, in *pb.FetchRequest) (*pb.FeedPostListReply, error) {
|
||||
return timeline.Recommend(ctx, in)
|
||||
}
|
||||
|
||||
// 好友动态
|
||||
func (s *TimelineServer) Friend(ctx context.Context, in *pb.FetchRequest) (*pb.PostListReply, error) {
|
||||
func (s *TimelineServer) Friend(ctx context.Context, in *pb.FetchRequest) (*pb.FeedPostListReply, error) {
|
||||
return timeline.Friend(ctx, in)
|
||||
}
|
||||
|
||||
// 关注的动态
|
||||
func (s *TimelineServer) Follow(ctx context.Context, in *pb.FetchRequest) (*pb.PostListReply, error) {
|
||||
func (s *TimelineServer) Follow(ctx context.Context, in *pb.FetchRequest) (*pb.FeedPostListReply, error) {
|
||||
return timeline.Follow(ctx, in)
|
||||
}
|
||||
|
||||
// 热门
|
||||
func (s *TimelineServer) Hot(ctx context.Context, in *pb.FetchRequest) (*pb.PostListReply, error) {
|
||||
func (s *TimelineServer) Hot(ctx context.Context, in *pb.FetchRequest) (*pb.FeedPostListReply, error) {
|
||||
return timeline.Hot(ctx, in)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user