feat: 回贴接口相关 `.proto` 定义
This commit is contained in:
parent
2ae4d728ee
commit
a5aad67262
|
|
@ -0,0 +1,13 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
import "UserSessionInfo.proto";
|
||||||
|
|
||||||
|
message AccessState {
|
||||||
|
string type = 1;
|
||||||
|
string token = 2;
|
||||||
|
UserSessionInfo userinfo = 3;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
import "Media.proto";
|
||||||
|
|
||||||
|
message AdInfo {
|
||||||
|
int32 show_rule = 1;
|
||||||
|
int32 ad_type = 2;
|
||||||
|
string ad_desc = 3;
|
||||||
|
string ad_pic = 4;
|
||||||
|
string ad_url = 5;
|
||||||
|
string ad_name = 6;
|
||||||
|
string portrait = 7;
|
||||||
|
repeated Media media = 8;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba.addPost;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos.addPost";
|
||||||
|
|
||||||
|
import "AddPost/AddPostRequestData.proto";
|
||||||
|
|
||||||
|
message AddPostRequest {
|
||||||
|
AddPostRequestData data = 1;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,77 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba.addPost;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos.addPost";
|
||||||
|
|
||||||
|
import "CommonRequest.proto";
|
||||||
|
|
||||||
|
message AddPostRequestData {
|
||||||
|
CommonRequest common = 1;
|
||||||
|
string authsid = 2;
|
||||||
|
string sig = 3;
|
||||||
|
string tbs = 4;
|
||||||
|
string video_other = 5;
|
||||||
|
string anonymous = 6;
|
||||||
|
string can_no_forum = 7;
|
||||||
|
string is_feedback = 8;
|
||||||
|
string takephoto_num = 9;
|
||||||
|
string entrance_type = 10;
|
||||||
|
string voice_md5 = 11;
|
||||||
|
string during_time = 12;
|
||||||
|
string vcode = 13;
|
||||||
|
string vcode_md5 = 14;
|
||||||
|
string vcode_type = 15;
|
||||||
|
string vcode_tag = 16;
|
||||||
|
string topic_id = 17;
|
||||||
|
string new_vcode = 18;
|
||||||
|
string content = 19;
|
||||||
|
optional string reply_uid = 20;
|
||||||
|
string meme_text = 21;
|
||||||
|
string meme_cont_sign = 22;
|
||||||
|
string item_id = 23;
|
||||||
|
string comment_head = 24;
|
||||||
|
string works_tag = 25;
|
||||||
|
string fid = 26;
|
||||||
|
string transform_forums = 27;
|
||||||
|
optional string v_fid = 28;
|
||||||
|
optional string v_fname = 29;
|
||||||
|
string kw = 30;
|
||||||
|
string is_barrage = 31;
|
||||||
|
string barrage_time = 32;
|
||||||
|
string st_param = 33;
|
||||||
|
string ptype = 34;
|
||||||
|
string ori_ugc_nid = 35;
|
||||||
|
string ori_ugc_vid = 36;
|
||||||
|
string ori_ugc_tid = 37;
|
||||||
|
string ori_ugc_type = 38;
|
||||||
|
string is_location = 39;
|
||||||
|
string lat = 40;
|
||||||
|
string lng = 41;
|
||||||
|
string name = 42;
|
||||||
|
string sn = 43;
|
||||||
|
string from_fourm_id = 44;
|
||||||
|
string tid = 45;
|
||||||
|
optional string quote_id = 46;
|
||||||
|
string is_twzhibo_thread = 47;
|
||||||
|
string floor_num = 48;
|
||||||
|
optional string repostid = 49;
|
||||||
|
string sub_post_id = 50;
|
||||||
|
string is_ad = 51;
|
||||||
|
string is_addition = 52;
|
||||||
|
string is_giftpost = 53;
|
||||||
|
string st_type = 54;
|
||||||
|
string post_from = 55;
|
||||||
|
string real_lat = 56;
|
||||||
|
string real_lng = 57;
|
||||||
|
string name_show = 58;
|
||||||
|
string is_works = 59;
|
||||||
|
string is_pictxt = 60;
|
||||||
|
string is_story = 61;
|
||||||
|
string jid = 62;
|
||||||
|
string jfrom = 63;
|
||||||
|
optional int32 show_custom_figure = 64;
|
||||||
|
string from_category_id = 65;
|
||||||
|
string to_category_id = 66;
|
||||||
|
optional int32 is_show_bless = 67;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba.addPost;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos.addPost";
|
||||||
|
|
||||||
|
import "AddPost/AddPostResponseData.proto";
|
||||||
|
import "Error.proto";
|
||||||
|
|
||||||
|
message AddPostResponse {
|
||||||
|
Error error = 1;
|
||||||
|
AddPostResponseData data = 2;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,39 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba.addPost;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos.addPost";
|
||||||
|
|
||||||
|
import "Advertisement.proto";
|
||||||
|
import "Anti.proto";
|
||||||
|
import "ContriInfo.proto";
|
||||||
|
import "IconStampInfo.proto";
|
||||||
|
import "PostAntiInfo.proto";
|
||||||
|
import "ReplyExp.proto";
|
||||||
|
import "TbInteraction.proto";
|
||||||
|
import "ThreadEasterEgg.proto";
|
||||||
|
import "Toast.proto";
|
||||||
|
import "VcodeInfo.proto";
|
||||||
|
import "ZhiBoInfoTW.proto";
|
||||||
|
|
||||||
|
message AddPostResponseData {
|
||||||
|
string opgroup = 1;
|
||||||
|
string tid = 2;
|
||||||
|
string pid = 3;
|
||||||
|
string video_id = 4;
|
||||||
|
string msg = 5;
|
||||||
|
string pre_msg = 6;
|
||||||
|
string color_msg = 7;
|
||||||
|
ZhiBoInfoTW twzhibo_info = 8;
|
||||||
|
ReplyExp exp = 9;
|
||||||
|
ContriInfo contri_info = 10;
|
||||||
|
ThreadEasterEgg star_info = 11;
|
||||||
|
Advertisement advertisement = 12;
|
||||||
|
IconStampInfo icon_stamp_info = 13;
|
||||||
|
PostAntiInfo info = 14;
|
||||||
|
Anti anti_stat = 15;
|
||||||
|
TbInteraction tb_hudong = 16;
|
||||||
|
VcodeInfo anti = 17;
|
||||||
|
string ext_msg = 18;
|
||||||
|
Toast toast = 19;
|
||||||
|
}
|
||||||
|
|
@ -22,6 +22,7 @@ message CommonRequest {
|
||||||
string _os_version = 25;
|
string _os_version = 25;
|
||||||
string brand = 26;
|
string brand = 26;
|
||||||
string lego_lib_version = 28;
|
string lego_lib_version = 28;
|
||||||
|
optional string applist = 29;
|
||||||
optional string stoken = 30;
|
optional string stoken = 30;
|
||||||
optional string z_id = 31;
|
optional string z_id = 31;
|
||||||
string cuid_galaxy2 = 32;
|
string cuid_galaxy2 = 32;
|
||||||
|
|
@ -43,9 +44,10 @@ message CommonRequest {
|
||||||
string event_day = 53;
|
string event_day = 53;
|
||||||
string android_id = 54;
|
string android_id = 54;
|
||||||
int32 cmode = 55;
|
int32 cmode = 55;
|
||||||
string start_scheme = 56;
|
optional string start_scheme = 56;
|
||||||
int32 start_type = 57;
|
int32 start_type = 57;
|
||||||
optional string extra = 61;
|
optional string extra = 61;
|
||||||
string user_agent = 62;
|
string user_agent = 62;
|
||||||
int32 personalized_rec_switch = 63;
|
int32 personalized_rec_switch = 63;
|
||||||
|
string device_score = 70;
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
import "ToastConfig.proto";
|
||||||
|
|
||||||
|
message ContriInfo {
|
||||||
|
string color_msg = 1;
|
||||||
|
string after_msg = 2;
|
||||||
|
repeated ToastConfig toast_config = 3;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
import "User.proto";
|
||||||
|
|
||||||
|
message HotTWThreadInfo {
|
||||||
|
repeated User user_list = 1;
|
||||||
|
uint32 fans_count = 2;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
message IconStampInfo {
|
||||||
|
string stamp_title = 1;
|
||||||
|
string stamp_text = 2;
|
||||||
|
int32 stamp_type = 3;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
message LabelInfo {
|
||||||
|
int32 labelHot = 1;
|
||||||
|
string labelContent = 2;
|
||||||
|
string labelId = 3;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
message LiveCoverStatus {
|
||||||
|
int32 status_num = 1;
|
||||||
|
string status = 2;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
message NoticeInfo {
|
||||||
|
string notice = 1;
|
||||||
|
int32 pullCommentFrequence = 2;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
import "AccessState.proto";
|
||||||
|
import "VcodeExtra.proto";
|
||||||
|
|
||||||
|
message PostAntiInfo {
|
||||||
|
AccessState access_state = 1;
|
||||||
|
repeated string confilter_hitwords = 2;
|
||||||
|
string need_vcode = 3;
|
||||||
|
string vcode_md5 = 4;
|
||||||
|
string vcode_prev_type = 5;
|
||||||
|
string vcode_type = 6;
|
||||||
|
string pass_token = 7;
|
||||||
|
string block_content = 8;
|
||||||
|
string block_cancel = 9;
|
||||||
|
string block_confirm = 10;
|
||||||
|
string vcode_pic_url = 12;
|
||||||
|
VcodeExtra vcode_extra = 13;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
message ReplyExp {
|
||||||
|
string pre_msg = 1;
|
||||||
|
string color_msg = 2;
|
||||||
|
string current_level_max_exp = 3;
|
||||||
|
string current_level = 4;
|
||||||
|
string old = 5;
|
||||||
|
string inc = 6;
|
||||||
|
string question_msg = 7;
|
||||||
|
string question_exp = 8;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
message ShareInfo {
|
||||||
|
string title = 1;
|
||||||
|
string content = 2;
|
||||||
|
string url = 3;
|
||||||
|
string imageurl = 4;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
message TbInteraction {
|
||||||
|
string content = 1;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
import "ShareInfo.proto";
|
||||||
|
|
||||||
|
message ThreadEasterEgg {
|
||||||
|
string activity_id = 1;
|
||||||
|
string video_url = 2;
|
||||||
|
string pop_text = 3;
|
||||||
|
string pop_imageurl = 4;
|
||||||
|
ShareInfo share_info = 5;
|
||||||
|
}
|
||||||
|
|
@ -4,14 +4,21 @@ package tieba;
|
||||||
|
|
||||||
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
import "AdInfo.proto";
|
||||||
|
import "Abstract.proto";
|
||||||
|
import "Agree.proto";
|
||||||
|
import "AlaLiveInfo.proto";
|
||||||
|
import "DislikeInfo.proto";
|
||||||
|
import "HotTWThreadInfo.proto";
|
||||||
|
import "Media.proto";
|
||||||
import "PbContent.proto";
|
import "PbContent.proto";
|
||||||
import "SimpleForum.proto";
|
import "SimpleForum.proto";
|
||||||
import "DislikeInfo.proto";
|
import "TiebaPlusAd.proto";
|
||||||
import "User.proto";
|
import "User.proto";
|
||||||
import "Abstract.proto";
|
|
||||||
import "Media.proto";
|
|
||||||
import "Agree.proto";
|
|
||||||
import "VideoInfo.proto";
|
import "VideoInfo.proto";
|
||||||
|
import "Voice.proto";
|
||||||
|
import "VoiceRoom.proto";
|
||||||
|
import "ZhiBoInfoTW.proto";
|
||||||
|
|
||||||
message ThreadInfo {
|
message ThreadInfo {
|
||||||
int64 id = 1;
|
int64 id = 1;
|
||||||
|
|
@ -40,9 +47,11 @@ message ThreadInfo {
|
||||||
int32 isMemberTop = 54;
|
int32 isMemberTop = 54;
|
||||||
int64 authorId = 56;
|
int64 authorId = 56;
|
||||||
string pids = 61;
|
string pids = 61;
|
||||||
|
ZhiBoInfoTW twzhibo_info = 72;
|
||||||
optional VideoInfo videoInfo = 79;
|
optional VideoInfo videoInfo = 79;
|
||||||
repeated PbContent richTitle = 111;
|
repeated PbContent richTitle = 111;
|
||||||
repeated PbContent richAbstract = 112;
|
repeated PbContent richAbstract = 112;
|
||||||
|
AlaLiveInfo ala_info = 113;
|
||||||
repeated DislikeInfo dislikeInfo = 120;
|
repeated DislikeInfo dislikeInfo = 120;
|
||||||
int32 agreeNum = 124;
|
int32 agreeNum = 124;
|
||||||
Agree agree = 126;
|
Agree agree = 126;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
message TiebaPlusAd {
|
||||||
|
string cost_url = 1;
|
||||||
|
string show_url = 2;
|
||||||
|
string ad_source = 3;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
import "ToastContent.proto";
|
||||||
|
|
||||||
|
message Toast {
|
||||||
|
int32 icon_type = 1;
|
||||||
|
repeated ToastContent content = 2;
|
||||||
|
string url = 3;
|
||||||
|
string background = 4;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
message ToastConfig {
|
||||||
|
string pre_color_msg = 1;
|
||||||
|
string toast_back_image = 2;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
message ToastContent {
|
||||||
|
string text = 1;
|
||||||
|
int32 has_color = 2;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
message UserSessionInfo {
|
||||||
|
string bduss = 1;
|
||||||
|
string mobile = 2;
|
||||||
|
string email = 3;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
message VcodeExtra {
|
||||||
|
string textimg = 1;
|
||||||
|
string slideimg = 2;
|
||||||
|
string endpoint = 3;
|
||||||
|
string successimg = 4;
|
||||||
|
string slideendpoint = 5;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
import "VcodeExtra.proto";
|
||||||
|
|
||||||
|
message VcodeInfo {
|
||||||
|
string vcode_md5 = 1;
|
||||||
|
string vcode_pic_url = 2;
|
||||||
|
string vcode_type = 3;
|
||||||
|
VcodeExtra vcode_extra = 4;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
import "User.proto";
|
||||||
|
|
||||||
|
message VoiceRoom {
|
||||||
|
int64 room_id = 2;
|
||||||
|
User author = 4;
|
||||||
|
repeated User talker = 5;
|
||||||
|
int64 joined_num = 6;
|
||||||
|
int64 talker_num = 7;
|
||||||
|
uint32 status = 8;
|
||||||
|
string room_name = 9;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,37 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package tieba;
|
||||||
|
|
||||||
|
option java_package = "com.huanchengfly.tieba.post.api.models.protos";
|
||||||
|
|
||||||
|
import "HotTWThreadInfo.proto";
|
||||||
|
import "LabelInfo.proto";
|
||||||
|
import "LiveCoverStatus.proto";
|
||||||
|
import "NoticeInfo.proto";
|
||||||
|
import "User.proto";
|
||||||
|
import "Zan.proto";
|
||||||
|
|
||||||
|
message ZhiBoInfoTW {
|
||||||
|
uint64 thread_id = 1;
|
||||||
|
string livecover_src = 2;
|
||||||
|
string livecover_src_bsize = 3;
|
||||||
|
uint32 post_num = 4;
|
||||||
|
uint32 reply_num = 5;
|
||||||
|
Zan zan = 6;
|
||||||
|
string forum_name = 7;
|
||||||
|
uint64 forum_id = 8;
|
||||||
|
uint64 last_modified_time = 9;
|
||||||
|
string title = 10;
|
||||||
|
string content = 11;
|
||||||
|
User user = 12;
|
||||||
|
HotTWThreadInfo hot_tw_info = 13;
|
||||||
|
repeated LabelInfo labelInfo = 14;
|
||||||
|
string livecover_src_status = 15;
|
||||||
|
NoticeInfo notice_info = 16;
|
||||||
|
int32 is_headline = 17;
|
||||||
|
LiveCoverStatus livecover_status = 18;
|
||||||
|
uint32 freq_num = 19;
|
||||||
|
uint32 copythread_remind = 20;
|
||||||
|
uint32 is_copytwzhibo = 21;
|
||||||
|
string field_ex = 22;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue