SetMealScheduleService.proto
21.5 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
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
syntax = "proto3";
option java_multiple_files = true;
option java_package = "com.infoloop.tianting.setmealscheduleservice";
option java_outer_classname = "SetMealScheduleServiceProto";
option objc_class_prefix = "OP";
package com.infoloop.tianting.setmealscheduleservice;
service SetMealScheduleServiceRpc {
/**
* 餐别
*/
rpc GetMealById (GetMealByIdRpcRequest) returns (GetMealByIdRpcResponse) {}
rpc GetMealsByIds (GetMealsByIdsRpcRequest) returns (GetMealsByIdsRpcResponse) {}
rpc GetAllMeals (GetAllMealsRpcRequest) returns (GetAllMealsRpcResponse) {}
rpc GetMealsByCondition (GetMealsByConditionRpcRequest) returns (GetMealsByConditionRpcResponse) {}
rpc CreateMeal (CreateMealRpcRequest) returns (CreateMealRpcResponse) {}
rpc BatchCreateMeals (BatchCreateMealsRpcRequest) returns (BatchCreateMealsRpcResponse) {}
rpc UpdateMeal (UpdateMealRpcRequest) returns (UpdateMealRpcResponse) {}
rpc BatchUpdateMeals (BatchUpdateMealsRpcRequest) returns (BatchUpdateMealsRpcResponse) {}
rpc DeleteMealsByIds (DeleteMealsByIdsRpcRequest) returns (DeleteMealsRpcResponse) {}
/**
* 用户餐别默认
*/
rpc GetOperatorDefaultMealRefById (GetOperatorDefaultMealRefByIdRpcRequest) returns (GetOperatorDefaultMealRefByIdRpcResponse) {}
rpc GetOperatorDefaultMealRefsByIds (GetOperatorDefaultMealRefsByIdsRpcRequest) returns (GetOperatorDefaultMealRefsByIdsRpcResponse) {}
rpc GetAllOperatorDefaultMealRefs (GetAllOperatorDefaultMealRefsRpcRequest) returns (GetAllOperatorDefaultMealRefsRpcResponse) {}
rpc GetOperatorDefaultMealRefsByCondition (GetOperatorDefaultMealRefsByConditionRpcRequest) returns (GetOperatorDefaultMealRefsByConditionRpcResponse) {}
rpc CreateOperatorDefaultMealRef (CreateOperatorDefaultMealRefRpcRequest) returns (CreateOperatorDefaultMealRefRpcResponse) {}
rpc BatchCreateOperatorDefaultMealRefs (BatchCreateOperatorDefaultMealRefsRpcRequest) returns (BatchCreateOperatorDefaultMealRefsRpcResponse) {}
rpc UpdateOperatorDefaultMealRef (UpdateOperatorDefaultMealRefRpcRequest) returns (UpdateOperatorDefaultMealRefRpcResponse) {}
rpc BatchUpdateOperatorDefaultMealRefs (BatchUpdateOperatorDefaultMealRefsRpcRequest) returns (BatchUpdateOperatorDefaultMealRefsRpcResponse) {}
rpc DeleteOperatorDefaultMealRefsByIds (DeleteOperatorDefaultMealRefsByIdsRpcRequest) returns (DeleteOperatorDefaultMealRefsRpcResponse) {}
/**
* 套餐订货规则
*/
rpc GetSetMealOrderingRuleById (GetSetMealOrderingRuleByIdRpcRequest) returns (GetSetMealOrderingRuleByIdRpcResponse) {}
rpc GetSetMealOrderingRulesByIds (GetSetMealOrderingRulesByIdsRpcRequest) returns (GetSetMealOrderingRulesByIdsRpcResponse) {}
rpc GetSetMealOrderingRulesByCondition (GetSetMealOrderingRulesByConditionRpcRequest) returns (GetSetMealOrderingRulesByConditionRpcResponse) {}
rpc CreateSetMealOrderingRule (CreateSetMealOrderingRuleRpcRequest) returns (CreateSetMealOrderingRuleRpcResponse) {}
rpc BatchCreateSetMealOrderingRules (BatchCreateSetMealOrderingRulesRpcRequest) returns (BatchCreateSetMealOrderingRulesRpcResponse) {}
rpc UpdateSetMealOrderingRule (UpdateSetMealOrderingRuleRpcRequest) returns (UpdateSetMealOrderingRuleRpcResponse) {}
rpc BatchUpdateSetMealOrderingRules (BatchUpdateSetMealOrderingRulesRpcRequest) returns (BatchUpdateSetMealOrderingRulesRpcResponse) {}
rpc DeleteSetMealOrderingRulesByIds (DeleteSetMealOrderingRulesByIdsRpcRequest) returns (DeleteSetMealOrderingRulesRpcResponse) {}
/**
* 套餐排菜
*/
rpc GetSetMealScheduleById (GetSetMealScheduleByIdRpcRequest) returns (GetSetMealScheduleByIdRpcResponse) {}
rpc GetSetMealSchedulesByIds (GetSetMealSchedulesByIdsRpcRequest) returns (GetSetMealSchedulesByIdsRpcResponse) {}
rpc GetSetMealSchedulesByCondition (GetSetMealSchedulesByConditionRpcRequest) returns (GetSetMealSchedulesByConditionRpcResponse) {}
rpc CreateSetMealSchedule (CreateSetMealScheduleRpcRequest) returns (CreateSetMealScheduleRpcResponse) {}
rpc BatchCreateSetMealSchedules (BatchCreateSetMealSchedulesRpcRequest) returns (BatchCreateSetMealSchedulesRpcResponse) {}
rpc UpdateSetMealSchedule (UpdateSetMealScheduleRpcRequest) returns (UpdateSetMealScheduleRpcResponse) {}
rpc BatchUpdateSetMealSchedules (BatchUpdateSetMealSchedulesRpcRequest) returns (BatchUpdateSetMealSchedulesRpcResponse) {}
rpc DeleteSetMealSchedulesByIds (DeleteSetMealSchedulesByIdsRpcRequest) returns (DeleteSetMealSchedulesRpcResponse) {}
//保存排菜和排菜明细
rpc SaveSetMealScheduleAndItemSchedules (SaveSetMealScheduleAndItemSchedulesRpcRequest) returns (SaveSetMealScheduleAndItemSchedulesRpcResponse) {}
/**
* 套餐排菜明细
*/
rpc GetSetMealItemScheduleById (GetSetMealItemScheduleByIdRpcRequest) returns (GetSetMealItemScheduleByIdRpcResponse) {}
rpc GetSetMealItemSchedulesByIds (GetSetMealItemSchedulesByIdsRpcRequest) returns (GetSetMealItemSchedulesByIdsRpcResponse) {}
rpc GetSetMealItemSchedulesByCondition (GetSetMealItemSchedulesByConditionRpcRequest) returns (GetSetMealItemSchedulesByConditionRpcResponse) {}
rpc CreateSetMealItemSchedule (CreateSetMealItemScheduleRpcRequest) returns (CreateSetMealItemScheduleRpcResponse) {}
rpc BatchCreateSetMealItemSchedules (BatchCreateSetMealItemSchedulesRpcRequest) returns (BatchCreateSetMealItemSchedulesRpcResponse) {}
rpc UpdateSetMealItemSchedule (UpdateSetMealItemScheduleRpcRequest) returns (UpdateSetMealItemScheduleRpcResponse) {}
rpc BatchUpdateSetMealItemSchedules (BatchUpdateSetMealItemSchedulesRpcRequest) returns (BatchUpdateSetMealItemSchedulesRpcResponse) {}
rpc DeleteSetMealItemSchedulesByIds (DeleteSetMealItemSchedulesByIdsRpcRequest) returns (DeleteSetMealItemSchedulesRpcResponse) {}
}
enum MealStatus {
UNKNOWN_MEAL_STATUS = 0;
MEAL_ENABLED = 1;
MEAL_DISABLED = 2;
}
message SingleMealRpcResponse {
int32 id = 1;
int32 enterpriseId = 2;
string name = 3;
bool allowCreateOrder = 4;
MealStatus status = 5;
bool isDeleted = 6;
int64 createdAt = 7;
int32 creationSource = 8;
int32 createdBy = 9;
int64 updatedAt = 10;
int32 updateSource = 11;
int32 updatedBy = 12;
}
message GetMealByIdRpcRequest {
int32 id = 1;
int32 enterpriseId = 2;
bool includeDeleted = 3;
}
message GetMealByIdRpcResponse {
SingleMealRpcResponse response = 1;
}
message GetMealsByIdsRpcRequest {
repeated int32 ids = 1;
int32 enterpriseId = 2;
bool includeDeleted = 3;
}
message GetMealsByIdsRpcResponse {
repeated SingleMealRpcResponse responses = 1;
}
message GetAllMealsRpcRequest {
int32 enterpriseId = 1;
bool includeDeleted = 2;
}
message GetAllMealsRpcResponse {
repeated SingleMealRpcResponse responses = 1;
}
message GetMealsByConditionRpcRequest {
int32 enterpriseId = 1;
bool shouldFilterName = 2;
string name = 3;
bool shouldFilterAllowCreateOrder = 4;
bool allowCreateOrder = 5;
bool shouldFilterStatus = 6;
MealStatus status = 7;
bool includeDeleted = 8;
}
message GetMealsByConditionRpcResponse {
repeated SingleMealRpcResponse responses = 1;
}
message MealCreation{
string name = 1;
bool allowCreateOrder = 2;
MealStatus status = 3;
}
message CreateMealRpcRequest {
MealCreation creation = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message CreateMealRpcResponse {
int32 id = 1;
bool isCreated = 2;
}
message BatchCreateMealsRpcRequest {
repeated MealCreation creations = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message BatchCreateMealsRpcResponse {
repeated int32 ids = 1;
bool isCreated = 2;
}
message MealModification {
int32 id = 1;
bool shouldUpdateName = 2;
string name = 3;
bool shouldUpdateAllowCreateOrder = 4;
bool allowCreateOrder = 5;
bool shouldUpdateStatus = 6;
MealStatus status = 7;
}
message UpdateMealRpcRequest {
MealModification modification = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message UpdateMealRpcResponse {
bool isUpdated = 1;
}
message BatchUpdateMealsRpcRequest {
repeated MealModification modifications = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message BatchUpdateMealsRpcResponse {
bool isUpdated = 1;
}
message DeleteMealsByIdsRpcRequest {
repeated int32 ids = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message DeleteMealsRpcResponse {
bool isDeleted = 1;
}
message SingleOperatorDefaultMealRefRpcResponse {
int32 id = 1;
int32 enterpriseId = 2;
int32 operator = 3;
int32 mealId = 4;
int64 createdAt = 5;
int32 creationSource = 6;
int32 createdBy = 7;
int64 updatedAt = 8;
int32 updateSource = 9;
int32 updatedBy = 10;
}
message GetOperatorDefaultMealRefByIdRpcRequest {
int32 id = 1;
int32 enterpriseId = 2;
}
message GetOperatorDefaultMealRefByIdRpcResponse {
SingleOperatorDefaultMealRefRpcResponse response = 1;
}
message GetOperatorDefaultMealRefsByIdsRpcRequest {
repeated int32 ids = 1;
int32 enterpriseId = 2;
}
message GetOperatorDefaultMealRefsByIdsRpcResponse {
repeated SingleOperatorDefaultMealRefRpcResponse responses = 1;
}
message GetAllOperatorDefaultMealRefsRpcRequest {
int32 enterpriseId = 1;
}
message GetAllOperatorDefaultMealRefsRpcResponse {
repeated SingleOperatorDefaultMealRefRpcResponse responses = 1;
}
message GetOperatorDefaultMealRefsByConditionRpcRequest {
int32 enterpriseId = 1;
bool shouldFilterOperator = 2;
int32 operator = 3;
bool shouldFilterMealIds = 4;
repeated int32 mealIds = 5;
bool includeDeleted = 6;
}
message GetOperatorDefaultMealRefsByConditionRpcResponse {
repeated SingleOperatorDefaultMealRefRpcResponse responses = 1;
}
message OperatorDefaultMealRefCreation{
int32 operator = 1;
int32 mealId = 2;
}
message CreateOperatorDefaultMealRefRpcRequest {
OperatorDefaultMealRefCreation creation = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message CreateOperatorDefaultMealRefRpcResponse {
int32 id = 1;
bool isCreated = 2;
}
message BatchCreateOperatorDefaultMealRefsRpcRequest {
repeated OperatorDefaultMealRefCreation creations = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message BatchCreateOperatorDefaultMealRefsRpcResponse {
repeated int32 ids = 1;
bool isCreated = 2;
}
message OperatorDefaultMealRefModification {
int32 id = 1;
bool shouldUpdateOperator = 2;
int32 operator = 3;
bool shouldUpdateMealId = 4;
int32 mealId = 5;
}
message UpdateOperatorDefaultMealRefRpcRequest {
OperatorDefaultMealRefModification modification = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message UpdateOperatorDefaultMealRefRpcResponse {
bool isUpdated = 1;
}
message BatchUpdateOperatorDefaultMealRefsRpcRequest {
repeated OperatorDefaultMealRefModification modifications = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message BatchUpdateOperatorDefaultMealRefsRpcResponse {
bool isUpdated = 1;
}
message DeleteOperatorDefaultMealRefsByIdsRpcRequest {
repeated int32 ids = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message DeleteOperatorDefaultMealRefsRpcResponse {
bool isDeleted = 1;
}
message SingleSetMealOrderingRuleRpcResponse {
int32 id = 1;
int32 enterpriseId = 2;
int32 clientId = 3;
int32 stallId = 4;
int32 mealId = 5;
int32 skuId = 6;
int32 number = 7;
bool allowOwnCreateOrder = 8;
int64 createdAt = 9;
int32 creationSource = 10;
int32 createdBy = 11;
int64 updatedAt = 12;
int32 updateSource = 13;
int32 updatedBy = 14;
bool isDeleted = 15;
}
message GetSetMealOrderingRuleByIdRpcRequest {
int32 id = 1;
int32 enterpriseId = 2;
bool includeDeleted = 3;
}
message GetSetMealOrderingRuleByIdRpcResponse {
SingleSetMealOrderingRuleRpcResponse response = 1;
}
message GetSetMealOrderingRulesByIdsRpcRequest {
repeated int32 ids = 1;
int32 enterpriseId = 2;
bool includeDeleted = 3;
}
message GetSetMealOrderingRulesByIdsRpcResponse {
repeated SingleSetMealOrderingRuleRpcResponse responses = 1;
}
message GetAllSetMealOrderingRulesRpcRequest {
int32 enterpriseId = 1;
bool includeDeleted = 2;
}
message GetAllSetMealOrderingRulesRpcResponse {
repeated SingleSetMealOrderingRuleRpcResponse responses = 1;
}
message GetSetMealOrderingRulesByConditionRpcRequest {
int32 enterpriseId = 1;
bool shouldFilterClientIds = 2;
repeated int32 clientIds = 3;
bool shouldFilterStallIds = 4;
repeated int32 stallIds = 5;
bool shouldFilterMealIds = 6;
repeated int32 mealIds = 7;
bool shouldFilterSkuIds = 8;
repeated int32 skuIds = 9;
bool shouldFilterAllowOwnCreateOrder = 10;
bool allowOwnCreateOrder = 11;
bool includeDeleted = 12;
}
message GetSetMealOrderingRulesByConditionRpcResponse {
repeated SingleSetMealOrderingRuleRpcResponse responses = 1;
}
message SetMealOrderingRuleCreation{
int32 clientId = 1;
int32 stallId = 2;
int32 mealId = 3;
int32 skuId = 4;
int32 number = 5;
bool allowOwnCreateOrder = 6;
}
message CreateSetMealOrderingRuleRpcRequest {
SetMealOrderingRuleCreation creation = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message CreateSetMealOrderingRuleRpcResponse {
int32 id = 1;
bool isCreated = 2;
}
message BatchCreateSetMealOrderingRulesRpcRequest {
repeated SetMealOrderingRuleCreation creations = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message BatchCreateSetMealOrderingRulesRpcResponse {
repeated int32 ids = 1;
bool isCreated = 2;
}
message SetMealOrderingRuleModification {
int32 id = 1;
bool shouldUpdateClientId = 2;
int32 clientId = 3;
bool shouldUpdateStallId = 4;
int32 stallId = 5;
bool shouldUpdateMealId = 6;
int32 mealId = 7;
bool shouldUpdateSkuId = 8;
int32 skuId = 9;
bool shouldUpdateNumber = 10;
int32 number = 11;
bool shouldUpdateAllowOwnCreateOrder = 12;
bool allowOwnCreateOrder = 13;
}
message UpdateSetMealOrderingRuleRpcRequest {
SetMealOrderingRuleModification modification = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message UpdateSetMealOrderingRuleRpcResponse {
bool isUpdated = 1;
}
message BatchUpdateSetMealOrderingRulesRpcRequest {
repeated SetMealOrderingRuleModification modifications = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message BatchUpdateSetMealOrderingRulesRpcResponse {
bool isUpdated = 1;
}
message DeleteSetMealOrderingRulesByIdsRpcRequest {
repeated int32 ids = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message DeleteSetMealOrderingRulesRpcResponse {
bool isDeleted = 1;
}
message SingleSetMealScheduleRpcResponse {
int32 id = 1;
int32 enterpriseId = 2;
int64 startAt = 3;
int64 endAt = 4;
int32 skuId = 5;
int64 createdAt = 6;
int32 creationSource = 7;
int32 createdBy = 8;
int64 updatedAt = 9;
int32 updateSource = 10;
int32 updatedBy = 11;
bool isDeleted = 12;
}
message GetSetMealScheduleByIdRpcRequest {
int32 id = 1;
int32 enterpriseId = 2;
bool includeDeleted = 3;
}
message GetSetMealScheduleByIdRpcResponse {
SingleSetMealScheduleRpcResponse response = 1;
}
message GetSetMealSchedulesByIdsRpcRequest {
repeated int32 ids = 1;
int32 enterpriseId = 2;
bool includeDeleted = 3;
}
message GetSetMealSchedulesByIdsRpcResponse {
repeated SingleSetMealScheduleRpcResponse responses = 1;
}
message GetAllSetMealSchedulesRpcRequest {
int32 enterpriseId = 1;
bool includeDeleted = 2;
}
message GetAllSetMealSchedulesRpcResponse {
repeated SingleSetMealScheduleRpcResponse responses = 1;
}
message GetSetMealSchedulesByConditionRpcRequest {
int32 enterpriseId = 1;
bool shouldFilterStartAt = 2;
int64 startAt = 3;
bool shouldFilterEndAt = 4;
int64 endAt= 5;
bool shouldFilterSkuIds = 6;
repeated int32 skuIds = 7;
bool includeDeleted = 8;
}
message GetSetMealSchedulesByConditionRpcResponse {
repeated SingleSetMealScheduleRpcResponse responses = 1;
}
message SetMealScheduleCreation{
int64 startAt = 1;
int64 endAt = 2;
int32 skuId = 3;
}
message CreateSetMealScheduleRpcRequest {
SetMealScheduleCreation creation = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message CreateSetMealScheduleRpcResponse {
int32 id = 1;
bool isCreated = 2;
}
message BatchCreateSetMealSchedulesRpcRequest {
repeated SetMealScheduleCreation creations = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message BatchCreateSetMealSchedulesRpcResponse {
repeated int32 ids = 1;
bool isCreated = 2;
}
message SetMealScheduleModification {
int32 id = 1;
bool shouldUpdateStartAt = 2;
int64 startAt = 3;
bool shouldUpdateEndAt = 4;
int64 endAt = 5;
bool shouldUpdateSkuId = 6;
int32 skuId = 7;
}
message UpdateSetMealScheduleRpcRequest {
SetMealScheduleModification modification = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message UpdateSetMealScheduleRpcResponse {
bool isUpdated = 1;
}
message BatchUpdateSetMealSchedulesRpcRequest {
repeated SetMealScheduleModification modifications = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message BatchUpdateSetMealSchedulesRpcResponse {
bool isUpdated = 1;
}
message DeleteSetMealSchedulesByIdsRpcRequest {
repeated int32 ids = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message DeleteSetMealSchedulesRpcResponse {
bool isDeleted = 1;
}
message SingleSetMealItemScheduleRpcResponse {
int32 id = 1;
int32 enterpriseId = 2;
int32 scheduleId = 3;
int32 bomSkuId = 4;
int32 parentSkuId = 5;
int32 skuId = 6;
int32 quantity = 7;
int64 createdAt = 8;
int32 creationSource = 9;
int32 createdBy = 10;
int64 updatedAt = 11;
int32 updateSource = 12;
int32 updatedBy = 13;
bool isDeleted = 14;
}
message GetSetMealItemScheduleByIdRpcRequest {
int32 id = 1;
int32 enterpriseId = 2;
bool includeDeleted = 3;
}
message GetSetMealItemScheduleByIdRpcResponse {
SingleSetMealItemScheduleRpcResponse response = 1;
}
message GetSetMealItemSchedulesByIdsRpcRequest {
repeated int32 ids = 1;
int32 enterpriseId = 2;
bool includeDeleted = 3;
}
message GetSetMealItemSchedulesByIdsRpcResponse {
repeated SingleSetMealItemScheduleRpcResponse responses = 1;
}
message GetAllSetMealItemSchedulesRpcRequest {
int32 enterpriseId = 1;
bool includeDeleted = 2;
}
message GetAllSetMealItemSchedulesRpcResponse {
repeated SingleSetMealItemScheduleRpcResponse responses = 1;
}
message GetSetMealItemSchedulesByConditionRpcRequest {
int32 enterpriseId = 1;
bool shouldFilterScheduleIds = 2;
repeated int32 scheduleIds = 3;
bool shouldFilterBomSkuIds = 4;
repeated int32 bomSkuIds = 5;
bool shouldFilterParentSkuIds = 6;
repeated int32 parentSkuIds = 7;
bool shouldFilterSkuIds = 8;
repeated int32 skuIds = 9;
bool shouldFilterQuantity = 10;
int32 quantity = 11;
bool includeDeleted = 12;
}
message GetSetMealItemSchedulesByConditionRpcResponse {
repeated SingleSetMealItemScheduleRpcResponse responses = 1;
}
message SetMealItemScheduleCreation{
int32 scheduleId = 1;
int32 bomSkuId = 2;
int32 parentSkuId = 3;
int32 skuId = 4;
int32 quantity = 5;
}
message CreateSetMealItemScheduleRpcRequest {
SetMealItemScheduleCreation creation = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message CreateSetMealItemScheduleRpcResponse {
int32 id = 1;
bool isCreated = 2;
}
message BatchCreateSetMealItemSchedulesRpcRequest {
repeated SetMealItemScheduleCreation creations = 1;
int32 enterpriseId = 2;
int32 createdBy = 3;
int32 creationSource = 4;
}
message BatchCreateSetMealItemSchedulesRpcResponse {
repeated int32 ids = 1;
bool isCreated = 2;
}
message SetMealItemScheduleModification {
int32 id = 1;
bool shouldUpdateScheduleId = 2;
int32 scheduleId = 3;
bool shouldUpdateBomSkuId = 4;
int32 bomSkuId = 5;
bool shouldUpdateParentSkuId = 6;
int32 parentSkuId = 7;
bool shouldUpdateSkuId = 8;
int32 skuId = 9;
bool shouldUpdateQuantity = 10;
int32 quantity = 11;
}
message UpdateSetMealItemScheduleRpcRequest {
SetMealItemScheduleModification modification = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message UpdateSetMealItemScheduleRpcResponse {
bool isUpdated = 1;
}
message BatchUpdateSetMealItemSchedulesRpcRequest {
repeated SetMealItemScheduleModification modifications = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message BatchUpdateSetMealItemSchedulesRpcResponse {
bool isUpdated = 1;
}
message DeleteSetMealItemSchedulesByIdsRpcRequest {
repeated int32 ids = 1;
int32 enterpriseId = 2;
int32 updatedBy = 3;
int32 updateSource = 4;
}
message DeleteSetMealItemSchedulesRpcResponse {
bool isDeleted = 1;
}
message SaveSetMealScheduleAndItemSchedulesRpcRequest {
repeated SaveSetMealScheduleAndItemSchedules scheduleAndItemScheduleCreations = 1;//新增排菜和排菜明细
repeated SetMealItemScheduleCreation itemScheduleCreations = 2; //只新增排菜明细
repeated SetMealItemScheduleModification itemScheduleModifications = 3;//只修改排菜明细
repeated int32 deleteScheduleIds = 4;//删除排菜
repeated int32 deleteItemScheduleIds = 5;//删除排菜明细
int32 enterpriseId = 6;
int32 operator = 7;
int32 source = 8;
}
message SaveSetMealScheduleAndItemSchedules {
SetMealScheduleCreation scheduleCreation = 1;
repeated SetMealItemScheduleCreation itemCreations = 2;
}
message SaveSetMealScheduleAndItemSchedulesRpcResponse {
bool isSaved = 1;
repeated int32 scheduleIds = 2;
}