refactor: centralize protobuf and remove go-zero

This commit is contained in:
2026-08-09 15:10:19 +08:00
parent 5cc5fd92ed
commit 4bbed3156c
357 changed files with 14208 additions and 19903 deletions

View File

@@ -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){};
}