-
Notifications
You must be signed in to change notification settings - Fork 3
/
teaching.pb.go
4413 lines (3948 loc) · 168 KB
/
teaching.pb.go
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
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc (unknown)
// source: campusapis/teaching/v1/teaching.proto
package teachingv1
import (
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
schoolTime "github.com/hduhelp/api_open_sdk/campusapis/schoolTime"
staff "github.com/hduhelp/api_open_sdk/campusapis/staff"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// GetScheduleRequest 根据参数和预设优先级拼装查询日期
// 优先级:
// 1. 若含 时间戳: 根据时间戳查询,并标记时间戳所在周(研究生暂未支持)
// 2. 若含 学年、学期、周次:返回整个学期课表,并标记指定周(研究生暂未支持)
// 3. 若含 学年、学期: 返回整个学期课表
// 都不命中:返回当前时间所在周的课表,并标记当前周(研究生暂未支持)
type GetScheduleRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 学期
Semester string `protobuf:"bytes,1,opt,name=semester,proto3" json:"semester,omitempty"`
// 学年 支持多种格式 如:2019-2020 2019
SchoolYear string `protobuf:"bytes,2,opt,name=schoolYear,proto3" json:"schoolYear,omitempty"`
// 时间戳
Timestamp int32 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// 周次
Week int32 `protobuf:"varint,4,opt,name=week,proto3" json:"week,omitempty"`
// 星期几
Weekday int32 `protobuf:"varint,5,opt,name=weekday,proto3" json:"weekday,omitempty"`
}
func (x *GetScheduleRequest) Reset() {
*x = GetScheduleRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetScheduleRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetScheduleRequest) ProtoMessage() {}
func (x *GetScheduleRequest) ProtoReflect() protoreflect.Message {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetScheduleRequest.ProtoReflect.Descriptor instead.
func (*GetScheduleRequest) Descriptor() ([]byte, []int) {
return file_campusapis_teaching_v1_teaching_proto_rawDescGZIP(), []int{0}
}
func (x *GetScheduleRequest) GetSemester() string {
if x != nil {
return x.Semester
}
return ""
}
func (x *GetScheduleRequest) GetSchoolYear() string {
if x != nil {
return x.SchoolYear
}
return ""
}
func (x *GetScheduleRequest) GetTimestamp() int32 {
if x != nil {
return x.Timestamp
}
return 0
}
func (x *GetScheduleRequest) GetWeek() int32 {
if x != nil {
return x.Week
}
return 0
}
func (x *GetScheduleRequest) GetWeekday() int32 {
if x != nil {
return x.Weekday
}
return 0
}
// GetScheduleResponse 课表列表返回体
type GetScheduleResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Data []*ScheduleResponseCourse `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
}
func (x *GetScheduleResponse) Reset() {
*x = GetScheduleResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetScheduleResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetScheduleResponse) ProtoMessage() {}
func (x *GetScheduleResponse) ProtoReflect() protoreflect.Message {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetScheduleResponse.ProtoReflect.Descriptor instead.
func (*GetScheduleResponse) Descriptor() ([]byte, []int) {
return file_campusapis_teaching_v1_teaching_proto_rawDescGZIP(), []int{1}
}
func (x *GetScheduleResponse) GetError() int32 {
if x != nil {
return x.Error
}
return 0
}
func (x *GetScheduleResponse) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
func (x *GetScheduleResponse) GetData() []*ScheduleResponseCourse {
if x != nil {
return x.Data
}
return nil
}
// ScheduleResponseCourse 单课程返回体(如高等数学课)
type ScheduleResponseCourse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 课程内部ID
ClassID string `protobuf:"bytes,1,opt,name=ClassID,proto3" json:"ClassID,omitempty"`
// 选课号
ClassName string `protobuf:"bytes,2,opt,name=ClassName,proto3" json:"ClassName,omitempty"`
// 上课时间中文,如: 星期一第6-7节{1-2周};星期一第6-7节{3-17周}
ClassTime string `protobuf:"bytes,3,opt,name=ClassTime,proto3" json:"ClassTime,omitempty"`
// 课程代码
CourseID string `protobuf:"bytes,4,opt,name=CourseID,proto3" json:"CourseID,omitempty"`
// 课程中文名
CourseName string `protobuf:"bytes,5,opt,name=CourseName,proto3" json:"CourseName,omitempty"`
// 学分
Credit string `protobuf:"bytes,6,opt,name=Credit,proto3" json:"Credit,omitempty"`
// 此课程排课列表
Schedule []*ScheduleResponseCourse_ScheduleInfo `protobuf:"bytes,7,rep,name=Schedule,proto3" json:"Schedule,omitempty"`
// 学年
SchoolYear string `protobuf:"bytes,8,opt,name=SchoolYear,proto3" json:"SchoolYear,omitempty"`
// 学期
Semester int32 `protobuf:"varint,9,opt,name=Semester,proto3" json:"Semester,omitempty"`
}
func (x *ScheduleResponseCourse) Reset() {
*x = ScheduleResponseCourse{}
if protoimpl.UnsafeEnabled {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ScheduleResponseCourse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ScheduleResponseCourse) ProtoMessage() {}
func (x *ScheduleResponseCourse) ProtoReflect() protoreflect.Message {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ScheduleResponseCourse.ProtoReflect.Descriptor instead.
func (*ScheduleResponseCourse) Descriptor() ([]byte, []int) {
return file_campusapis_teaching_v1_teaching_proto_rawDescGZIP(), []int{2}
}
func (x *ScheduleResponseCourse) GetClassID() string {
if x != nil {
return x.ClassID
}
return ""
}
func (x *ScheduleResponseCourse) GetClassName() string {
if x != nil {
return x.ClassName
}
return ""
}
func (x *ScheduleResponseCourse) GetClassTime() string {
if x != nil {
return x.ClassTime
}
return ""
}
func (x *ScheduleResponseCourse) GetCourseID() string {
if x != nil {
return x.CourseID
}
return ""
}
func (x *ScheduleResponseCourse) GetCourseName() string {
if x != nil {
return x.CourseName
}
return ""
}
func (x *ScheduleResponseCourse) GetCredit() string {
if x != nil {
return x.Credit
}
return ""
}
func (x *ScheduleResponseCourse) GetSchedule() []*ScheduleResponseCourse_ScheduleInfo {
if x != nil {
return x.Schedule
}
return nil
}
func (x *ScheduleResponseCourse) GetSchoolYear() string {
if x != nil {
return x.SchoolYear
}
return ""
}
func (x *ScheduleResponseCourse) GetSemester() int32 {
if x != nil {
return x.Semester
}
return 0
}
// 课程列表
type Courses struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 课程 map, ClassID -> 课程信息
Items map[string]*CourseItem `protobuf:"bytes,1,rep,name=Items,proto3" json:"Items,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *Courses) Reset() {
*x = Courses{}
if protoimpl.UnsafeEnabled {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Courses) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Courses) ProtoMessage() {}
func (x *Courses) ProtoReflect() protoreflect.Message {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Courses.ProtoReflect.Descriptor instead.
func (*Courses) Descriptor() ([]byte, []int) {
return file_campusapis_teaching_v1_teaching_proto_rawDescGZIP(), []int{3}
}
func (x *Courses) GetItems() map[string]*CourseItem {
if x != nil {
return x.Items
}
return nil
}
// 课程信息
type CourseItem struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 课程内部ID
ClassID string `protobuf:"bytes,1,opt,name=ClassID,proto3" json:"ClassID,omitempty"`
// 选课号
ClassName string `protobuf:"bytes,2,opt,name=ClassName,proto3" json:"ClassName,omitempty"`
// 课程代码
CourseID string `protobuf:"bytes,3,opt,name=CourseID,proto3" json:"CourseID,omitempty"`
// 课程中文名
CourseName string `protobuf:"bytes,4,opt,name=CourseName,proto3" json:"CourseName,omitempty"`
// 上课时间中文,如: 星期一第6-7节{1-2周};星期一第6-7节{3-17周}
ClassTime string `protobuf:"bytes,5,opt,name=ClassTime,proto3" json:"ClassTime,omitempty"`
// 学分
Credit string `protobuf:"bytes,6,opt,name=Credit,proto3" json:"Credit,omitempty"`
// 学年
SchoolYear *schoolTime.SchoolYear `protobuf:"bytes,7,opt,name=SchoolYear,proto3" json:"SchoolYear,omitempty"`
// 学期
Semester *schoolTime.Semester `protobuf:"bytes,8,opt,name=Semester,proto3" json:"Semester,omitempty"`
// 排课详情
Schedule *Schedule `protobuf:"bytes,9,opt,name=Schedule,proto3" json:"Schedule,omitempty"`
}
func (x *CourseItem) Reset() {
*x = CourseItem{}
if protoimpl.UnsafeEnabled {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CourseItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CourseItem) ProtoMessage() {}
func (x *CourseItem) ProtoReflect() protoreflect.Message {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CourseItem.ProtoReflect.Descriptor instead.
func (*CourseItem) Descriptor() ([]byte, []int) {
return file_campusapis_teaching_v1_teaching_proto_rawDescGZIP(), []int{4}
}
func (x *CourseItem) GetClassID() string {
if x != nil {
return x.ClassID
}
return ""
}
func (x *CourseItem) GetClassName() string {
if x != nil {
return x.ClassName
}
return ""
}
func (x *CourseItem) GetCourseID() string {
if x != nil {
return x.CourseID
}
return ""
}
func (x *CourseItem) GetCourseName() string {
if x != nil {
return x.CourseName
}
return ""
}
func (x *CourseItem) GetClassTime() string {
if x != nil {
return x.ClassTime
}
return ""
}
func (x *CourseItem) GetCredit() string {
if x != nil {
return x.Credit
}
return ""
}
func (x *CourseItem) GetSchoolYear() *schoolTime.SchoolYear {
if x != nil {
return x.SchoolYear
}
return nil
}
func (x *CourseItem) GetSemester() *schoolTime.Semester {
if x != nil {
return x.Semester
}
return nil
}
func (x *CourseItem) GetSchedule() *Schedule {
if x != nil {
return x.Schedule
}
return nil
}
// 排课列表详情
type Schedule struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 排课 map, 排课ID -> 排课信息
Items map[string]*ScheduleItem `protobuf:"bytes,1,rep,name=Items,proto3" json:"Items,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *Schedule) Reset() {
*x = Schedule{}
if protoimpl.UnsafeEnabled {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Schedule) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Schedule) ProtoMessage() {}
func (x *Schedule) ProtoReflect() protoreflect.Message {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Schedule.ProtoReflect.Descriptor instead.
func (*Schedule) Descriptor() ([]byte, []int) {
return file_campusapis_teaching_v1_teaching_proto_rawDescGZIP(), []int{5}
}
func (x *Schedule) GetItems() map[string]*ScheduleItem {
if x != nil {
return x.Items
}
return nil
}
// 排课信息
type ScheduleItem struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 周次列表
Week []int32 `protobuf:"varint,1,rep,packed,name=Week,proto3" json:"Week,omitempty"`
// 星期
WeekDay int32 `protobuf:"varint,2,opt,name=WeekDay,proto3" json:"WeekDay,omitempty"`
// 节次列表,升序
Section []int32 `protobuf:"varint,3,rep,packed,name=Section,proto3" json:"Section,omitempty"`
// 是否本周
IsThisWeek bool `protobuf:"varint,4,opt,name=IsThisWeek,proto3" json:"IsThisWeek,omitempty"`
// 上课时间
StartTime int64 `protobuf:"varint,5,opt,name=StartTime,proto3" json:"StartTime,omitempty"`
// 下课时间
EndTime int64 `protobuf:"varint,6,opt,name=EndTime,proto3" json:"EndTime,omitempty"`
// 老师列表
Teachers *staff.InfoMapList `protobuf:"bytes,7,opt,name=Teachers,proto3" json:"Teachers,omitempty"`
// 学生列表
Students *staff.InfoMapList `protobuf:"bytes,8,opt,name=Students,proto3" json:"Students,omitempty"`
// 上课地点
Location string `protobuf:"bytes,9,opt,name=Location,proto3" json:"Location,omitempty"`
// 教室座位数
SeatsNum int32 `protobuf:"varint,10,opt,name=SeatsNum,proto3" json:"SeatsNum,omitempty"`
// 备注
Commit string `protobuf:"bytes,11,opt,name=Commit,proto3" json:"Commit,omitempty"`
}
func (x *ScheduleItem) Reset() {
*x = ScheduleItem{}
if protoimpl.UnsafeEnabled {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ScheduleItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ScheduleItem) ProtoMessage() {}
func (x *ScheduleItem) ProtoReflect() protoreflect.Message {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ScheduleItem.ProtoReflect.Descriptor instead.
func (*ScheduleItem) Descriptor() ([]byte, []int) {
return file_campusapis_teaching_v1_teaching_proto_rawDescGZIP(), []int{6}
}
func (x *ScheduleItem) GetWeek() []int32 {
if x != nil {
return x.Week
}
return nil
}
func (x *ScheduleItem) GetWeekDay() int32 {
if x != nil {
return x.WeekDay
}
return 0
}
func (x *ScheduleItem) GetSection() []int32 {
if x != nil {
return x.Section
}
return nil
}
func (x *ScheduleItem) GetIsThisWeek() bool {
if x != nil {
return x.IsThisWeek
}
return false
}
func (x *ScheduleItem) GetStartTime() int64 {
if x != nil {
return x.StartTime
}
return 0
}
func (x *ScheduleItem) GetEndTime() int64 {
if x != nil {
return x.EndTime
}
return 0
}
func (x *ScheduleItem) GetTeachers() *staff.InfoMapList {
if x != nil {
return x.Teachers
}
return nil
}
func (x *ScheduleItem) GetStudents() *staff.InfoMapList {
if x != nil {
return x.Students
}
return nil
}
func (x *ScheduleItem) GetLocation() string {
if x != nil {
return x.Location
}
return ""
}
func (x *ScheduleItem) GetSeatsNum() int32 {
if x != nil {
return x.SeatsNum
}
return 0
}
func (x *ScheduleItem) GetCommit() string {
if x != nil {
return x.Commit
}
return ""
}
// 人员信息
type StaffInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 学工号
StaffID string `protobuf:"bytes,1,opt,name=StaffID,proto3" json:"StaffID,omitempty"`
// 姓名
StaffName string `protobuf:"bytes,2,opt,name=StaffName,proto3" json:"StaffName,omitempty"`
// 备注
// todo 有空改成 Comment?
Commit string `protobuf:"bytes,3,opt,name=Commit,proto3" json:"Commit,omitempty"`
}
func (x *StaffInfo) Reset() {
*x = StaffInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StaffInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StaffInfo) ProtoMessage() {}
func (x *StaffInfo) ProtoReflect() protoreflect.Message {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StaffInfo.ProtoReflect.Descriptor instead.
func (*StaffInfo) Descriptor() ([]byte, []int) {
return file_campusapis_teaching_v1_teaching_proto_rawDescGZIP(), []int{7}
}
func (x *StaffInfo) GetStaffID() string {
if x != nil {
return x.StaffID
}
return ""
}
func (x *StaffInfo) GetStaffName() string {
if x != nil {
return x.StaffName
}
return ""
}
func (x *StaffInfo) GetCommit() string {
if x != nil {
return x.Commit
}
return ""
}
// GetScheduleNowResponse 今天,明天课表信息返回体
type GetScheduleNowResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Data *GetScheduleNowResponse_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}
func (x *GetScheduleNowResponse) Reset() {
*x = GetScheduleNowResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetScheduleNowResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetScheduleNowResponse) ProtoMessage() {}
func (x *GetScheduleNowResponse) ProtoReflect() protoreflect.Message {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetScheduleNowResponse.ProtoReflect.Descriptor instead.
func (*GetScheduleNowResponse) Descriptor() ([]byte, []int) {
return file_campusapis_teaching_v1_teaching_proto_rawDescGZIP(), []int{8}
}
func (x *GetScheduleNowResponse) GetError() int32 {
if x != nil {
return x.Error
}
return 0
}
func (x *GetScheduleNowResponse) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
func (x *GetScheduleNowResponse) GetData() *GetScheduleNowResponse_Data {
if x != nil {
return x.Data
}
return nil
}
// GetScheduleNowV2Response 今天,明天课表信息返回体
type GetScheduleNowV2Response struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Data *GetScheduleNowV2Response_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}
func (x *GetScheduleNowV2Response) Reset() {
*x = GetScheduleNowV2Response{}
if protoimpl.UnsafeEnabled {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetScheduleNowV2Response) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetScheduleNowV2Response) ProtoMessage() {}
func (x *GetScheduleNowV2Response) ProtoReflect() protoreflect.Message {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetScheduleNowV2Response.ProtoReflect.Descriptor instead.
func (*GetScheduleNowV2Response) Descriptor() ([]byte, []int) {
return file_campusapis_teaching_v1_teaching_proto_rawDescGZIP(), []int{9}
}
func (x *GetScheduleNowV2Response) GetError() int32 {
if x != nil {
return x.Error
}
return 0
}
func (x *GetScheduleNowV2Response) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
func (x *GetScheduleNowV2Response) GetData() *GetScheduleNowV2Response_Data {
if x != nil {
return x.Data
}
return nil
}
// GetGlobalScheduleRequest 全局课表请求体
type GetGlobalScheduleRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 周次
Week int32 `protobuf:"varint,1,opt,name=week,proto3" json:"week,omitempty"`
// 星期
Weekday int32 `protobuf:"varint,2,opt,name=weekday,proto3" json:"weekday,omitempty"`
}
func (x *GetGlobalScheduleRequest) Reset() {
*x = GetGlobalScheduleRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetGlobalScheduleRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetGlobalScheduleRequest) ProtoMessage() {}
func (x *GetGlobalScheduleRequest) ProtoReflect() protoreflect.Message {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetGlobalScheduleRequest.ProtoReflect.Descriptor instead.
func (*GetGlobalScheduleRequest) Descriptor() ([]byte, []int) {
return file_campusapis_teaching_v1_teaching_proto_rawDescGZIP(), []int{10}
}
func (x *GetGlobalScheduleRequest) GetWeek() int32 {
if x != nil {
return x.Week
}
return 0
}
func (x *GetGlobalScheduleRequest) GetWeekday() int32 {
if x != nil {
return x.Weekday
}
return 0
}
// GetGlobalScheduleResponse 全局课表返回体
type GetGlobalScheduleResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Data []*GlobalSchedule `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
}
func (x *GetGlobalScheduleResponse) Reset() {
*x = GetGlobalScheduleResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetGlobalScheduleResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetGlobalScheduleResponse) ProtoMessage() {}
func (x *GetGlobalScheduleResponse) ProtoReflect() protoreflect.Message {
mi := &file_campusapis_teaching_v1_teaching_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetGlobalScheduleResponse.ProtoReflect.Descriptor instead.
func (*GetGlobalScheduleResponse) Descriptor() ([]byte, []int) {
return file_campusapis_teaching_v1_teaching_proto_rawDescGZIP(), []int{11}
}
func (x *GetGlobalScheduleResponse) GetError() int32 {
if x != nil {
return x.Error
}
return 0
}
func (x *GetGlobalScheduleResponse) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
func (x *GetGlobalScheduleResponse) GetData() []*GlobalSchedule {
if x != nil {
return x.Data
}
return nil
}
type GlobalSchedule struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 学号
StaffId string `protobuf:"bytes,1,opt,name=staff_id,json=staffId,proto3" json:"staff_id,omitempty"`
// 姓名
StaffName string `protobuf:"bytes,2,opt,name=staff_name,json=staffName,proto3" json:"staff_name,omitempty"`
// 节次数组, 升序
Sections []int32 `protobuf:"varint,3,rep,packed,name=sections,proto3" json:"sections,omitempty"`
// 周次数组, 升序
Weeks []int32 `protobuf:"varint,4,rep,packed,name=weeks,proto3" json:"weeks,omitempty"`
// 课程名
CourseName string `protobuf:"bytes,5,opt,name=course_name,json=courseName,proto3" json:"course_name,omitempty"`
// 教室
Classroom string `protobuf:"bytes,6,opt,name=classroom,proto3" json:"classroom,omitempty"`
// 老师
TeacherId string `protobuf:"bytes,7,opt,name=teacher_id,json=teacherId,proto3" json:"teacher_id,omitempty"`
// 老师姓名
TeacherName string `protobuf:"bytes,8,opt,name=teacher_name,json=teacherName,proto3" json:"teacher_name,omitempty"`
// 周几