1+ // B站开放接口 - 文集管理 bilibili-webapp
2+
3+ syntax = "proto3" ;
4+ package member.bilibili.com ;
5+ import "google/api/annotations.proto" ;
6+ import "bilibili-webapp/common.proto" ;
7+
8+ option go_package = "github.com/dev-openapi/bilibili-webapp" ;
9+
10+ service AnthologyService {
11+ // 文集提交 https://openhome.bilibili.com/doc/4/728b35c7-21f9-d15e-6f0e-5e39c6647903
12+ rpc AddAnthology (AddAnthologyReq ) returns (AddAnthologyRes ) {
13+ option (google.api.http ) = {
14+ post : "/arcopen/fn/article/anthology/add" ,
15+ body : "body,form" ,
16+ };
17+ }
18+ // 文集信息编辑 https://openhome.bilibili.com/doc/4/0e2f82f8-8b16-2927-0546-ac1a24871501
19+ rpc EditAnthology (EditAnthologyReq ) returns (EditAnthologyRes ) {
20+ option (google.api.http ) = {
21+ post : "/arcopen/fn/article/anthology/edit" ,
22+ body : "body,form" ,
23+ };
24+ }
25+ // 文集下文章列表修改 https://openhome.bilibili.com/doc/4/b20487b7-471b-0717-b3b6-e65dd8a5263d
26+ rpc EditArticleBelong (EditArticleBelongReq ) returns (EditArticleBelongRes ) {
27+ option (google.api.http ) = {
28+ post : "/arcopen/fn/article/belong" ,
29+ body : "body,form" ,
30+ };
31+ }
32+ // 文集删除 https://openhome.bilibili.com/doc/4/93289fec-1521-1f3f-c3ec-78108b4c7859
33+ rpc DeleteAnthology (DeleteAnthologyReq ) returns (DeleteAnthologyRes ) {
34+ option (google.api.http ) = {
35+ post : "/arcopen/fn/article/anthology/delete" ,
36+ body : "body,form" ,
37+ };
38+ }
39+ // 查看文集列表 https://openhome.bilibili.com/doc/4/1caef1c1-0576-91e3-00ed-c287e9866d7e
40+ rpc BatchGetAnthologies (BatchGetAnthologiesReq ) returns (BatchGetAnthologiesRes ) {
41+ option (google.api.http ) = {
42+ get : "/arcopen/fn/article/anthology/list" ,
43+ };
44+ }
45+ // 查看文集详情 https://openhome.bilibili.com/doc/4/78228e26-1c25-5b65-e107-a08dabf45850
46+ rpc GetAnthology (GetAnthologyReq ) returns (GetAnthologyRes ) {
47+ option (google.api.http ) = {
48+ get : "/arcopen/fn/article/anthology/detail" ,
49+ body : "body,form" ,
50+ };
51+ }
52+ }
53+
54+ message AnthologyDetail {
55+ int64 list_id = 1 ;
56+ string name = 2 ;
57+ string image_url = 3 ;
58+ string summary = 4 ;
59+ }
60+
61+ message AddAnthologyReq {
62+ string client_id = 1 ;
63+ string access_token = 2 ;
64+ AnthologyDetail body = 10 ;
65+ }
66+
67+ message AddAnthologyRes {
68+ int32 code = 1 ;
69+ string message = 2 ;
70+ int32 ttl = 3 ;
71+ AnthologyDetail data = 10 ;
72+ }
73+
74+ message EditAnthologyReq {
75+ string client_id = 1 ;
76+ string access_token = 2 ;
77+ AnthologyDetail body = 10 ;
78+ }
79+
80+ message EditAnthologyRes {
81+ int32 code = 1 ;
82+ string message = 2 ;
83+ int32 ttl = 3 ;
84+ AnthologyData data = 10 ;
85+ }
86+
87+ message EditArticleBelongReq {
88+ string client_id = 1 ;
89+ string access_token = 2 ;
90+ message Body {
91+ int64 list_id = 1 ;
92+ string article_ids = 2 ;
93+ }
94+ Body body = 10 ;
95+ }
96+ message EditArticleBelongRes {
97+ int32 code = 1 ;
98+ string message = 2 ;
99+ int32 ttl = 3 ;
100+ }
101+
102+ message DeleteAnthologyReq {
103+ string client_id = 1 ;
104+ string access_token = 2 ;
105+ message Body {
106+ int64 id = 1 ;
107+ }
108+ Body body = 10 ;
109+ }
110+
111+ message DeleteAnthologyRes {
112+ int32 code = 1 ;
113+ string message = 2 ;
114+ int32 ttl = 3 ;
115+ }
116+
117+ message BatchGetAnthologiesReq {
118+ string client_id = 1 ;
119+ string access_token = 2 ;
120+ }
121+
122+ message BatchGetAnthologiesRes {
123+ int32 code = 1 ;
124+ string message = 2 ;
125+ int32 ttl = 3 ;
126+ message Data {
127+ int64 total = 1 ;
128+ repeated AnthologyData list = 2 ;
129+ }
130+ Data data = 10 ;
131+ }
132+
133+ message GetAnthologyReq {
134+ string client_id = 1 ;
135+ string access_token = 2 ;
136+ message Body {
137+ int64 id = 1 ;
138+ }
139+ Body body = 10 ;
140+ }
141+
142+ message GetAnthologyRes {
143+ int32 code = 1 ;
144+ string message = 2 ;
145+ int32 ttl = 3 ;
146+ message Data {
147+ AnthologyData list = 1 ;
148+ repeated ArticleData articles = 2 ;
149+ }
150+ repeated Data data = 10 ;
151+ }
0 commit comments