WOperatorServiceProtoRpc.proto
4.56 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
syntax = "proto3";
option java_multiple_files = true;
option java_package = "com.infoloop.tianting";
option java_outer_classname = "WOperatorsServiceProto";
option objc_class_prefix = "OP";
package com.infoloop.tianting;
service WOperatorServiceProtoRpc {
rpc GetWOperators(GetWOperatorsRpcRequest) returns (GetWOperatorsRpcResponse) {}
rpc GetWOperatorById(GetWOperatorByIdRpcRequest) returns (GetWOperatorByIdRpcResponse) {}
rpc GetWOperatorsByIds(GetWOperatorsByIdsRpcRequest) returns (GetWOperatorsByIdsRpcResponse) {}
rpc SetWOperatorIsInfoloopOperatorById(SetWOperatorIsInfoloopOperatorByIdRpcRequest) returns (SetWOperatorIsInfoloopOperatorByIdRpcResponse) {}
rpc BatchUpdateWOperatorPasswordByIds(BatchUpdateWOperatorPasswordByIdsRpcRequest) returns (BatchUpdateWOperatorPasswordByIdsRpcResponse) {}
rpc GetWOperatorByEmail(GetWOperatorByEmailRpcRequest) returns (GetWOperatorByEmailRpcResponse) {}
rpc GetOperatorByMobile(GetOperatorByMobileRpcRequest) returns (GetOperatorByMobileRpcResponse) {}
rpc DeleteOperatorById(OperatorByIdDeleteRpcRequest) returns (OperatorByIdDeleteRpcResponse) {}
rpc DeleteOperatorByAccount (OperatorByAccountDeleteRpcRequest) returns (OperatorByAccountDeleteRpcResponse) {}
rpc CreateOperator (OperatorCreateRpcRequest) returns (OperatorCreateRpcResponse) {}
rpc GetOperatorsByEnterpriseId (GetOperatorsByEnterpriseIdRpcRequest) returns (GetOperatorsByEnterpriseIdRpcResponse) {}
rpc UpdateWOperatorStatusByIds (UpdateWOperatorStatusByIdsRpcRequest) returns (UpdateWOperatorStatusByIdsRpcResponse) {}
rpc GetOperatorsByCondition (OperatorsGetByConditionRpcRequest) returns (OperatorsGetByConditionRpcResponse) {}
}
message UpdateWOperatorStatusByIdsRpcRequest {
repeated int32 ids = 1;
WOperatorStatus status = 2;
}
message UpdateWOperatorStatusByIdsRpcResponse {
bool isUpdated = 1;
}
message GetOperatorsByEnterpriseIdRpcRequest {
int32 enterpriseId = 1;
bool includeDeleted = 2;
}
message GetOperatorsByEnterpriseIdRpcResponse {
repeated WOperatorResponse response = 1;
}
message OperatorCreateRpcRequest {
int32 enterpriseId = 2;
string code = 3;
bool isEmailSet = 15;
string email = 4;
string name = 5;
string password = 6;
bool isMobileSet = 16;
string mobile = 7;
string note = 8;
WOperatorStatus status = 9;
string openId = 13;
string telephone = 14;
}
message OperatorCreateRpcResponse {
int32 id = 1;
bool isCreated = 2;
string errorMessage = 3;
}
message OperatorByIdDeleteRpcRequest {
int32 id = 1;
int64 deletedAt = 2;
int32 enterpriseId = 3;
}
message OperatorByIdDeleteRpcResponse {
bool isDeleted = 1;
}
message OperatorByAccountDeleteRpcRequest {
bool isEmailSet = 1;
string email = 2;
bool isMobileSet = 3;
string mobile = 4;
}
message OperatorByAccountDeleteRpcResponse {
bool isDeleted = 1;
}
message GetOperatorByMobileRpcRequest {
string mobile = 1;
}
message GetOperatorByMobileRpcResponse {
WOperatorResponse response = 1;
}
message GetWOperatorsRpcRequest {
bool includeDeleted = 1;
}
message GetWOperatorByIdRpcRequest {
int32 id = 1;
}
message GetWOperatorsByIdsRpcRequest {
repeated int32 ids = 1;
bool includeDeleted = 2;
}
message GetWOperatorByEmailRpcRequest {
string email = 1;
}
message SetWOperatorIsInfoloopOperatorByIdRpcRequest {
int32 id = 1;
bool isInfoloopOperator = 2;
}
message BatchUpdateWOperatorPasswordByIdsRpcRequest {
repeated SingleUpdateWOperator request = 1;
}
message SingleUpdateWOperator {
int32 id = 1;
string password = 2;
}
enum WOperatorStatus {
UN_KNOW = 0;
SHOW = 1;
HIDE = 2;
DELETED = 3;
}
message WOperatorResponse {
int32 id = 1;
int32 enterpriseId = 2;
string code = 3;
string email = 4;
string name = 5;
string password = 6;
string mobile = 7;
string note = 8;
WOperatorStatus status = 9;
int64 createdAt = 10;
int64 updatedAt = 11;
bool isSuper = 12;
string openId = 13;
string telephone = 14;
}
message GetWOperatorsRpcResponse {
repeated WOperatorResponse responses = 1;
}
message GetWOperatorByIdRpcResponse {
WOperatorResponse response = 1;
}
message GetWOperatorsByIdsRpcResponse {
repeated WOperatorResponse responses = 1;
}
message GetWOperatorByEmailRpcResponse {
WOperatorResponse response = 1;
}
message SetWOperatorIsInfoloopOperatorByIdRpcResponse {
}
message BatchUpdateWOperatorPasswordByIdsRpcResponse {
}
message OperatorsGetByConditionRpcRequest {
int32 enterpriseId = 1;
bool includeDeleted = 2;
bool shouldFilterNameKeyword = 3;
string nameKeyword = 4;
}
message OperatorsGetByConditionRpcResponse {
repeated WOperatorResponse responses = 1;
}