Skip to content

Commit

Permalink
Merge pull request #183 from Maple-pro/dev
Browse files Browse the repository at this point in the history
feat(feed): add `QueryVideoSummaryAndKeywords` rpc
  • Loading branch information
liaosunny123 authored Aug 26, 2023
2 parents f2d85a5 + c415768 commit 6efa9c7
Show file tree
Hide file tree
Showing 4 changed files with 273 additions and 41 deletions.
15 changes: 14 additions & 1 deletion src/idl/feed.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ message QueryVideosResponse {
}

message VideoExistRequest {
uint32 video_id = 1; // 用户id
uint32 video_id = 1; // 视频id
}

message VideoExistResponse {
Expand All @@ -47,8 +47,21 @@ message VideoExistResponse {
bool existed = 3;
}

message QueryVideoSummaryAndKeywordsRequest {
uint32 actor_id = 1;
uint32 video_id = 2;
}

message QueryVideoSummaryAndKeywordsResponse {
int32 status_code = 1; // 状态码,0-成功,其他值-失败
string status_msg = 2; // 返回状态描述
string summary = 3;
string keywords = 4;
}

service FeedService {
rpc ListVideos(ListFeedRequest) returns (ListFeedResponse);
rpc QueryVideos(QueryVideosRequest) returns (QueryVideosResponse);
rpc QueryVideoExisted(VideoExistRequest) returns (VideoExistResponse);
rpc QueryVideoSummaryAndKeywords(QueryVideoSummaryAndKeywordsRequest) returns (QueryVideoSummaryAndKeywordsResponse);
}
249 changes: 213 additions & 36 deletions src/rpc/feed/feed.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6efa9c7

Please sign in to comment.