Skip to content

Commit 2d6c493

Browse files
committed
update account scope
1 parent 3eecf11 commit 2d6c493

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

bilibili-webapp/account.proto

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ service AccountService {
1313
get: "/arcopen/fn/user/account/info",
1414
};
1515
}
16+
// 查询用户已授权权限列表 https://openhome.bilibili.com/doc/4/08f935c5-29f1-e646-85a3-0b11c2830558
17+
rpc GetAccountScopes(GetAccountScopesReq) returns (GetAccountScopesRes) {
18+
option (google.api.http) = {
19+
get: "/arcopen/fn/user/account/scopes",
20+
body: "*",
21+
};
22+
}
1623
}
1724

1825
message GetAccountInfoReq {
@@ -30,4 +37,20 @@ message GetAccountInfoRes {
3037
string openid = 3;
3138
}
3239
Data data = 10;
40+
}
41+
42+
message GetAccountScopesReq {
43+
string client_id = 1;
44+
string access_token = 2;
45+
}
46+
47+
message GetAccountScopesRes {
48+
int32 code = 1;
49+
string message = 2;
50+
int32 ttl = 3;
51+
message Data {
52+
string openid = 1;
53+
repeated string scopes = 2;
54+
}
55+
Data data = 10;
3356
}

0 commit comments

Comments
 (0)