Interactive/pkg/proto/feed.proto
2025-03-15 12:40:58 +08:00

25 lines
373 B
Protocol Buffer

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;
}