feat: import services and standardize Go 1.26.5
This commit is contained in:
36
apps/social/feed/internal/server/timeline_server.go
Normal file
36
apps/social/feed/internal/server/timeline_server.go
Normal file
@@ -0,0 +1,36 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.apinb.com/bsm-social/feed/internal/logic/timeline"
|
||||
pb "git.apinb.com/bsm-social/feed/pb"
|
||||
)
|
||||
|
||||
type TimelineServer struct {
|
||||
pb.UnimplementedTimelineServer
|
||||
}
|
||||
|
||||
func NewTimelineServer() *TimelineServer {
|
||||
return &TimelineServer{}
|
||||
}
|
||||
|
||||
// 推荐
|
||||
func (s *TimelineServer) Recommend(ctx context.Context, in *pb.FetchRequest) (*pb.PostListReply, error) {
|
||||
return timeline.Recommend(ctx, in)
|
||||
}
|
||||
|
||||
// 好友动态
|
||||
func (s *TimelineServer) Friend(ctx context.Context, in *pb.FetchRequest) (*pb.PostListReply, error) {
|
||||
return timeline.Friend(ctx, in)
|
||||
}
|
||||
|
||||
// 关注的动态
|
||||
func (s *TimelineServer) Follow(ctx context.Context, in *pb.FetchRequest) (*pb.PostListReply, error) {
|
||||
return timeline.Follow(ctx, in)
|
||||
}
|
||||
|
||||
// 热门
|
||||
func (s *TimelineServer) Hot(ctx context.Context, in *pb.FetchRequest) (*pb.PostListReply, error) {
|
||||
return timeline.Hot(ctx, in)
|
||||
}
|
||||
Reference in New Issue
Block a user