Skip to content

Commit

Permalink
update grpc proto from 7.57.2 (#881)
Browse files Browse the repository at this point in the history
* update pugvanymodel proto from 7.57.2

* update playerunite/pugvanymodel proto from 7.57.2

* update playerunite related proto from 7.57.2

* update search v2 related proto from 7.57.2

* update metadata related proto from 7.57.2

* update viewunite related proto from 7.57.2
  • Loading branch information
cxw620 authored Dec 1, 2023
1 parent 36c3e75 commit c3bf4da
Show file tree
Hide file tree
Showing 8 changed files with 768 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
syntax = "proto3";

package bilibili.app.playerunite.pugvanymodel;

//
enum EpisodeStatus {
EPISODE_STATUS_UNSPECIFIED = 0;
EPISODE_STATUS_TRY_WATCH_WHOLE = 1;
EPISODE_STATUS_NOT_TRY_WATCH = 2;
EPISODE_STATUS_TRY_WATCH_5_MINUTES = 3;
}

//
message PlayerMask {
//
string title = 1;
//
string prefix = 2;
//
string suffix = 3;
}

//
message PUGVAnyModel {
//
int64 season_id = 1;
//
int64 episode_id = 2;
//
EpisodeStatus status = 3;
//
RiskControl risk_control = 4;
//
PlayerMask player_mask = 5;
}

//
message RiskControl {
//
bool need_send_sms = 1;
//
string title = 2;
//
string risk_message = 3;
//
string action_desc = 4;
//
string send_sms_url = 5;
//
string buvid = 6;
}
36 changes: 22 additions & 14 deletions grpc_api/bilibili/app/playerunite/v1/playerunite.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@ service Player {
rpc PlayViewUnite (PlayViewUniteReq) returns (PlayViewUniteReply);
}

//
message PlayViewUniteReq {
// 请求资源VOD信息
bilibili.playershared.VideoVod vod = 1;
//
string spmid = 2;
//
string from_spmid = 3;
// 补充信息, 如ep_id等
map<string, string> extra_content = 4;
//
string bvid = 5;
}

//
message PlayViewUniteReply {
// 音视频流信息
Expand All @@ -46,4 +32,26 @@ message PlayViewUniteReply {
bilibili.playershared.History history = 8;
//
bilibili.playershared.ViewInfo view_info = 9;
//
bilibili.playershared.FragmentVideo fragment_video = 10;
}

//
message PlayViewUniteReq {
// 请求资源VOD信息
bilibili.playershared.VideoVod vod = 1;
//
string spmid = 2;
//
string from_spmid = 3;
// 补充信息, 如ep_id等
map<string, string> extra_content = 4;
//
string bvid = 5;
//
string ad_extra = 6;
//
bilibili.playershared.Fragment fragment = 7;
//
string from_scene = 8;
}
62 changes: 62 additions & 0 deletions grpc_api/bilibili/app/search/v2/search.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ service Search {
//
rpc GetChatResult (GetChatResultReq) returns (bilibili.broadcast.message.main.ChatResult);
//
rpc QueryRecAfterClick (QueryRecAfterClickReq) returns (QueryRecAfterClickReply);
//
rpc SearchEgg (SearchEggReq) returns (SearchEggReply);
//
rpc SubmitChatTask (SubmitChatTaskReq) returns (SubmitChatTaskReply);
Expand Down Expand Up @@ -62,6 +64,66 @@ message GetChatResultReq {
string track_id = 4;
}

//
message QueryRecAfterClickItem {
//
string show_name = 1;
//
string recommend_reason = 2;
//
int32 icon_type = 3;
//
string url = 4;
//
string icon = 5;
//
string icon_night = 6;
}

//
message QueryRecAfterClickReply {
//
int32 code = 1;
//
QueryRecAfterClickResult query_rec_result = 2;
}

//
message QueryRecAfterClickReq {
//
string param = 1;
//
int32 pos = 2;
//
string track_id = 3;
//
string qv_id = 4;
//
string keyword = 5;
//
string click_url = 6;
//
string from_source = 7;
}

//
message QueryRecAfterClickResult {
//
repeated QueryRecAfterClickItem query_rec_list = 1;
//
string related_title = 2;
//
string param = 3;
//
string goto = 4;
//
string linktype = 5;
//
int32 position = 6;
//
string trackid = 7;
}

//
message SearchEggInfo {
//
Expand Down
Loading

0 comments on commit c3bf4da

Please sign in to comment.