refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
syntax = "proto3";
|
||||
package feed;
|
||||
option go_package =".;feed";
|
||||
import "blocks.proto";
|
||||
option go_package = "bsm/full/module/social/feed/pb;feed";
|
||||
import "protobuf/blocks.proto";
|
||||
|
||||
|
||||
// 实时动态
|
||||
service Timeline{
|
||||
|
||||
// 推荐
|
||||
rpc Recommend (FetchRequest) returns (PostListReply){};
|
||||
rpc Recommend (blocks.FetchRequest) returns (blocks.FeedPostListReply){};
|
||||
|
||||
// 好友动态
|
||||
rpc Friend (FetchRequest) returns (PostListReply){};
|
||||
|
||||
rpc Friend (blocks.FetchRequest) returns (blocks.FeedPostListReply){};
|
||||
|
||||
// 关注的动态
|
||||
rpc Follow (FetchRequest) returns (PostListReply){};
|
||||
|
||||
rpc Follow (blocks.FetchRequest) returns (blocks.FeedPostListReply){};
|
||||
|
||||
// 热门
|
||||
rpc Hot (FetchRequest) returns (PostListReply){};
|
||||
rpc Hot (blocks.FetchRequest) returns (blocks.FeedPostListReply){};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user