ClientCustomerService.proto
21.7 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
syntax = "proto3";
option java_multiple_files = true;
option java_package = "com.infoloop.tianting.clientcustomerservice";
option java_outer_classname = "ClientCustomerServiceProto";
option objc_class_prefix = "OP";
package com.infoloop.tianting.clientcustomerservice;
service ClientCustomerServiceRpc {
//客户
rpc GetClientCustomerById (GetClientCustomerByIdRpcRequest) returns (GetClientCustomerByIdRpcResponse) {}
//HIS客户
rpc GetClientCustomerByHISCustomerId (GetClientCustomerByHISCustomerIdRpcRequest) returns (GetClientCustomerByHISCustomerIdRpcResponse) {}
//腕带号获取客户
rpc GetClientCustomerByHISCustomerNo (GetClientCustomerByHISCustomerNoRpcRequest) returns (GetClientCustomerByHISCustomerNoRpcResponse) {}
//HIS客户
rpc GetClientCustomersByHISCustomerIds (GetClientCustomersByHISCustomerIdsRpcRequest) returns (GetClientCustomersByHISCustomerIdsRpcResponse) {}
//月子中心客户
rpc GetClientCustomerByContactNo (GetClientCustomerByContactNoRpcRequest) returns (GetClientCustomerByContactNoRpcResponse) {}
rpc GetClientCustomerByMobile (GetClientCustomerByMobileRpcRequest) returns (GetClientCustomerByMobileRpcResponse) {}
rpc GetClientCustomersByName (GetClientCustomersByNameRpcRequest) returns (GetClientCustomersByNameRpcResponse) {}
rpc GetClientCustomersByRoomNo (GetClientCustomersByRoomNoRpcRequest) returns (GetClientCustomersByRoomNoRpcResponse) {}
rpc GetClientCustomersByIds (GetClientCustomersByIdsRpcRequest) returns (GetClientCustomersByIdsRpcResponse) {}
rpc QueryClientCustomersByCondition (QueryClientCustomersByConditionRpcRequest) returns (QueryClientCustomersByConditionRpcResponse) {}
rpc CreateClientCustomer (CreateClientCustomerRpcRequest) returns (CreateClientCustomerRpcResponse) {}
rpc BatchCreateClientCustomers (BatchCreateClientCustomersRpcRequest) returns (BatchCreateClientCustomersRpcResponse) {}
rpc UpdateClientCustomer (UpdateClientCustomerRpcRequest) returns (UpdateClientCustomerRpcResponse) {}
rpc BatchUpdateClientCustomers (BatchUpdateClientCustomersRpcRequest) returns (BatchUpdateClientCustomersRpcResponse) {}
rpc DeleteClientCustomersByIds (DeleteClientCustomersByIdsRpcRequest) returns (DeleteClientCustomersRpcResponse) {}
//客户住院记录
//根据合同号查询住院记录
rpc GetClientCustomerHospitalRecordByContractNo (GetClientCustomerHospitalRecordByContractNoRpcRequest) returns (GetClientCustomerHospitalRecordByContractNoRpcResponse) {}
rpc GetClientCustomerHospitalRecordById (GetClientCustomerHospitalRecordByIdRpcRequest) returns (GetClientCustomerHospitalRecordByIdRpcResponse) {}
rpc GetClientCustomerHospitalRecordsByIds (GetClientCustomerHospitalRecordsByIdsRpcRequest) returns (GetClientCustomerHospitalRecordsByIdsRpcResponse) {}
//根据客户ID查询住院记录
rpc GetClientCustomerHospitalRecordByCustomerId (GetClientCustomerHospitalRecordByCustomerIdRpcRequest) returns (GetClientCustomerHospitalRecordByCustomerIdRpcResponse) {}
//根据客户IDS查询住院记录
rpc GetClientCustomerHospitalRecordsByCustomerIds (GetClientCustomerHospitalRecordsByCustomerIdsRpcRequest) returns (GetClientCustomerHospitalRecordsByCustomerIdsRpcResponse) {}
rpc GetClientCustomerHospitalRecordsByHISCustomerIds (GetClientCustomerHospitalRecordsByHISCustomerIdsRpcRequest) returns (GetClientCustomerHospitalRecordsByHISCustomerIdsRpcResponse) {}
rpc QueryClientCustomerHospitalRecordsByCondition (QueryClientCustomerHospitalRecordsByConditionRpcRequest) returns (QueryClientCustomerHospitalRecordsByConditionRpcResponse) {}
rpc CreateClientCustomerHospitalRecord (CreateClientCustomerHospitalRecordRpcRequest) returns (CreateClientCustomerHospitalRecordRpcResponse) {}
rpc BatchCreateClientCustomerHospitalRecords (BatchCreateClientCustomerHospitalRecordsRpcRequest) returns (BatchCreateClientCustomerHospitalRecordsRpcResponse) {}
rpc UpdateClientCustomerHospitalRecord (UpdateClientCustomerHospitalRecordRpcRequest) returns (UpdateClientCustomerHospitalRecordRpcResponse) {}
rpc BatchUpdateClientCustomerHospitalRecords (BatchUpdateClientCustomerHospitalRecordsRpcRequest) returns (BatchUpdateClientCustomerHospitalRecordsRpcResponse) {}
rpc DeleteClientCustomerHospitalRecordsByIds (DeleteClientCustomerHospitalRecordsByIdsRpcRequest) returns (DeleteClientCustomerHospitalRecordsRpcResponse) {}
//客户标签关联
rpc GetClientCustomerLabelRefById (GetClientCustomerLabelRefByIdRpcRequest) returns (GetClientCustomerLabelRefByIdRpcResponse) {}
rpc GetClientCustomerLabelRefsByIds (GetClientCustomerLabelRefsByIdsRpcRequest) returns (GetClientCustomerLabelRefsByIdsRpcResponse) {}
rpc QueryClientCustomerLabelRefsByCondition (QueryClientCustomerLabelRefsByConditionRpcRequest) returns (QueryClientCustomerLabelRefsByConditionRpcResponse) {}
rpc BatchCreateClientCustomerLabelRefs (BatchCreateClientCustomerLabelRefsRpcRequest) returns (BatchCreateClientCustomerLabelRefsRpcResponse) {}
rpc DeleteClientCustomerLabelRefsByIds (DeleteClientCustomerLabelRefsByIdsRpcRequest) returns (DeleteClientCustomerLabelRefsRpcResponse) {}
rpc DeleteClientCustomerLabelRefsByLabelIds (DeleteClientCustomerLabelRefsByLabelIdsRpcRequest) returns (DeleteClientCustomerLabelRefsByLabelIdsRpcResponse) {}
//客户操作记录
rpc QueryClientCustomerOperationRecordsByCondition (QueryClientCustomerOperationRecordsByConditionRpcRequest) returns (QueryClientCustomerOperationRecordsByConditionRpcResponse) {}
rpc CreateClientCustomerOperationRecord (CreateClientCustomerOperationRecordRpcRequest) returns (CreateClientCustomerOperationRecordRpcResponse) {}
rpc BatchCreateClientCustomerOperationRecords (BatchCreateClientCustomerOperationRecordsRpcRequest) returns (BatchCreateClientCustomerOperationRecordsRpcResponse) {}
}
enum ClientCustomerSexEnum {
CLIENT_CUSTOMER_SEX_UNKNOWN = 0;
MALE = 1;
FEMALE = 2;
}
message SingleClientCustomerRpcResponse {
int32 id = 1;
int32 enterpriseId = 2;
int32 clientId = 3;
string HISCustomerId = 4;
string name = 5;
int64 birthday = 6;
ClientCustomerSexEnum sex = 7;
string identityCardNo = 8;
int32 age = 9;
int32 height = 10;
int32 weight = 11;
string mobile = 12;
int32 createdBy = 13;
int64 createdAt = 14;
int32 creationSource = 15;
int32 updatedBy = 16;
int64 updatedAt = 17;
int32 updateSource = 18;
bool isDeleted = 19;
int32 stallId = 20;
string openId = 21;
string HISCustomerNo = 22;
}
message GetClientCustomerByIdRpcRequest {
int32 id = 1;
int32 enterpriseId = 2;
bool includeDeleted = 3;
}
message GetClientCustomerByIdRpcResponse {
SingleClientCustomerRpcResponse response = 1;
}
message GetClientCustomerByHISCustomerIdRpcRequest {
string HISCustomerId = 1;
}
message GetClientCustomerByHISCustomerIdRpcResponse {
SingleClientCustomerRpcResponse response = 1;
}
message GetClientCustomerByHISCustomerNoRpcRequest {
string HISCustomerNo = 1;
}
message GetClientCustomerByHISCustomerNoRpcResponse {
SingleClientCustomerRpcResponse response = 1;
}
message GetClientCustomersByHISCustomerIdsRpcRequest {
repeated string HISCustomerIds = 1;
}
message GetClientCustomersByHISCustomerIdsRpcResponse {
repeated SingleClientCustomerRpcResponse responses = 1;
}
message GetClientCustomerByContactNoRpcRequest {
string contractNo = 1;
}
message GetClientCustomerByContactNoRpcResponse {
SingleClientCustomerRpcResponse response = 1;
}
message GetClientCustomerByMobileRpcRequest {
string mobile = 1;
}
message GetClientCustomerByMobileRpcResponse {
SingleClientCustomerRpcResponse response = 1;
}
message GetClientCustomersByNameRpcRequest {
string name = 1;
int32 enterpriseId = 2;
bool includeDeleted = 3;
}
message GetClientCustomersByNameRpcResponse {
repeated SingleClientCustomerRpcResponse responses = 1;
}
message GetClientCustomersByRoomNoRpcRequest {
string roomNo = 1;
int32 enterpriseId = 2;
bool includeDeleted = 3;
}
message GetClientCustomersByRoomNoRpcResponse {
repeated SingleClientCustomerRpcResponse responses = 1;
}
message GetClientCustomersByIdsRpcRequest {
repeated int32 ids = 1;
int32 enterpriseId = 2;
bool includeDeleted = 3;
}
message GetClientCustomersByIdsRpcResponse {
repeated SingleClientCustomerRpcResponse responses = 1;
}
message QueryClientCustomersByConditionRpcRequest {
int32 enterpriseId = 1;
bool shouldFilterClientIds = 2;
repeated int32 clientIds = 3;
bool shouldFilterHISCustomerId = 4;
string HISCustomerId = 5;
bool shouldFilterName = 6;
string name = 7;
bool shouldFilterBirthdayStart = 8;
int64 birthdayStart = 9;
bool shouldFilterBirthdayEnd = 10;
int64 birthdayEnd = 11;
bool shouldFilterSex = 12;
ClientCustomerSexEnum sex = 13;
bool shouldFilterMobile = 14;
string mobile = 15;
bool includeDeleted = 16;
bool shouldFilterStallIds = 17;
repeated int32 stallIds = 18;
}
message QueryClientCustomersByConditionRpcResponse {
repeated SingleClientCustomerRpcResponse responses = 1;
}
message ClientCustomerCreation{
int32 clientId = 1;
bool shouldCreateHISCustomerId = 2;
string HISCustomerId = 3;
bool shouldCreateName = 4;
string name = 5;
bool shouldCreateBirthday = 6;
int64 birthday = 7;
ClientCustomerSexEnum sex = 8;
bool shouldCreateIdentityCardNo = 9;
string identityCardNo = 10;
int32 age = 11;
int32 height = 12;
int32 weight = 13;
bool shouldCreateMobile = 14;
string mobile = 15;
int32 stallId = 16;
bool shouldCreateOpenId = 17;
string openId = 18;
bool shouldCreateHISCustomerNo = 19;
string HISCustomerNo = 20;
}
message CreateClientCustomerRpcRequest {
ClientCustomerCreation creation = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message CreateClientCustomerRpcResponse {
int32 id = 1;
bool isCreated = 2;
}
message BatchCreateClientCustomersRpcRequest {
repeated ClientCustomerCreation creations = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message BatchCreateClientCustomersRpcResponse {
repeated int32 ids = 1;
bool isCreated = 2;
}
message ClientCustomerModification {
int32 id = 1;
bool shouldUpdateClientId = 2;
int32 clientId = 3;
bool shouldUpdateHISCustomerId = 4;
string HISCustomerId = 5;
bool shouldUpdateName = 6;
string name = 7;
bool shouldUpdateBirthday = 8;
int64 birthday = 9;
bool shouldUpdateSex = 10;
ClientCustomerSexEnum sex = 11;
bool shouldUpdateIdentityCardNo = 12;
string identityCardNo = 13;
bool shouldUpdateAge = 14;
int32 age = 15;
bool shouldUpdateHeight = 16;
int32 height = 17;
bool shouldUpdateWeight = 18;
int32 weight = 19;
bool shouldUpdateMobile = 20;
string mobile = 21;
bool shouldUpdateStallId = 22;
int32 stallId = 23;
bool shouldUpdateOpenId = 24;
string openId = 25;
}
message UpdateClientCustomerRpcRequest {
ClientCustomerModification modification = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message UpdateClientCustomerRpcResponse {
bool isUpdated = 1;
}
message BatchUpdateClientCustomersRpcRequest {
repeated ClientCustomerModification modifications = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message BatchUpdateClientCustomersRpcResponse {
bool isUpdated = 1;
}
message DeleteClientCustomersByIdsRpcRequest {
repeated int32 ids = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message DeleteClientCustomersRpcResponse {
bool isDeleted = 1;
}
enum ClientCustomerHospitalRecordHospitalStatusEnum {
PRE_ADMISSION = 0;
CURRENT = 1;
CANCEL = 2;
DISCHARGED = 3;
}
message SingleClientCustomerHospitalRecordRpcResponse {
int32 id = 1;
int32 enterpriseId = 2;
int32 clientId = 3;
int32 customerId = 4;
string contractNo = 5;
string departmentName = 6;
string roomNo = 7;
int64 hospitalTime = 8;
int64 expectDischargeTime = 9;
int64 actualDischargeTime = 10;
int64 dueDate = 11;
int64 birthDate = 12;
ClientCustomerHospitalRecordHospitalStatusEnum hospitalStatus = 13;
string remark = 14;
int32 createdBy = 15;
int64 createdAt = 16;
int32 creationSource = 17;
int32 updatedBy = 18;
int64 updatedAt = 19;
int32 updateSource = 20;
bool isDeleted = 21;
int32 stallId = 22;
}
message GetClientCustomerHospitalRecordByContractNoRpcRequest {
string contractNo = 1;
}
message GetClientCustomerHospitalRecordByContractNoRpcResponse {
SingleClientCustomerHospitalRecordRpcResponse response = 1;
}
message GetClientCustomerHospitalRecordByIdRpcRequest {
int32 id = 1;
int32 enterpriseId = 2;
bool includeDeleted = 3;
}
message GetClientCustomerHospitalRecordByIdRpcResponse {
SingleClientCustomerHospitalRecordRpcResponse response = 1;
}
message GetClientCustomerHospitalRecordsByIdsRpcRequest {
repeated int32 ids = 1;
int32 enterpriseId = 2;
bool includeDeleted = 3;
}
message GetClientCustomerHospitalRecordsByIdsRpcResponse {
repeated SingleClientCustomerHospitalRecordRpcResponse responses = 1;
}
message GetClientCustomerHospitalRecordByCustomerIdRpcRequest {
int32 customerId = 1;
int32 enterpriseId = 2;
bool includeDeleted = 3;
}
message GetClientCustomerHospitalRecordByCustomerIdRpcResponse {
SingleClientCustomerHospitalRecordRpcResponse response = 1;
}
message GetClientCustomerHospitalRecordsByCustomerIdsRpcRequest {
repeated int32 customerIds = 1;
int32 enterpriseId = 2;
bool includeDeleted = 3;
}
message GetClientCustomerHospitalRecordsByCustomerIdsRpcResponse {
repeated SingleClientCustomerHospitalRecordRpcResponse responses = 1;
}
message GetClientCustomerHospitalRecordsByHISCustomerIdsRpcRequest {
repeated string HISCustomerIds = 1;
int32 enterpriseId = 2;
bool includeDeleted = 3;
}
message GetClientCustomerHospitalRecordsByHISCustomerIdsRpcResponse {
repeated SingleClientCustomerHospitalRecordRpcResponse responses = 1;
}
message QueryClientCustomerHospitalRecordsByConditionRpcRequest {
int32 enterpriseId = 1;
bool shouldFilterClientIds = 2;
repeated int32 clientIds = 3;
bool shouldFilterCustomerIds = 4;
repeated int32 customerIds = 5;
bool shouldFilterContractNo = 6;
string contractNo = 7;
bool shouldFilterDepartmentName = 8;
string departmentName = 9;
bool shouldFilterRoomNo = 10;
string roomNo = 11;
bool shouldFilterHospitalTimeStart = 12;
int64 hospitalTimeStart = 13;
bool shouldFilterHospitalTimeEnd = 14;
int64 hospitalTimeEnd = 15;
bool shouldFilterActualDischargeTimeStart = 16;
int64 actualDischargeTimeStart = 17;
bool shouldFilterActualDischargeTimeEnd = 18;
int64 actualDischargeTimeEnd = 19;
bool shouldFilterHospitalStatus = 20;
ClientCustomerHospitalRecordHospitalStatusEnum hospitalStatus = 21;
bool includeDeleted = 22;
bool shouldFilterStallIds = 23;
repeated int32 stallIds = 24;
}
message QueryClientCustomerHospitalRecordsByConditionRpcResponse {
repeated SingleClientCustomerHospitalRecordRpcResponse responses = 1;
}
message ClientCustomerHospitalRecordCreation{
int32 clientId = 1;
int32 customerId = 2;
bool shouldCreateContractNo = 3;
string contractNo = 4;
bool shouldCreateDepartmentName = 5;
string departmentName = 6;
bool shouldCreateRoomNo = 7;
string roomNo = 8;
bool shouldCreateHospitalTime = 9;
int64 hospitalTime = 10;
bool shouldCreateExpectDischargeTime = 11;
int64 expectDischargeTime = 12;
bool shouldCreateActualDischargeTime = 13;
int64 actualDischargeTime = 14;
bool shouldCreateDueDate = 15;
int64 dueDate = 16;
bool shouldCreateBirthDate = 17;
int64 birthDate = 18;
bool shouldCreateHospitalStatus = 19;
ClientCustomerHospitalRecordHospitalStatusEnum hospitalStatus = 20;
bool shouldCreateRemark = 21;
string remark = 22;
int32 stallId = 23;
}
message CreateClientCustomerHospitalRecordRpcRequest {
ClientCustomerHospitalRecordCreation creation = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message CreateClientCustomerHospitalRecordRpcResponse {
int32 id = 1;
bool isCreated = 2;
}
message BatchCreateClientCustomerHospitalRecordsRpcRequest {
repeated ClientCustomerHospitalRecordCreation creations = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message BatchCreateClientCustomerHospitalRecordsRpcResponse {
repeated int32 ids = 1;
bool isCreated = 2;
}
message ClientCustomerHospitalRecordModification {
int32 id = 1;
bool shouldUpdateClientId = 2;
int32 clientId = 3;
bool shouldUpdateCustomerId = 4;
int32 customerId = 5;
bool shouldUpdateContractNo = 6;
string contractNo = 7;
bool shouldUpdateDepartmentName = 8;
string departmentName = 9;
bool shouldUpdateRoomNo = 10;
string roomNo = 11;
bool shouldUpdateHospitalTime = 12;
int64 hospitalTime = 13;
bool shouldUpdateExpectDischargeTime = 14;
int64 expectDischargeTime = 15;
bool shouldUpdateActualDischargeTime = 16;
int64 actualDischargeTime = 17;
bool shouldUpdateDueDate = 18;
int64 dueDate = 19;
bool shouldUpdateBirthDate = 20;
int64 birthDate = 21;
bool shouldUpdateHospitalStatus = 22;
ClientCustomerHospitalRecordHospitalStatusEnum hospitalStatus = 23;
bool shouldUpdateRemark = 24;
string remark = 25;
bool shouldUpdateStallId = 26;
int32 stallId = 27;
}
message UpdateClientCustomerHospitalRecordRpcRequest {
ClientCustomerHospitalRecordModification modification = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message UpdateClientCustomerHospitalRecordRpcResponse {
bool isUpdated = 1;
}
message BatchUpdateClientCustomerHospitalRecordsRpcRequest {
repeated ClientCustomerHospitalRecordModification modifications = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message BatchUpdateClientCustomerHospitalRecordsRpcResponse {
bool isUpdated = 1;
}
message DeleteClientCustomerHospitalRecordsByIdsRpcRequest {
repeated int32 ids = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message DeleteClientCustomerHospitalRecordsRpcResponse {
bool isDeleted = 1;
}
message SingleClientCustomerLabelRefRpcResponse {
int32 id = 1;
int32 enterpriseId = 2;
int32 labelId = 3;
int32 customerId = 4;
int32 createdBy = 5;
int64 createdAt = 6;
int32 creationSource = 7;
}
message GetClientCustomerLabelRefByIdRpcRequest {
int32 id = 1;
int32 enterpriseId = 2;
}
message GetClientCustomerLabelRefByIdRpcResponse {
SingleClientCustomerLabelRefRpcResponse response = 1;
}
message GetClientCustomerLabelRefsByIdsRpcRequest {
repeated int32 ids = 1;
int32 enterpriseId = 2;
}
message GetClientCustomerLabelRefsByIdsRpcResponse {
repeated SingleClientCustomerLabelRefRpcResponse responses = 1;
}
message QueryClientCustomerLabelRefsByConditionRpcRequest {
int32 enterpriseId = 1;
bool shouldFilterLabelIds = 2;
repeated int32 labelIds = 3;
bool shouldFilterCustomerIds = 4;
repeated int32 customerIds = 5;
}
message QueryClientCustomerLabelRefsByConditionRpcResponse {
repeated SingleClientCustomerLabelRefRpcResponse responses = 1;
}
message ClientCustomerLabelRefCreation{
int32 labelId = 1;
int32 customerId = 2;
}
message CreateClientCustomerLabelRefRpcRequest {
ClientCustomerLabelRefCreation creation = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message CreateClientCustomerLabelRefRpcResponse {
int32 id = 1;
bool isCreated = 2;
}
message BatchCreateClientCustomerLabelRefsRpcRequest {
repeated ClientCustomerLabelRefCreation creations = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message BatchCreateClientCustomerLabelRefsRpcResponse {
repeated int32 ids = 1;
bool isCreated = 2;
}
message DeleteClientCustomerLabelRefsByIdsRpcRequest {
repeated int32 ids = 1;
int32 enterpriseId = 2;
}
message DeleteClientCustomerLabelRefsRpcResponse {
bool isDeleted = 1;
}
message DeleteClientCustomerLabelRefsByLabelIdsRpcRequest {
repeated int32 labelIds = 1;
int32 enterpriseId = 2;
int32 customerId = 3;
}
message DeleteClientCustomerLabelRefsByLabelIdsRpcResponse {
bool isDeleted = 1;
}
enum ClientCustomerOperationRecordTypeEnum {
CLIENT_CUSTOMER_OPERATION_RECORD_TYPE_UNKNOWN = 0;
CLIENT_CUSTOMER_OPERATION_RECORD_TYPE_CREATE = 1;
CLIENT_CUSTOMER_OPERATION_RECORD_TYPE_UPDATE = 2;
CLIENT_CUSTOMER_OPERATION_RECORD_TYPE_BIND_MENUS = 3;
CLIENT_CUSTOMER_OPERATION_RECORD_TYPE_LEAVE_HOSPITAL = 4;
CLIENT_CUSTOMER_OPERATION_RECORD_TYPE_UPDATE_ROOM_NO = 5;
}
message SingleClientCustomerOperationRecordRpcResponse {
int32 id = 1;
int32 enterpriseId = 2;
int32 clientCustomerId = 3;
ClientCustomerOperationRecordTypeEnum type = 4;
string originalJson = 5;
string adjustJson = 6;
string operator = 7;
int32 createdBy = 8;
int64 createdAt = 9;
int32 creationSource = 10;
}
message QueryClientCustomerOperationRecordsByConditionRpcRequest {
int32 enterpriseId = 1;
bool shouldFilterClientCustomerIds = 2;
repeated int32 clientCustomerIds = 3;
bool shouldFilterType = 4;
ClientCustomerOperationRecordTypeEnum type = 5;
}
message QueryClientCustomerOperationRecordsByConditionRpcResponse {
repeated SingleClientCustomerOperationRecordRpcResponse responses = 1;
}
message ClientCustomerOperationRecordCreation{
int32 clientCustomerId = 1;
ClientCustomerOperationRecordTypeEnum type = 2;
bool shouldCreateOriginalJson = 3;
string originalJson = 4;
bool shouldCreateAdjustJson = 5;
string adjustJson = 6;
string operator = 7;
}
message CreateClientCustomerOperationRecordRpcRequest {
ClientCustomerOperationRecordCreation creation = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message CreateClientCustomerOperationRecordRpcResponse {
int32 id = 1;
bool isCreated = 2;
}
message BatchCreateClientCustomerOperationRecordsRpcRequest {
repeated ClientCustomerOperationRecordCreation creations = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message BatchCreateClientCustomerOperationRecordsRpcResponse {
repeated int32 ids = 1;
bool isCreated = 2;
}