You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.0 KiB

2 months ago
syntax = "proto3";
package publish;
option go_package = "publish";
import "feed.proto";
message douyin_publish_action_request {
bytes data = 1; // 视频数据
string title = 2; // 视频标题
int64 user_id = 3; // 发布视频的user id
string name = 4; // 发布视频的user name
}
message douyin_publish_action_response {
int32 status_code = 1; // 状态码,0-成功,其他值-失败
string status_msg = 2; // 返回状态描述
}
message douyin_publish_list_request {
int64 user_id = 1; // 用户id
}
message douyin_publish_list_response {
int32 status_code = 1; // 状态码,0-成功,其他值-失败
string status_msg = 2; // 返回状态描述
repeated feed.Video video_list = 3; // 用户发布的视频列表
}
service PublishService{
rpc PublishAction(douyin_publish_action_request) returns (douyin_publish_action_response); //发布视频操作
rpc PublishList(douyin_publish_list_request) returns (douyin_publish_list_response);// 获取用户已发布视频的列表
}