Feed provider SDK

This commit is contained in:
2025-03-15 12:40:58 +08:00
parent c4720934fc
commit 6e75f69263
3 changed files with 407 additions and 0 deletions

24
pkg/proto/feed.proto Normal file
View File

@@ -0,0 +1,24 @@
syntax = "proto3";
option go_package = ".;proto";
package proto;
service FeedService {
rpc GetFeed(GetFeedRequest) returns (GetFeedResponse);
}
message FeedItem {
string type = 1;
uint64 created_at = 2;
bytes content = 3;
}
message GetFeedRequest {
int64 limit = 1;
optional uint64 cursor = 2;
}
message GetFeedResponse {
repeated FeedItem items = 1;
}