@doocinema/contracts 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/proto/account.proto +44 -0
package/package.json
CHANGED
package/proto/account.proto
CHANGED
|
@@ -4,6 +4,12 @@ package account.v1;
|
|
|
4
4
|
|
|
5
5
|
service AccountService {
|
|
6
6
|
rpc GetAccount (GetAccountRequest) returns (GetAccountResponse);
|
|
7
|
+
|
|
8
|
+
rpc InitEmailChange (InitEmailChangeRequest) returns (InitEmailChangeResponse);
|
|
9
|
+
rpc ConfirmEmailChange (ConfirmEmailChangeRequest) returns (ConfirmEmailChangeResponse);
|
|
10
|
+
|
|
11
|
+
rpc InitPhoneChange (InitPhoneChangeRequest) returns (InitPhoneChangeResponse);
|
|
12
|
+
rpc ConfirmPhoneChange (ConfirmPhoneChangeRequest) returns (ConfirmPhoneChangeResponse);
|
|
7
13
|
}
|
|
8
14
|
|
|
9
15
|
message GetAccountRequest {
|
|
@@ -19,6 +25,44 @@ message GetAccountResponse {
|
|
|
19
25
|
Role role = 6;
|
|
20
26
|
}
|
|
21
27
|
|
|
28
|
+
message InitEmailChangeRequest {
|
|
29
|
+
string email = 1;
|
|
30
|
+
string user_id = 2;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message InitEmailChangeResponse {
|
|
34
|
+
bool ok = 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message ConfirmEmailChangeRequest {
|
|
38
|
+
string email = 1;
|
|
39
|
+
string code = 2;
|
|
40
|
+
string user_id = 3;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message ConfirmEmailChangeResponse {
|
|
44
|
+
bool ok = 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message InitPhoneChangeRequest {
|
|
48
|
+
string phone = 1;
|
|
49
|
+
string user_id = 2;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message InitPhoneChangeResponse {
|
|
53
|
+
bool ok = 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
message ConfirmPhoneChangeRequest {
|
|
57
|
+
string phone = 1;
|
|
58
|
+
string code = 2;
|
|
59
|
+
string user_id = 3;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message ConfirmPhoneChangeResponse {
|
|
63
|
+
bool ok = 1;
|
|
64
|
+
}
|
|
65
|
+
|
|
22
66
|
enum Role {
|
|
23
67
|
USER = 0;
|
|
24
68
|
ADMIN = 1;
|