@vsniksnet/contracts 1.2.17 → 1.2.19
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/gen/users.ts +4 -1
- package/package.json +1 -1
- package/proto/users.proto +5 -2
package/gen/users.ts
CHANGED
|
@@ -24,6 +24,7 @@ export interface CreateUserResponse {
|
|
|
24
24
|
/** Get one user */
|
|
25
25
|
export interface GetUserRequest {
|
|
26
26
|
userId: string;
|
|
27
|
+
currentId: string;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export interface GetUserResponse {
|
|
@@ -122,7 +123,7 @@ export interface User {
|
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
export interface Profile {
|
|
125
|
-
|
|
126
|
+
id: string;
|
|
126
127
|
username: string;
|
|
127
128
|
avatar: string;
|
|
128
129
|
cover: string;
|
|
@@ -131,6 +132,8 @@ export interface Profile {
|
|
|
131
132
|
status: string;
|
|
132
133
|
country: string;
|
|
133
134
|
birthDay: string;
|
|
135
|
+
followersCount: string;
|
|
136
|
+
followingCount: string;
|
|
134
137
|
isFollow?: boolean | undefined;
|
|
135
138
|
}
|
|
136
139
|
|
package/package.json
CHANGED
package/proto/users.proto
CHANGED
|
@@ -38,6 +38,7 @@ message CreateUserResponse {
|
|
|
38
38
|
/* Get one user */
|
|
39
39
|
message GetUserRequest {
|
|
40
40
|
string user_id = 1;
|
|
41
|
+
string current_id = 2;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
message GetUserResponse {
|
|
@@ -137,7 +138,7 @@ message User {
|
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
message Profile {
|
|
140
|
-
string
|
|
141
|
+
string id = 1;
|
|
141
142
|
string username = 2;
|
|
142
143
|
string avatar = 3;
|
|
143
144
|
string cover = 4;
|
|
@@ -146,5 +147,7 @@ message Profile {
|
|
|
146
147
|
string status = 7;
|
|
147
148
|
string country = 8;
|
|
148
149
|
string birth_day = 9;
|
|
149
|
-
|
|
150
|
+
string followers_count = 10;
|
|
151
|
+
string following_count = 11;
|
|
152
|
+
optional bool is_follow = 12;
|
|
150
153
|
}
|