From a5aad67262fb9f26b9b390ba523d4475a535858c Mon Sep 17 00:00:00 2001 From: HuanCheng65 <22636177+HuanCheng65@users.noreply.github.com> Date: Wed, 19 Jul 2023 16:47:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=9E=E8=B4=B4=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=20`.proto`=20=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/protos/AccessState.proto | 13 ++++ app/src/main/protos/AdInfo.proto | 18 +++++ .../main/protos/AddPost/AddPostRequest.proto | 11 +++ .../protos/AddPost/AddPostRequestData.proto | 77 +++++++++++++++++++ .../main/protos/AddPost/AddPostResponse.proto | 13 ++++ .../protos/AddPost/AddPostResponseData.proto | 39 ++++++++++ app/src/main/protos/CommonRequest.proto | 4 +- app/src/main/protos/ContriInfo.proto | 13 ++++ app/src/main/protos/HotTWThreadInfo.proto | 12 +++ app/src/main/protos/IconStampInfo.proto | 11 +++ app/src/main/protos/LabelInfo.proto | 11 +++ app/src/main/protos/LiveCoverStatus.proto | 10 +++ app/src/main/protos/NoticeInfo.proto | 10 +++ app/src/main/protos/PostAntiInfo.proto | 23 ++++++ app/src/main/protos/ReplyExp.proto | 16 ++++ app/src/main/protos/ShareInfo.proto | 12 +++ app/src/main/protos/TbInteraction.proto | 9 +++ app/src/main/protos/ThreadEasterEgg.proto | 15 ++++ app/src/main/protos/ThreadInfo.proto | 17 +++- app/src/main/protos/TiebaPlusAd.proto | 11 +++ app/src/main/protos/Toast.proto | 14 ++++ app/src/main/protos/ToastConfig.proto | 10 +++ app/src/main/protos/ToastContent.proto | 10 +++ app/src/main/protos/UserSessionInfo.proto | 11 +++ app/src/main/protos/VcodeExtra.proto | 13 ++++ app/src/main/protos/VcodeInfo.proto | 14 ++++ app/src/main/protos/VoiceRoom.proto | 17 ++++ app/src/main/protos/ZhiBoInfoTW.proto | 37 +++++++++ 28 files changed, 466 insertions(+), 5 deletions(-) create mode 100644 app/src/main/protos/AccessState.proto create mode 100644 app/src/main/protos/AdInfo.proto create mode 100644 app/src/main/protos/AddPost/AddPostRequest.proto create mode 100644 app/src/main/protos/AddPost/AddPostRequestData.proto create mode 100644 app/src/main/protos/AddPost/AddPostResponse.proto create mode 100644 app/src/main/protos/AddPost/AddPostResponseData.proto create mode 100644 app/src/main/protos/ContriInfo.proto create mode 100644 app/src/main/protos/HotTWThreadInfo.proto create mode 100644 app/src/main/protos/IconStampInfo.proto create mode 100644 app/src/main/protos/LabelInfo.proto create mode 100644 app/src/main/protos/LiveCoverStatus.proto create mode 100644 app/src/main/protos/NoticeInfo.proto create mode 100644 app/src/main/protos/PostAntiInfo.proto create mode 100644 app/src/main/protos/ReplyExp.proto create mode 100644 app/src/main/protos/ShareInfo.proto create mode 100644 app/src/main/protos/TbInteraction.proto create mode 100644 app/src/main/protos/ThreadEasterEgg.proto create mode 100644 app/src/main/protos/TiebaPlusAd.proto create mode 100644 app/src/main/protos/Toast.proto create mode 100644 app/src/main/protos/ToastConfig.proto create mode 100644 app/src/main/protos/ToastContent.proto create mode 100644 app/src/main/protos/UserSessionInfo.proto create mode 100644 app/src/main/protos/VcodeExtra.proto create mode 100644 app/src/main/protos/VcodeInfo.proto create mode 100644 app/src/main/protos/VoiceRoom.proto create mode 100644 app/src/main/protos/ZhiBoInfoTW.proto diff --git a/app/src/main/protos/AccessState.proto b/app/src/main/protos/AccessState.proto new file mode 100644 index 00000000..9b8cd601 --- /dev/null +++ b/app/src/main/protos/AccessState.proto @@ -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; +} diff --git a/app/src/main/protos/AdInfo.proto b/app/src/main/protos/AdInfo.proto new file mode 100644 index 00000000..cddc3c28 --- /dev/null +++ b/app/src/main/protos/AdInfo.proto @@ -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; +} diff --git a/app/src/main/protos/AddPost/AddPostRequest.proto b/app/src/main/protos/AddPost/AddPostRequest.proto new file mode 100644 index 00000000..9fa3f856 --- /dev/null +++ b/app/src/main/protos/AddPost/AddPostRequest.proto @@ -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; +} diff --git a/app/src/main/protos/AddPost/AddPostRequestData.proto b/app/src/main/protos/AddPost/AddPostRequestData.proto new file mode 100644 index 00000000..0278411c --- /dev/null +++ b/app/src/main/protos/AddPost/AddPostRequestData.proto @@ -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; +} diff --git a/app/src/main/protos/AddPost/AddPostResponse.proto b/app/src/main/protos/AddPost/AddPostResponse.proto new file mode 100644 index 00000000..78e33a8b --- /dev/null +++ b/app/src/main/protos/AddPost/AddPostResponse.proto @@ -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; +} diff --git a/app/src/main/protos/AddPost/AddPostResponseData.proto b/app/src/main/protos/AddPost/AddPostResponseData.proto new file mode 100644 index 00000000..89d9fb3f --- /dev/null +++ b/app/src/main/protos/AddPost/AddPostResponseData.proto @@ -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; +} diff --git a/app/src/main/protos/CommonRequest.proto b/app/src/main/protos/CommonRequest.proto index 476248be..4cb0e4b6 100644 --- a/app/src/main/protos/CommonRequest.proto +++ b/app/src/main/protos/CommonRequest.proto @@ -22,6 +22,7 @@ message CommonRequest { string _os_version = 25; string brand = 26; string lego_lib_version = 28; + optional string applist = 29; optional string stoken = 30; optional string z_id = 31; string cuid_galaxy2 = 32; @@ -43,9 +44,10 @@ message CommonRequest { string event_day = 53; string android_id = 54; int32 cmode = 55; - string start_scheme = 56; + optional string start_scheme = 56; int32 start_type = 57; optional string extra = 61; string user_agent = 62; int32 personalized_rec_switch = 63; + string device_score = 70; } \ No newline at end of file diff --git a/app/src/main/protos/ContriInfo.proto b/app/src/main/protos/ContriInfo.proto new file mode 100644 index 00000000..7fd6185b --- /dev/null +++ b/app/src/main/protos/ContriInfo.proto @@ -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; +} diff --git a/app/src/main/protos/HotTWThreadInfo.proto b/app/src/main/protos/HotTWThreadInfo.proto new file mode 100644 index 00000000..9050800a --- /dev/null +++ b/app/src/main/protos/HotTWThreadInfo.proto @@ -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; +} diff --git a/app/src/main/protos/IconStampInfo.proto b/app/src/main/protos/IconStampInfo.proto new file mode 100644 index 00000000..4798baa1 --- /dev/null +++ b/app/src/main/protos/IconStampInfo.proto @@ -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; +} diff --git a/app/src/main/protos/LabelInfo.proto b/app/src/main/protos/LabelInfo.proto new file mode 100644 index 00000000..8e2e06b9 --- /dev/null +++ b/app/src/main/protos/LabelInfo.proto @@ -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; +} diff --git a/app/src/main/protos/LiveCoverStatus.proto b/app/src/main/protos/LiveCoverStatus.proto new file mode 100644 index 00000000..db0da60a --- /dev/null +++ b/app/src/main/protos/LiveCoverStatus.proto @@ -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; +} diff --git a/app/src/main/protos/NoticeInfo.proto b/app/src/main/protos/NoticeInfo.proto new file mode 100644 index 00000000..7d9bad6c --- /dev/null +++ b/app/src/main/protos/NoticeInfo.proto @@ -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; +} diff --git a/app/src/main/protos/PostAntiInfo.proto b/app/src/main/protos/PostAntiInfo.proto new file mode 100644 index 00000000..464ca2cd --- /dev/null +++ b/app/src/main/protos/PostAntiInfo.proto @@ -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; +} diff --git a/app/src/main/protos/ReplyExp.proto b/app/src/main/protos/ReplyExp.proto new file mode 100644 index 00000000..61b153c3 --- /dev/null +++ b/app/src/main/protos/ReplyExp.proto @@ -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; +} diff --git a/app/src/main/protos/ShareInfo.proto b/app/src/main/protos/ShareInfo.proto new file mode 100644 index 00000000..c2b12ac3 --- /dev/null +++ b/app/src/main/protos/ShareInfo.proto @@ -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; +} diff --git a/app/src/main/protos/TbInteraction.proto b/app/src/main/protos/TbInteraction.proto new file mode 100644 index 00000000..d239630a --- /dev/null +++ b/app/src/main/protos/TbInteraction.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +package tieba; + +option java_package = "com.huanchengfly.tieba.post.api.models.protos"; + +message TbInteraction { + string content = 1; +} diff --git a/app/src/main/protos/ThreadEasterEgg.proto b/app/src/main/protos/ThreadEasterEgg.proto new file mode 100644 index 00000000..6a5f1a2d --- /dev/null +++ b/app/src/main/protos/ThreadEasterEgg.proto @@ -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; +} diff --git a/app/src/main/protos/ThreadInfo.proto b/app/src/main/protos/ThreadInfo.proto index 446c6877..e39d7c25 100644 --- a/app/src/main/protos/ThreadInfo.proto +++ b/app/src/main/protos/ThreadInfo.proto @@ -4,14 +4,21 @@ package tieba; 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 "SimpleForum.proto"; -import "DislikeInfo.proto"; +import "TiebaPlusAd.proto"; import "User.proto"; -import "Abstract.proto"; -import "Media.proto"; -import "Agree.proto"; import "VideoInfo.proto"; +import "Voice.proto"; +import "VoiceRoom.proto"; +import "ZhiBoInfoTW.proto"; message ThreadInfo { int64 id = 1; @@ -40,9 +47,11 @@ message ThreadInfo { int32 isMemberTop = 54; int64 authorId = 56; string pids = 61; + ZhiBoInfoTW twzhibo_info = 72; optional VideoInfo videoInfo = 79; repeated PbContent richTitle = 111; repeated PbContent richAbstract = 112; + AlaLiveInfo ala_info = 113; repeated DislikeInfo dislikeInfo = 120; int32 agreeNum = 124; Agree agree = 126; diff --git a/app/src/main/protos/TiebaPlusAd.proto b/app/src/main/protos/TiebaPlusAd.proto new file mode 100644 index 00000000..68e54e4b --- /dev/null +++ b/app/src/main/protos/TiebaPlusAd.proto @@ -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; +} diff --git a/app/src/main/protos/Toast.proto b/app/src/main/protos/Toast.proto new file mode 100644 index 00000000..053829dd --- /dev/null +++ b/app/src/main/protos/Toast.proto @@ -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; +} diff --git a/app/src/main/protos/ToastConfig.proto b/app/src/main/protos/ToastConfig.proto new file mode 100644 index 00000000..969215d4 --- /dev/null +++ b/app/src/main/protos/ToastConfig.proto @@ -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; +} diff --git a/app/src/main/protos/ToastContent.proto b/app/src/main/protos/ToastContent.proto new file mode 100644 index 00000000..ba2e1d79 --- /dev/null +++ b/app/src/main/protos/ToastContent.proto @@ -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; +} diff --git a/app/src/main/protos/UserSessionInfo.proto b/app/src/main/protos/UserSessionInfo.proto new file mode 100644 index 00000000..b767a64d --- /dev/null +++ b/app/src/main/protos/UserSessionInfo.proto @@ -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; +} diff --git a/app/src/main/protos/VcodeExtra.proto b/app/src/main/protos/VcodeExtra.proto new file mode 100644 index 00000000..b8a7aac2 --- /dev/null +++ b/app/src/main/protos/VcodeExtra.proto @@ -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; +} diff --git a/app/src/main/protos/VcodeInfo.proto b/app/src/main/protos/VcodeInfo.proto new file mode 100644 index 00000000..e54be102 --- /dev/null +++ b/app/src/main/protos/VcodeInfo.proto @@ -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; +} diff --git a/app/src/main/protos/VoiceRoom.proto b/app/src/main/protos/VoiceRoom.proto new file mode 100644 index 00000000..f6b3ada0 --- /dev/null +++ b/app/src/main/protos/VoiceRoom.proto @@ -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; +} diff --git a/app/src/main/protos/ZhiBoInfoTW.proto b/app/src/main/protos/ZhiBoInfoTW.proto new file mode 100644 index 00000000..55f8a86c --- /dev/null +++ b/app/src/main/protos/ZhiBoInfoTW.proto @@ -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; +}