Please enable Javascript to view the contents
组织接口
组织RPC接口
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
syntax = "proto3";
package services.org;
option go_package = "proto;proto";
service orgService {
rpc Org(OrgID) returns (OrgInfoResponse) {};
rpc Update(OrgUpdateRequest) returns (OrgInfoResponse);
rpc Members(OrgMemberRequest) returns (UserResponse);
rpc RemoveMembers(MembersRequest) returns (Status);
rpc UpdateMemberRole(MembersRequest) returns (Status);
}
message OrgID {
string uuid = 1;
}
message User {
string uuid = 1;
string name = 2;
string email =3;
string avatar = 4;
}
message OrgInfoResponse {
string uuid =1;
string name =2;
int32 status = 3;
string avatar = 4;
int32 membersCount = 5;
repeated User userInfo =6;
}
message OrgUpdateRequest {
string uuid = 1;
string name =2;
oneof hasStatus{
int32 status = 3;
}
string avatar = 4;
}
message OrgMemberRequest {
string uuid = 1;
string keyWords = 2;
string umeta = 3;
int32 page = 4;
int32 limit = 5;
}
message UserResponse {
int32 count =1;
repeated string user=2;
}
message MembersRequest {
string orgId =1 ;
string uId = 2;
oneof hasSoft {
int32 soft = 3;
}
repeated string userId =4;
int32 userRole = 5;
}
message Status{
string OK =1;
int32 Count = 2;
}
|