From f91fb52702a92bb0a335e03ddb49b992de6e129b Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 1 Sep 2025 16:36:28 +0800 Subject: [PATCH 1/7] refactor(academic): update course hash logics --- internal/academic/service/get_scores.go | 2 +- pkg/utils/jwch.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/academic/service/get_scores.go b/internal/academic/service/get_scores.go index ae1bebd9..952a9e32 100644 --- a/internal/academic/service/get_scores.go +++ b/internal/academic/service/get_scores.go @@ -167,7 +167,7 @@ func (s *AcademicService) handleScoreChange(stuID string, scores []*jwch.Mark) ( if scores[i].Score != oldScores[i].Score { // 尝试获取课程信息 courseHash := utils.GenerateCourseHash(scores[i].Name, scores[i].Semester, scores[i].Teacher, - scores[i].ElectiveType) + scores[i].ElectiveType, scores[i].Classroom) existingCourse, err := s.db.Academic.GetCourseByHash(s.ctx, courseHash) if err != nil { return err diff --git a/pkg/utils/jwch.go b/pkg/utils/jwch.go index 1d2fa987..27494b3b 100644 --- a/pkg/utils/jwch.go +++ b/pkg/utils/jwch.go @@ -54,7 +54,7 @@ func ParseJwchStuId(id string) string { } // GenerateCourseHash 生成课程的唯一哈希 -func GenerateCourseHash(name, term, teacher, electiveType string) string { - input := strings.Join([]string{name, term, teacher, electiveType}, "|") +func GenerateCourseHash(name, term, teacher, electiveType, classroom string) string { + input := strings.Join([]string{name, term, teacher, electiveType, classroom}, "|") return SHA256(input) } From 1a08ae67bba09eeb42c3f5a4d55783e02edbd3d8 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 1 Sep 2025 16:36:34 +0800 Subject: [PATCH 2/7] refactor: include classroom in get scores api response --- api/model/api/api.go | 501 +----------------- api/model/model/model.go | 189 ++----- api/pack/academic.go | 1 + api/router/api/api.go | 1 - cmd/academic/build.sh | 12 + cmd/academic/handler.go | 39 ++ cmd/academic/script/bootstrap.sh | 21 + idl/model.thrift | 1 + internal/academic/pack/score.go | 2 + internal/academic/service/get_scores.go | 1 + kitex_gen/academic/academic.go | 17 - .../academicservice/academicservice.go | 18 - kitex_gen/academic/academicservice/client.go | 18 - kitex_gen/academic/academicservice/server.go | 17 - kitex_gen/academic/k-academic.go | 16 - kitex_gen/academic/k-consts.go | 16 - kitex_gen/model/k-consts.go | 16 - kitex_gen/model/k-model.go | 67 ++- kitex_gen/model/model.go | 25 +- pkg/db/model/academic.go | 1 + 20 files changed, 193 insertions(+), 786 deletions(-) create mode 100644 cmd/academic/build.sh create mode 100644 cmd/academic/handler.go create mode 100644 cmd/academic/script/bootstrap.sh diff --git a/api/model/api/api.go b/api/model/api/api.go index 0e9a48a6..49152ab4 100644 --- a/api/model/api/api.go +++ b/api/model/api/api.go @@ -14,16 +14,14 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by thriftgo (0.3.18). DO NOT EDIT. +// Code generated by thriftgo (0.4.1). DO NOT EDIT. package api import ( "context" "fmt" - "github.com/apache/thrift/lib/go/thrift" - "github.com/west2-online/fzuhelper-server/api/model/model" ) @@ -70,7 +68,6 @@ var fieldIDToName_EmptyClassroomRequest = map[int16]string{ } func (p *EmptyClassroomRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetDate bool = false @@ -224,7 +221,6 @@ func (p *EmptyClassroomRequest) ReadField4(iprot thrift.TProtocol) error { } func (p *EmptyClassroomRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("EmptyClassroomRequest"); err != nil { goto WriteStructBeginError @@ -280,7 +276,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *EmptyClassroomRequest) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("campus", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -297,7 +292,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *EmptyClassroomRequest) writeField3(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("startTime", thrift.STRING, 3); err != nil { goto WriteFieldBeginError @@ -314,7 +308,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *EmptyClassroomRequest) writeField4(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("endTime", thrift.STRING, 4); err != nil { goto WriteFieldBeginError @@ -369,7 +362,6 @@ func (p *EmptyClassroomResponse) IsSetClassrooms() bool { } func (p *EmptyClassroomResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -449,7 +441,6 @@ func (p *EmptyClassroomResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *EmptyClassroomResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("EmptyClassroomResponse"); err != nil { goto WriteStructBeginError @@ -532,7 +523,6 @@ var fieldIDToName_ExamRoomInfoRequest = map[int16]string{ } func (p *ExamRoomInfoRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetTerm bool = false @@ -608,7 +598,6 @@ func (p *ExamRoomInfoRequest) ReadField1(iprot thrift.TProtocol) error { } func (p *ExamRoomInfoRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ExamRoomInfoRequest"); err != nil { goto WriteStructBeginError @@ -690,7 +679,6 @@ func (p *ExamRoomInfoResponse) IsSetExamRoomInfos() bool { } func (p *ExamRoomInfoResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -770,7 +758,6 @@ func (p *ExamRoomInfoResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *ExamRoomInfoResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ExamRoomInfoResponse"); err != nil { goto WriteStructBeginError @@ -862,7 +849,6 @@ var fieldIDToName_GetLoginDataRequest = map[int16]string{ } func (p *GetLoginDataRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetID bool = false @@ -964,7 +950,6 @@ func (p *GetLoginDataRequest) ReadField2(iprot thrift.TProtocol) error { } func (p *GetLoginDataRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetLoginDataRequest"); err != nil { goto WriteStructBeginError @@ -1012,7 +997,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetLoginDataRequest) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("password", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -1064,7 +1048,6 @@ var fieldIDToName_GetLoginDataResponse = map[int16]string{ } func (p *GetLoginDataResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetID bool = false @@ -1166,7 +1149,6 @@ func (p *GetLoginDataResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *GetLoginDataResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetLoginDataResponse"); err != nil { goto WriteStructBeginError @@ -1214,7 +1196,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetLoginDataResponse) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("cookies", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -1260,7 +1241,6 @@ var fieldIDToName_ValidateCodeRequest = map[int16]string{ } func (p *ValidateCodeRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetImage bool = false @@ -1336,7 +1316,6 @@ func (p *ValidateCodeRequest) ReadField1(iprot thrift.TProtocol) error { } func (p *ValidateCodeRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ValidateCodeRequest"); err != nil { goto WriteStructBeginError @@ -1402,7 +1381,6 @@ func (p *ValidateCodeResponse) InitDefault() { var fieldIDToName_ValidateCodeResponse = map[int16]string{} func (p *ValidateCodeResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -1444,7 +1422,6 @@ ReadStructEndError: } func (p *ValidateCodeResponse) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("ValidateCodeResponse"); err != nil { goto WriteStructBeginError } @@ -1494,7 +1471,6 @@ var fieldIDToName_ValidateCodeForAndroidRequest = map[int16]string{ } func (p *ValidateCodeForAndroidRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetValidateCode bool = false @@ -1570,7 +1546,6 @@ func (p *ValidateCodeForAndroidRequest) ReadField1(iprot thrift.TProtocol) error } func (p *ValidateCodeForAndroidRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ValidateCodeForAndroidRequest"); err != nil { goto WriteStructBeginError @@ -1636,7 +1611,6 @@ func (p *ValidateCodeForAndroidResponse) InitDefault() { var fieldIDToName_ValidateCodeForAndroidResponse = map[int16]string{} func (p *ValidateCodeForAndroidResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -1678,7 +1652,6 @@ ReadStructEndError: } func (p *ValidateCodeForAndroidResponse) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("ValidateCodeForAndroidResponse"); err != nil { goto WriteStructBeginError } @@ -1720,7 +1693,6 @@ func (p *GetAccessTokenRequest) InitDefault() { var fieldIDToName_GetAccessTokenRequest = map[int16]string{} func (p *GetAccessTokenRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -1762,7 +1734,6 @@ ReadStructEndError: } func (p *GetAccessTokenRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("GetAccessTokenRequest"); err != nil { goto WriteStructBeginError } @@ -1817,7 +1788,6 @@ var fieldIDToName_GetAccessTokenResponse = map[int16]string{ } func (p *GetAccessTokenResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -1904,7 +1874,6 @@ func (p *GetAccessTokenResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *GetAccessTokenResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetAccessTokenResponse"); err != nil { goto WriteStructBeginError @@ -1952,7 +1921,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetAccessTokenResponse) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("message", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -1991,7 +1959,6 @@ func (p *RefreshTokenRequest) InitDefault() { var fieldIDToName_RefreshTokenRequest = map[int16]string{} func (p *RefreshTokenRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -2033,7 +2000,6 @@ ReadStructEndError: } func (p *RefreshTokenRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("RefreshTokenRequest"); err != nil { goto WriteStructBeginError } @@ -2088,7 +2054,6 @@ var fieldIDToName_RefreshTokenResponse = map[int16]string{ } func (p *RefreshTokenResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -2175,7 +2140,6 @@ func (p *RefreshTokenResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *RefreshTokenResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("RefreshTokenResponse"); err != nil { goto WriteStructBeginError @@ -2223,7 +2187,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *RefreshTokenResponse) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("message", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -2262,7 +2225,6 @@ func (p *TestAuthRequest) InitDefault() { var fieldIDToName_TestAuthRequest = map[int16]string{} func (p *TestAuthRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -2304,7 +2266,6 @@ ReadStructEndError: } func (p *TestAuthRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("TestAuthRequest"); err != nil { goto WriteStructBeginError } @@ -2353,7 +2314,6 @@ var fieldIDToName_TestAuthResponse = map[int16]string{ } func (p *TestAuthResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -2421,7 +2381,6 @@ func (p *TestAuthResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *TestAuthResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("TestAuthResponse"); err != nil { goto WriteStructBeginError @@ -2487,7 +2446,6 @@ func (p *GetUserInfoRequest) InitDefault() { var fieldIDToName_GetUserInfoRequest = map[int16]string{} func (p *GetUserInfoRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -2529,7 +2487,6 @@ ReadStructEndError: } func (p *GetUserInfoRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("GetUserInfoRequest"); err != nil { goto WriteStructBeginError } @@ -2602,7 +2559,6 @@ func (p *GetUserInfoResponse) IsSetData() bool { } func (p *GetUserInfoResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetBase bool = false @@ -2691,7 +2647,6 @@ func (p *GetUserInfoResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *GetUserInfoResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetUserInfoResponse"); err != nil { goto WriteStructBeginError @@ -2739,7 +2694,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetUserInfoResponse) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetData() { if err = oprot.WriteFieldBegin("data", thrift.STRUCT, 2); err != nil { @@ -2793,7 +2747,6 @@ var fieldIDToName_GetLoginDataForYJSYRequest = map[int16]string{ } func (p *GetLoginDataForYJSYRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetID bool = false @@ -2895,7 +2848,6 @@ func (p *GetLoginDataForYJSYRequest) ReadField2(iprot thrift.TProtocol) error { } func (p *GetLoginDataForYJSYRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetLoginDataForYJSYRequest"); err != nil { goto WriteStructBeginError @@ -2943,7 +2895,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetLoginDataForYJSYRequest) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("password", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -2995,7 +2946,6 @@ var fieldIDToName_GetLoginDataForYJSYResponse = map[int16]string{ } func (p *GetLoginDataForYJSYResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetID bool = false @@ -3097,7 +3047,6 @@ func (p *GetLoginDataForYJSYResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *GetLoginDataForYJSYResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetLoginDataForYJSYResponse"); err != nil { goto WriteStructBeginError @@ -3145,7 +3094,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetLoginDataForYJSYResponse) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("cookies", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -3209,7 +3157,6 @@ func (p *CourseListRequest) IsSetIsRefresh() bool { } func (p *CourseListRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetTerm bool = false @@ -3304,7 +3251,6 @@ func (p *CourseListRequest) ReadField2(iprot thrift.TProtocol) error { } func (p *CourseListRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("CourseListRequest"); err != nil { goto WriteStructBeginError @@ -3352,7 +3298,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *CourseListRequest) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetIsRefresh() { if err = oprot.WriteFieldBegin("is_refresh", thrift.BOOL, 2); err != nil { @@ -3415,7 +3360,6 @@ func (p *CourseListResponse) IsSetBase() bool { } func (p *CourseListResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetBase bool = false @@ -3526,7 +3470,6 @@ func (p *CourseListResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *CourseListResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("CourseListResponse"); err != nil { goto WriteStructBeginError @@ -3574,7 +3517,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *CourseListResponse) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("data", thrift.LIST, 2); err != nil { goto WriteFieldBeginError @@ -3621,7 +3563,6 @@ func (p *CourseTermListRequest) InitDefault() { var fieldIDToName_CourseTermListRequest = map[int16]string{} func (p *CourseTermListRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -3663,7 +3604,6 @@ ReadStructEndError: } func (p *CourseTermListRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("CourseTermListRequest"); err != nil { goto WriteStructBeginError } @@ -3727,7 +3667,6 @@ func (p *CourseTermListResponse) IsSetBase() bool { } func (p *CourseTermListResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetBase bool = false @@ -3838,7 +3777,6 @@ func (p *CourseTermListResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *CourseTermListResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("CourseTermListResponse"); err != nil { goto WriteStructBeginError @@ -3886,7 +3824,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *CourseTermListResponse) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("data", thrift.LIST, 2); err != nil { goto WriteFieldBeginError @@ -3933,7 +3870,6 @@ func (p *GetCalendarTokenRequest) InitDefault() { var fieldIDToName_GetCalendarTokenRequest = map[int16]string{} func (p *GetCalendarTokenRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -3975,7 +3911,6 @@ ReadStructEndError: } func (p *GetCalendarTokenRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("GetCalendarTokenRequest"); err != nil { goto WriteStructBeginError } @@ -4024,7 +3959,6 @@ var fieldIDToName_GetCalendarTokenResponse = map[int16]string{ } func (p *GetCalendarTokenResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetToken bool = false @@ -4100,7 +4034,6 @@ func (p *GetCalendarTokenResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *GetCalendarTokenResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetCalendarTokenResponse"); err != nil { goto WriteStructBeginError @@ -4173,7 +4106,6 @@ var fieldIDToName_SubscribeCalendarRequest = map[int16]string{ } func (p *SubscribeCalendarRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetToken bool = false @@ -4249,7 +4181,6 @@ func (p *SubscribeCalendarRequest) ReadField1(iprot thrift.TProtocol) error { } func (p *SubscribeCalendarRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("SubscribeCalendarRequest"); err != nil { goto WriteStructBeginError @@ -4322,7 +4253,6 @@ var fieldIDToName_SubscribeCalendarResponse = map[int16]string{ } func (p *SubscribeCalendarResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -4390,7 +4320,6 @@ func (p *SubscribeCalendarResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *SubscribeCalendarResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("SubscribeCalendarResponse"); err != nil { goto WriteStructBeginError @@ -4456,7 +4385,6 @@ func (p *GetLocateDateRequest) InitDefault() { var fieldIDToName_GetLocateDateRequest = map[int16]string{} func (p *GetLocateDateRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -4498,7 +4426,6 @@ ReadStructEndError: } func (p *GetLocateDateRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("GetLocateDateRequest"); err != nil { goto WriteStructBeginError } @@ -4556,7 +4483,6 @@ func (p *GetLocateDateResponse) IsSetLocateDate() bool { } func (p *GetLocateDateResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -4621,7 +4547,6 @@ func (p *GetLocateDateResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *GetLocateDateResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetLocateDateResponse"); err != nil { goto WriteStructBeginError @@ -4774,7 +4699,6 @@ func (p *CreateImageRequest) IsSetDuration() bool { } func (p *CreateImageRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetPicType bool = false @@ -5115,7 +5039,6 @@ func (p *CreateImageRequest) ReadField12(iprot thrift.TProtocol) error { } func (p *CreateImageRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("CreateImageRequest"); err != nil { goto WriteStructBeginError @@ -5203,7 +5126,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *CreateImageRequest) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetDuration() { if err = oprot.WriteFieldBegin("duration", thrift.I64, 2); err != nil { @@ -5222,7 +5144,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *CreateImageRequest) writeField3(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("href", thrift.STRING, 3); err != nil { goto WriteFieldBeginError @@ -5239,7 +5160,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *CreateImageRequest) writeField4(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("image", thrift.STRING, 4); err != nil { goto WriteFieldBeginError @@ -5256,7 +5176,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 4 end error: ", p), err) } - func (p *CreateImageRequest) writeField5(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("start_at", thrift.I64, 5); err != nil { goto WriteFieldBeginError @@ -5273,7 +5192,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 5 end error: ", p), err) } - func (p *CreateImageRequest) writeField6(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("end_at", thrift.I64, 6); err != nil { goto WriteFieldBeginError @@ -5290,7 +5208,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 6 end error: ", p), err) } - func (p *CreateImageRequest) writeField7(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("s_type", thrift.I64, 7); err != nil { goto WriteFieldBeginError @@ -5307,7 +5224,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 7 end error: ", p), err) } - func (p *CreateImageRequest) writeField8(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("frequency", thrift.I64, 8); err != nil { goto WriteFieldBeginError @@ -5324,7 +5240,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 8 end error: ", p), err) } - func (p *CreateImageRequest) writeField9(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("start_time", thrift.I64, 9); err != nil { goto WriteFieldBeginError @@ -5341,7 +5256,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 9 end error: ", p), err) } - func (p *CreateImageRequest) writeField10(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("end_time", thrift.I64, 10); err != nil { goto WriteFieldBeginError @@ -5358,7 +5272,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 10 end error: ", p), err) } - func (p *CreateImageRequest) writeField11(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("text", thrift.STRING, 11); err != nil { goto WriteFieldBeginError @@ -5375,7 +5288,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 11 end error: ", p), err) } - func (p *CreateImageRequest) writeField12(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("regex", thrift.STRING, 12); err != nil { goto WriteFieldBeginError @@ -5445,7 +5357,6 @@ func (p *CreateImageResponse) IsSetPicture() bool { } func (p *CreateImageResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -5526,7 +5437,6 @@ func (p *CreateImageResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *CreateImageResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("CreateImageResponse"); err != nil { goto WriteStructBeginError @@ -5574,7 +5484,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *CreateImageResponse) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetPicture() { if err = oprot.WriteFieldBegin("picture", thrift.STRUCT, 2); err != nil { @@ -5622,7 +5531,6 @@ var fieldIDToName_GetImageRequest = map[int16]string{ } func (p *GetImageRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetPictureID bool = false @@ -5698,7 +5606,6 @@ func (p *GetImageRequest) ReadField1(iprot thrift.TProtocol) error { } func (p *GetImageRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetImageRequest"); err != nil { goto WriteStructBeginError @@ -5795,7 +5702,6 @@ func (p *GetImageResponse) IsSetPicture() bool { } func (p *GetImageResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -5876,7 +5782,6 @@ func (p *GetImageResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *GetImageResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetImageResponse"); err != nil { goto WriteStructBeginError @@ -5924,7 +5829,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetImageResponse) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetPicture() { if err = oprot.WriteFieldBegin("picture", thrift.STRUCT, 2); err != nil { @@ -6060,7 +5964,6 @@ func (p *ChangeImagePropertyRequest) IsSetHref() bool { } func (p *ChangeImagePropertyRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetPicType bool = false @@ -6408,7 +6311,6 @@ func (p *ChangeImagePropertyRequest) ReadField12(iprot thrift.TProtocol) error { } func (p *ChangeImagePropertyRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ChangeImagePropertyRequest"); err != nil { goto WriteStructBeginError @@ -6496,7 +6398,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *ChangeImagePropertyRequest) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetDuration() { if err = oprot.WriteFieldBegin("duration", thrift.I64, 2); err != nil { @@ -6515,7 +6416,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *ChangeImagePropertyRequest) writeField3(oprot thrift.TProtocol) (err error) { if p.IsSetHref() { if err = oprot.WriteFieldBegin("href", thrift.STRING, 3); err != nil { @@ -6534,7 +6434,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *ChangeImagePropertyRequest) writeField4(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("start_at", thrift.I64, 4); err != nil { goto WriteFieldBeginError @@ -6551,7 +6450,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 4 end error: ", p), err) } - func (p *ChangeImagePropertyRequest) writeField5(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("end_at", thrift.I64, 5); err != nil { goto WriteFieldBeginError @@ -6568,7 +6466,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 5 end error: ", p), err) } - func (p *ChangeImagePropertyRequest) writeField6(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("s_type", thrift.I64, 6); err != nil { goto WriteFieldBeginError @@ -6585,7 +6482,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 6 end error: ", p), err) } - func (p *ChangeImagePropertyRequest) writeField7(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("frequency", thrift.I64, 7); err != nil { goto WriteFieldBeginError @@ -6602,7 +6498,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 7 end error: ", p), err) } - func (p *ChangeImagePropertyRequest) writeField8(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("start_time", thrift.I64, 8); err != nil { goto WriteFieldBeginError @@ -6619,7 +6514,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 8 end error: ", p), err) } - func (p *ChangeImagePropertyRequest) writeField9(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("end_time", thrift.I64, 9); err != nil { goto WriteFieldBeginError @@ -6636,7 +6530,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 9 end error: ", p), err) } - func (p *ChangeImagePropertyRequest) writeField10(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("text", thrift.STRING, 10); err != nil { goto WriteFieldBeginError @@ -6653,7 +6546,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 10 end error: ", p), err) } - func (p *ChangeImagePropertyRequest) writeField11(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("picture_id", thrift.I64, 11); err != nil { goto WriteFieldBeginError @@ -6670,7 +6562,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 11 end error: ", p), err) } - func (p *ChangeImagePropertyRequest) writeField12(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("regex", thrift.STRING, 12); err != nil { goto WriteFieldBeginError @@ -6740,7 +6631,6 @@ func (p *ChangeImagePropertyResponse) IsSetPicture() bool { } func (p *ChangeImagePropertyResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -6821,7 +6711,6 @@ func (p *ChangeImagePropertyResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *ChangeImagePropertyResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ChangeImagePropertyResponse"); err != nil { goto WriteStructBeginError @@ -6869,7 +6758,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *ChangeImagePropertyResponse) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetPicture() { if err = oprot.WriteFieldBegin("picture", thrift.STRUCT, 2); err != nil { @@ -6923,7 +6811,6 @@ var fieldIDToName_ChangeImageRequest = map[int16]string{ } func (p *ChangeImageRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetPictureID bool = false @@ -7018,7 +6905,6 @@ func (p *ChangeImageRequest) ReadField2(iprot thrift.TProtocol) error { } func (p *ChangeImageRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ChangeImageRequest"); err != nil { goto WriteStructBeginError @@ -7066,7 +6952,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *ChangeImageRequest) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("image", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -7136,7 +7021,6 @@ func (p *ChangeImageResponse) IsSetPicture() bool { } func (p *ChangeImageResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -7217,7 +7101,6 @@ func (p *ChangeImageResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *ChangeImageResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ChangeImageResponse"); err != nil { goto WriteStructBeginError @@ -7265,7 +7148,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *ChangeImageResponse) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetPicture() { if err = oprot.WriteFieldBegin("picture", thrift.STRUCT, 2); err != nil { @@ -7313,7 +7195,6 @@ var fieldIDToName_DeleteImageRequest = map[int16]string{ } func (p *DeleteImageRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetPictureID bool = false @@ -7389,7 +7270,6 @@ func (p *DeleteImageRequest) ReadField1(iprot thrift.TProtocol) error { } func (p *DeleteImageRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("DeleteImageRequest"); err != nil { goto WriteStructBeginError @@ -7471,7 +7351,6 @@ func (p *DeleteImageResponse) IsSetBase() bool { } func (p *DeleteImageResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -7536,7 +7415,6 @@ func (p *DeleteImageResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *DeleteImageResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("DeleteImageResponse"); err != nil { goto WriteStructBeginError @@ -7636,7 +7514,6 @@ func (p *MobileGetImageRequest) IsSetCollege() bool { } func (p *MobileGetImageRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetType bool = false @@ -7783,7 +7660,6 @@ func (p *MobileGetImageRequest) ReadField4(iprot thrift.TProtocol) error { } func (p *MobileGetImageRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("MobileGetImageRequest"); err != nil { goto WriteStructBeginError @@ -7839,7 +7715,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *MobileGetImageRequest) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("student_id", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -7856,7 +7731,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *MobileGetImageRequest) writeField3(oprot thrift.TProtocol) (err error) { if p.IsSetCollege() { if err = oprot.WriteFieldBegin("college", thrift.STRING, 3); err != nil { @@ -7875,7 +7749,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *MobileGetImageRequest) writeField4(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("device", thrift.STRING, 4); err != nil { goto WriteFieldBeginError @@ -7960,7 +7833,6 @@ func (p *MobileGetImageResponse) IsSetPictureList() bool { } func (p *MobileGetImageResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -8075,7 +7947,6 @@ func (p *MobileGetImageResponse) ReadField3(iprot thrift.TProtocol) error { } func (p *MobileGetImageResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("MobileGetImageResponse"); err != nil { goto WriteStructBeginError @@ -8127,7 +7998,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *MobileGetImageResponse) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetCount() { if err = oprot.WriteFieldBegin("count", thrift.I64, 2); err != nil { @@ -8146,7 +8016,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *MobileGetImageResponse) writeField3(oprot thrift.TProtocol) (err error) { if p.IsSetPictureList() { if err = oprot.WriteFieldBegin("picture_list", thrift.LIST, 3); err != nil { @@ -8202,7 +8071,6 @@ var fieldIDToName_AddImagePointTimeRequest = map[int16]string{ } func (p *AddImagePointTimeRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetPictureID bool = false @@ -8278,7 +8146,6 @@ func (p *AddImagePointTimeRequest) ReadField1(iprot thrift.TProtocol) error { } func (p *AddImagePointTimeRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("AddImagePointTimeRequest"); err != nil { goto WriteStructBeginError @@ -8375,7 +8242,6 @@ func (p *AddImagePointTimeResponse) IsSetPicture() bool { } func (p *AddImagePointTimeResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -8456,7 +8322,6 @@ func (p *AddImagePointTimeResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *AddImagePointTimeResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("AddImagePointTimeResponse"); err != nil { goto WriteStructBeginError @@ -8504,7 +8369,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *AddImagePointTimeResponse) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetPicture() { if err = oprot.WriteFieldBegin("picture", thrift.STRUCT, 2); err != nil { @@ -8555,7 +8419,6 @@ var fieldIDToName_ListDirFilesRequest = map[int16]string{ } func (p *ListDirFilesRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetPath bool = false @@ -8631,7 +8494,6 @@ func (p *ListDirFilesRequest) ReadField1(iprot thrift.TProtocol) error { } func (p *ListDirFilesRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ListDirFilesRequest"); err != nil { goto WriteStructBeginError @@ -8713,7 +8575,6 @@ func (p *ListDirFilesResponse) IsSetDir() bool { } func (p *ListDirFilesResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetDir bool = false @@ -8786,7 +8647,6 @@ func (p *ListDirFilesResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *ListDirFilesResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ListDirFilesResponse"); err != nil { goto WriteStructBeginError @@ -8859,7 +8719,6 @@ var fieldIDToName_GetDownloadUrlRequest = map[int16]string{ } func (p *GetDownloadUrlRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetFilepath bool = false @@ -8935,7 +8794,6 @@ func (p *GetDownloadUrlRequest) ReadField1(iprot thrift.TProtocol) error { } func (p *GetDownloadUrlRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetDownloadUrlRequest"); err != nil { goto WriteStructBeginError @@ -9008,7 +8866,6 @@ var fieldIDToName_GetDownloadUrlResponse = map[int16]string{ } func (p *GetDownloadUrlResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetURL bool = false @@ -9084,7 +8941,6 @@ func (p *GetDownloadUrlResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *GetDownloadUrlResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetDownloadUrlResponse"); err != nil { goto WriteStructBeginError @@ -9158,7 +9014,6 @@ var fieldIDToName_ListDirFilesForAndroidRequest = map[int16]string{ } func (p *ListDirFilesForAndroidRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetPath bool = false @@ -9234,7 +9089,6 @@ func (p *ListDirFilesForAndroidRequest) ReadField1(iprot thrift.TProtocol) error } func (p *ListDirFilesForAndroidRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ListDirFilesForAndroidRequest"); err != nil { goto WriteStructBeginError @@ -9300,7 +9154,6 @@ func (p *ListDirFilesForAndroidResponse) InitDefault() { var fieldIDToName_ListDirFilesForAndroidResponse = map[int16]string{} func (p *ListDirFilesForAndroidResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -9342,7 +9195,6 @@ ReadStructEndError: } func (p *ListDirFilesForAndroidResponse) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("ListDirFilesForAndroidResponse"); err != nil { goto WriteStructBeginError } @@ -9391,7 +9243,6 @@ var fieldIDToName_GetDownloadUrlForAndroidRequest = map[int16]string{ } func (p *GetDownloadUrlForAndroidRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetFilepath bool = false @@ -9467,7 +9318,6 @@ func (p *GetDownloadUrlForAndroidRequest) ReadField1(iprot thrift.TProtocol) err } func (p *GetDownloadUrlForAndroidRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetDownloadUrlForAndroidRequest"); err != nil { goto WriteStructBeginError @@ -9533,7 +9383,6 @@ func (p *GetDownloadUrlForAndroidResponse) InitDefault() { var fieldIDToName_GetDownloadUrlForAndroidResponse = map[int16]string{} func (p *GetDownloadUrlForAndroidResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -9575,7 +9424,6 @@ ReadStructEndError: } func (p *GetDownloadUrlForAndroidResponse) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("GetDownloadUrlForAndroidResponse"); err != nil { goto WriteStructBeginError } @@ -9620,7 +9468,6 @@ func (p *GetScoresRequest) InitDefault() { var fieldIDToName_GetScoresRequest = map[int16]string{} func (p *GetScoresRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -9662,7 +9509,6 @@ ReadStructEndError: } func (p *GetScoresRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("GetScoresRequest"); err != nil { goto WriteStructBeginError } @@ -9711,7 +9557,6 @@ var fieldIDToName_GetScoresResponse = map[int16]string{ } func (p *GetScoresResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetScores bool = false @@ -9799,7 +9644,6 @@ func (p *GetScoresResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *GetScoresResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetScoresResponse"); err != nil { goto WriteStructBeginError @@ -9873,7 +9717,6 @@ func (p *GetGPARequest) InitDefault() { var fieldIDToName_GetGPARequest = map[int16]string{} func (p *GetGPARequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -9915,7 +9758,6 @@ ReadStructEndError: } func (p *GetGPARequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("GetGPARequest"); err != nil { goto WriteStructBeginError } @@ -9973,7 +9815,6 @@ func (p *GetGPAResponse) IsSetGpa() bool { } func (p *GetGPAResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetGpa bool = false @@ -10046,7 +9887,6 @@ func (p *GetGPAResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *GetGPAResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetGPAResponse"); err != nil { goto WriteStructBeginError @@ -10112,7 +9952,6 @@ func (p *GetCreditRequest) InitDefault() { var fieldIDToName_GetCreditRequest = map[int16]string{} func (p *GetCreditRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -10154,7 +9993,6 @@ ReadStructEndError: } func (p *GetCreditRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("GetCreditRequest"); err != nil { goto WriteStructBeginError } @@ -10203,7 +10041,6 @@ var fieldIDToName_GetCreditResponse = map[int16]string{ } func (p *GetCreditResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetMajor bool = false @@ -10291,7 +10128,6 @@ func (p *GetCreditResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *GetCreditResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetCreditResponse"); err != nil { goto WriteStructBeginError @@ -10365,7 +10201,6 @@ func (p *GetUnifiedExamRequest) InitDefault() { var fieldIDToName_GetUnifiedExamRequest = map[int16]string{} func (p *GetUnifiedExamRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -10407,7 +10242,6 @@ ReadStructEndError: } func (p *GetUnifiedExamRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("GetUnifiedExamRequest"); err != nil { goto WriteStructBeginError } @@ -10456,7 +10290,6 @@ var fieldIDToName_GetUnifiedExamResponse = map[int16]string{ } func (p *GetUnifiedExamResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetUnifiedExam bool = false @@ -10544,7 +10377,6 @@ func (p *GetUnifiedExamResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *GetUnifiedExamResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetUnifiedExamResponse"); err != nil { goto WriteStructBeginError @@ -10631,7 +10463,6 @@ var fieldIDToName_GetPlanRequest = map[int16]string{ } func (p *GetPlanRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetID bool = false @@ -10733,7 +10564,6 @@ func (p *GetPlanRequest) ReadField2(iprot thrift.TProtocol) error { } func (p *GetPlanRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetPlanRequest"); err != nil { goto WriteStructBeginError @@ -10781,7 +10611,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetPlanRequest) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("cookies", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -10836,7 +10665,6 @@ func (p *GetPlanResponse) IsSetBase() bool { } func (p *GetPlanResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -10901,7 +10729,6 @@ func (p *GetPlanResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *GetPlanResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetPlanResponse"); err != nil { goto WriteStructBeginError @@ -10977,7 +10804,6 @@ var fieldIDToName_LoginRequest = map[int16]string{ } func (p *LoginRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetPassword bool = false @@ -11053,7 +10879,6 @@ func (p *LoginRequest) ReadField1(iprot thrift.TProtocol) error { } func (p *LoginRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("LoginRequest"); err != nil { goto WriteStructBeginError @@ -11135,7 +10960,6 @@ func (p *LoginResponse) IsSetBase() bool { } func (p *LoginResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -11200,7 +11024,6 @@ func (p *LoginResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *LoginResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("LoginResponse"); err != nil { goto WriteStructBeginError @@ -11309,7 +11132,6 @@ var fieldIDToName_UploadRequest = map[int16]string{ } func (p *UploadRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetVersion bool = false @@ -11541,7 +11363,6 @@ func (p *UploadRequest) ReadField7(iprot thrift.TProtocol) error { } func (p *UploadRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("UploadRequest"); err != nil { goto WriteStructBeginError @@ -11609,7 +11430,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *UploadRequest) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("code", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -11626,7 +11446,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *UploadRequest) writeField3(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("url", thrift.STRING, 3); err != nil { goto WriteFieldBeginError @@ -11643,7 +11462,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *UploadRequest) writeField4(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("feature", thrift.STRING, 4); err != nil { goto WriteFieldBeginError @@ -11660,7 +11478,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 4 end error: ", p), err) } - func (p *UploadRequest) writeField5(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("type", thrift.STRING, 5); err != nil { goto WriteFieldBeginError @@ -11677,7 +11494,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 5 end error: ", p), err) } - func (p *UploadRequest) writeField6(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("password", thrift.STRING, 6); err != nil { goto WriteFieldBeginError @@ -11694,7 +11510,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 6 end error: ", p), err) } - func (p *UploadRequest) writeField7(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("force", thrift.BOOL, 7); err != nil { goto WriteFieldBeginError @@ -11749,7 +11564,6 @@ func (p *UploadResponse) IsSetBase() bool { } func (p *UploadResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -11814,7 +11628,6 @@ func (p *UploadResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *UploadResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("UploadResponse"); err != nil { goto WriteStructBeginError @@ -11887,7 +11700,6 @@ var fieldIDToName_UploadParamsRequest = map[int16]string{ } func (p *UploadParamsRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetPassword bool = false @@ -11963,7 +11775,6 @@ func (p *UploadParamsRequest) ReadField1(iprot thrift.TProtocol) error { } func (p *UploadParamsRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("UploadParamsRequest"); err != nil { goto WriteStructBeginError @@ -12075,7 +11886,6 @@ func (p *UploadParamsResponse) IsSetAuthorization() bool { } func (p *UploadParamsResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -12178,7 +11988,6 @@ func (p *UploadParamsResponse) ReadField3(iprot thrift.TProtocol) error { } func (p *UploadParamsResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("UploadParamsResponse"); err != nil { goto WriteStructBeginError @@ -12232,7 +12041,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *UploadParamsResponse) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetPolicy() { if err = oprot.WriteFieldBegin("policy", thrift.STRING, 2); err != nil { @@ -12251,7 +12059,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *UploadParamsResponse) writeField3(oprot thrift.TProtocol) (err error) { if p.IsSetAuthorization() { if err = oprot.WriteFieldBegin("authorization", thrift.STRING, 3); err != nil { @@ -12292,7 +12099,6 @@ func (p *DownloadReleaseApkRequest) InitDefault() { var fieldIDToName_DownloadReleaseApkRequest = map[int16]string{} func (p *DownloadReleaseApkRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -12334,7 +12140,6 @@ ReadStructEndError: } func (p *DownloadReleaseApkRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("DownloadReleaseApkRequest"); err != nil { goto WriteStructBeginError } @@ -12392,7 +12197,6 @@ func (p *DownloadReleaseApkResponse) IsSetFile() bool { } func (p *DownloadReleaseApkResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -12460,7 +12264,6 @@ func (p *DownloadReleaseApkResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *DownloadReleaseApkResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("DownloadReleaseApkResponse"); err != nil { goto WriteStructBeginError @@ -12528,7 +12331,6 @@ func (p *DownloadBetaApkRequest) InitDefault() { var fieldIDToName_DownloadBetaApkRequest = map[int16]string{} func (p *DownloadBetaApkRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -12570,7 +12372,6 @@ ReadStructEndError: } func (p *DownloadBetaApkRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("DownloadBetaApkRequest"); err != nil { goto WriteStructBeginError } @@ -12628,7 +12429,6 @@ func (p *DownloadBetaApkResponse) IsSetFile() bool { } func (p *DownloadBetaApkResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -12696,7 +12496,6 @@ func (p *DownloadBetaApkResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *DownloadBetaApkResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("DownloadBetaApkResponse"); err != nil { goto WriteStructBeginError @@ -12764,7 +12563,6 @@ func (p *GetReleaseVersionRequest) InitDefault() { var fieldIDToName_GetReleaseVersionRequest = map[int16]string{} func (p *GetReleaseVersionRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -12806,7 +12604,6 @@ ReadStructEndError: } func (p *GetReleaseVersionRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("GetReleaseVersionRequest"); err != nil { goto WriteStructBeginError } @@ -12939,7 +12736,6 @@ func (p *GetReleaseVersionResponse) IsSetForce() bool { } func (p *GetReleaseVersionResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -13099,7 +12895,6 @@ func (p *GetReleaseVersionResponse) ReadField6(iprot thrift.TProtocol) error { } func (p *GetReleaseVersionResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetReleaseVersionResponse"); err != nil { goto WriteStructBeginError @@ -13165,7 +12960,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetReleaseVersionResponse) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetCode() { if err = oprot.WriteFieldBegin("code", thrift.STRING, 2); err != nil { @@ -13184,7 +12978,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *GetReleaseVersionResponse) writeField3(oprot thrift.TProtocol) (err error) { if p.IsSetFeature() { if err = oprot.WriteFieldBegin("feature", thrift.STRING, 3); err != nil { @@ -13203,7 +12996,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *GetReleaseVersionResponse) writeField4(oprot thrift.TProtocol) (err error) { if p.IsSetURL() { if err = oprot.WriteFieldBegin("url", thrift.STRING, 4); err != nil { @@ -13222,7 +13014,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 4 end error: ", p), err) } - func (p *GetReleaseVersionResponse) writeField5(oprot thrift.TProtocol) (err error) { if p.IsSetVersion() { if err = oprot.WriteFieldBegin("version", thrift.STRING, 5); err != nil { @@ -13241,7 +13032,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 5 end error: ", p), err) } - func (p *GetReleaseVersionResponse) writeField6(oprot thrift.TProtocol) (err error) { if p.IsSetForce() { if err = oprot.WriteFieldBegin("force", thrift.BOOL, 6); err != nil { @@ -13282,7 +13072,6 @@ func (p *GetBetaVersionRequest) InitDefault() { var fieldIDToName_GetBetaVersionRequest = map[int16]string{} func (p *GetBetaVersionRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -13324,7 +13113,6 @@ ReadStructEndError: } func (p *GetBetaVersionRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("GetBetaVersionRequest"); err != nil { goto WriteStructBeginError } @@ -13457,7 +13245,6 @@ func (p *GetBetaVersionResponse) IsSetForce() bool { } func (p *GetBetaVersionResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -13617,7 +13404,6 @@ func (p *GetBetaVersionResponse) ReadField6(iprot thrift.TProtocol) error { } func (p *GetBetaVersionResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetBetaVersionResponse"); err != nil { goto WriteStructBeginError @@ -13683,7 +13469,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetBetaVersionResponse) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetCode() { if err = oprot.WriteFieldBegin("code", thrift.STRING, 2); err != nil { @@ -13702,7 +13487,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *GetBetaVersionResponse) writeField3(oprot thrift.TProtocol) (err error) { if p.IsSetFeature() { if err = oprot.WriteFieldBegin("feature", thrift.STRING, 3); err != nil { @@ -13721,7 +13505,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *GetBetaVersionResponse) writeField4(oprot thrift.TProtocol) (err error) { if p.IsSetURL() { if err = oprot.WriteFieldBegin("url", thrift.STRING, 4); err != nil { @@ -13740,7 +13523,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 4 end error: ", p), err) } - func (p *GetBetaVersionResponse) writeField5(oprot thrift.TProtocol) (err error) { if p.IsSetVersion() { if err = oprot.WriteFieldBegin("version", thrift.STRING, 5); err != nil { @@ -13759,7 +13541,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 5 end error: ", p), err) } - func (p *GetBetaVersionResponse) writeField6(oprot thrift.TProtocol) (err error) { if p.IsSetForce() { if err = oprot.WriteFieldBegin("force", thrift.BOOL, 6); err != nil { @@ -13891,7 +13672,6 @@ func (p *GetSettingRequest) IsSetLoginType() bool { } func (p *GetSettingRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -14054,7 +13834,6 @@ func (p *GetSettingRequest) ReadField6(iprot thrift.TProtocol) error { } func (p *GetSettingRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetSettingRequest"); err != nil { goto WriteStructBeginError @@ -14120,7 +13899,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetSettingRequest) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetVersion() { if err = oprot.WriteFieldBegin("version", thrift.STRING, 2); err != nil { @@ -14139,7 +13917,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *GetSettingRequest) writeField3(oprot thrift.TProtocol) (err error) { if p.IsSetBeta() { if err = oprot.WriteFieldBegin("beta", thrift.BOOL, 3); err != nil { @@ -14158,7 +13935,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *GetSettingRequest) writeField4(oprot thrift.TProtocol) (err error) { if p.IsSetPhone() { if err = oprot.WriteFieldBegin("phone", thrift.STRING, 4); err != nil { @@ -14177,7 +13953,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 4 end error: ", p), err) } - func (p *GetSettingRequest) writeField5(oprot thrift.TProtocol) (err error) { if p.IsSetIsLogin() { if err = oprot.WriteFieldBegin("isLogin", thrift.BOOL, 5); err != nil { @@ -14196,7 +13971,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 5 end error: ", p), err) } - func (p *GetSettingRequest) writeField6(oprot thrift.TProtocol) (err error) { if p.IsSetLoginType() { if err = oprot.WriteFieldBegin("loginType", thrift.STRING, 6); err != nil { @@ -14259,7 +14033,6 @@ func (p *GetSettingResponse) IsSetBase() bool { } func (p *GetSettingResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -14343,7 +14116,6 @@ func (p *GetSettingResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *GetSettingResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetSettingResponse"); err != nil { goto WriteStructBeginError @@ -14393,7 +14165,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetSettingResponse) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("cloud_setting", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -14538,7 +14309,6 @@ func (p *GetTestRequest) IsSetSetting() bool { } func (p *GetTestRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -14720,7 +14490,6 @@ func (p *GetTestRequest) ReadField7(iprot thrift.TProtocol) error { } func (p *GetTestRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetTestRequest"); err != nil { goto WriteStructBeginError @@ -14790,7 +14559,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetTestRequest) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetVersion() { if err = oprot.WriteFieldBegin("version", thrift.STRING, 2); err != nil { @@ -14809,7 +14577,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *GetTestRequest) writeField3(oprot thrift.TProtocol) (err error) { if p.IsSetBeta() { if err = oprot.WriteFieldBegin("beta", thrift.BOOL, 3); err != nil { @@ -14828,7 +14595,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *GetTestRequest) writeField4(oprot thrift.TProtocol) (err error) { if p.IsSetPhone() { if err = oprot.WriteFieldBegin("phone", thrift.STRING, 4); err != nil { @@ -14847,7 +14613,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 4 end error: ", p), err) } - func (p *GetTestRequest) writeField5(oprot thrift.TProtocol) (err error) { if p.IsSetIsLogin() { if err = oprot.WriteFieldBegin("isLogin", thrift.BOOL, 5); err != nil { @@ -14866,7 +14631,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 5 end error: ", p), err) } - func (p *GetTestRequest) writeField6(oprot thrift.TProtocol) (err error) { if p.IsSetLoginType() { if err = oprot.WriteFieldBegin("loginType", thrift.STRING, 6); err != nil { @@ -14885,7 +14649,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 6 end error: ", p), err) } - func (p *GetTestRequest) writeField7(oprot thrift.TProtocol) (err error) { if p.IsSetSetting() { if err = oprot.WriteFieldBegin("setting", thrift.STRING, 7); err != nil { @@ -14948,7 +14711,6 @@ func (p *GetTestResponse) IsSetBase() bool { } func (p *GetTestResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -15032,7 +14794,6 @@ func (p *GetTestResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *GetTestResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetTestResponse"); err != nil { goto WriteStructBeginError @@ -15080,7 +14841,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetTestResponse) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("cloud_setting", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -15119,7 +14879,6 @@ func (p *GetCloudRequest) InitDefault() { var fieldIDToName_GetCloudRequest = map[int16]string{} func (p *GetCloudRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -15161,7 +14920,6 @@ ReadStructEndError: } func (p *GetCloudRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("GetCloudRequest"); err != nil { goto WriteStructBeginError } @@ -15225,7 +14983,6 @@ func (p *GetCloudResponse) IsSetBase() bool { } func (p *GetCloudResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -15309,7 +15066,6 @@ func (p *GetCloudResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *GetCloudResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetCloudResponse"); err != nil { goto WriteStructBeginError @@ -15359,7 +15115,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetCloudResponse) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("cloud_setting", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -15411,7 +15166,6 @@ var fieldIDToName_SetCloudRequest = map[int16]string{ } func (p *SetCloudRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetPassword bool = false @@ -15513,7 +15267,6 @@ func (p *SetCloudRequest) ReadField2(iprot thrift.TProtocol) error { } func (p *SetCloudRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("SetCloudRequest"); err != nil { goto WriteStructBeginError @@ -15561,7 +15314,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *SetCloudRequest) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("setting", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -15616,7 +15368,6 @@ func (p *SetCloudResponse) IsSetBase() bool { } func (p *SetCloudResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -15681,7 +15432,6 @@ func (p *SetCloudResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *SetCloudResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("SetCloudResponse"); err != nil { goto WriteStructBeginError @@ -15747,7 +15497,6 @@ func (p *GetDumpRequest) InitDefault() { var fieldIDToName_GetDumpRequest = map[int16]string{} func (p *GetDumpRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -15789,7 +15538,6 @@ ReadStructEndError: } func (p *GetDumpRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("GetDumpRequest"); err != nil { goto WriteStructBeginError } @@ -15853,7 +15601,6 @@ func (p *GetDumpResponse) IsSetBase() bool { } func (p *GetDumpResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -15937,7 +15684,6 @@ func (p *GetDumpResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *GetDumpResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetDumpResponse"); err != nil { goto WriteStructBeginError @@ -15987,7 +15733,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetDumpResponse) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("data", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -16026,7 +15771,6 @@ func (p *AndroidGetVersioneRequest) InitDefault() { var fieldIDToName_AndroidGetVersioneRequest = map[int16]string{} func (p *AndroidGetVersioneRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -16068,7 +15812,6 @@ ReadStructEndError: } func (p *AndroidGetVersioneRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("AndroidGetVersioneRequest"); err != nil { goto WriteStructBeginError } @@ -16156,7 +15899,6 @@ func (p *AndroidGetVersionResponse) IsSetBeta() bool { } func (p *AndroidGetVersionResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -16253,7 +15995,6 @@ func (p *AndroidGetVersionResponse) ReadField3(iprot thrift.TProtocol) error { } func (p *AndroidGetVersionResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("AndroidGetVersionResponse"); err != nil { goto WriteStructBeginError @@ -16307,7 +16048,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *AndroidGetVersionResponse) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetRelease() { if err = oprot.WriteFieldBegin("release", thrift.STRUCT, 2); err != nil { @@ -16326,7 +16066,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *AndroidGetVersionResponse) writeField3(oprot thrift.TProtocol) (err error) { if p.IsSetBeta() { if err = oprot.WriteFieldBegin("beta", thrift.STRUCT, 3); err != nil { @@ -16370,7 +16109,6 @@ func (p *GetCSSRequest) InitDefault() { var fieldIDToName_GetCSSRequest = map[int16]string{} func (p *GetCSSRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -16412,7 +16150,6 @@ ReadStructEndError: } func (p *GetCSSRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("GetCSSRequest"); err != nil { goto WriteStructBeginError } @@ -16461,7 +16198,6 @@ var fieldIDToName_GetCSSResponse = map[int16]string{ } func (p *GetCSSResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -16529,7 +16265,6 @@ func (p *GetCSSResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *GetCSSResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetCSSResponse"); err != nil { goto WriteStructBeginError @@ -16595,7 +16330,6 @@ func (p *GetHtmlRequest) InitDefault() { var fieldIDToName_GetHtmlRequest = map[int16]string{} func (p *GetHtmlRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -16637,7 +16371,6 @@ ReadStructEndError: } func (p *GetHtmlRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("GetHtmlRequest"); err != nil { goto WriteStructBeginError } @@ -16686,7 +16419,6 @@ var fieldIDToName_GetHtmlResponse = map[int16]string{ } func (p *GetHtmlResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -16754,7 +16486,6 @@ func (p *GetHtmlResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *GetHtmlResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetHtmlResponse"); err != nil { goto WriteStructBeginError @@ -16820,7 +16551,6 @@ func (p *GetUserAgreementRequest) InitDefault() { var fieldIDToName_GetUserAgreementRequest = map[int16]string{} func (p *GetUserAgreementRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -16862,7 +16592,6 @@ ReadStructEndError: } func (p *GetUserAgreementRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("GetUserAgreementRequest"); err != nil { goto WriteStructBeginError } @@ -16911,7 +16640,6 @@ var fieldIDToName_GetUserAgreementResponse = map[int16]string{ } func (p *GetUserAgreementResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -16979,7 +16707,6 @@ func (p *GetUserAgreementResponse) ReadField1(iprot thrift.TProtocol) error { } func (p *GetUserAgreementResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetUserAgreementResponse"); err != nil { goto WriteStructBeginError @@ -17046,7 +16773,6 @@ func (p *TermListRequest) InitDefault() { var fieldIDToName_TermListRequest = map[int16]string{} func (p *TermListRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -17088,7 +16814,6 @@ ReadStructEndError: } func (p *TermListRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("TermListRequest"); err != nil { goto WriteStructBeginError } @@ -17161,7 +16886,6 @@ func (p *TermListResponse) IsSetTermLists() bool { } func (p *TermListResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetBase bool = false @@ -17257,7 +16981,6 @@ func (p *TermListResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *TermListResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("TermListResponse"); err != nil { goto WriteStructBeginError @@ -17305,7 +17028,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *TermListResponse) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("term_lists", thrift.STRUCT, 2); err != nil { goto WriteFieldBeginError @@ -17352,7 +17074,6 @@ var fieldIDToName_TermRequest = map[int16]string{ } func (p *TermRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetTerm bool = false @@ -17428,7 +17149,6 @@ func (p *TermRequest) ReadField1(iprot thrift.TProtocol) error { } func (p *TermRequest) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("TermRequest"); err != nil { goto WriteStructBeginError @@ -17525,7 +17245,6 @@ func (p *TermResponse) IsSetTermInfo() bool { } func (p *TermResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetBase bool = false @@ -17621,7 +17340,6 @@ func (p *TermResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *TermResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("TermResponse"); err != nil { goto WriteStructBeginError @@ -17669,7 +17387,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *TermResponse) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("term_info", thrift.STRUCT, 2); err != nil { goto WriteFieldBeginError @@ -17715,7 +17432,6 @@ var fieldIDToName_GetNoticeRequst = map[int16]string{ } func (p *GetNoticeRequst) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetPageNum bool = false @@ -17791,7 +17507,6 @@ func (p *GetNoticeRequst) ReadField1(iprot thrift.TProtocol) error { } func (p *GetNoticeRequst) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetNoticeRequst"); err != nil { goto WriteStructBeginError @@ -17870,7 +17585,6 @@ var fieldIDToName_GetNoticeResponse = map[int16]string{ } func (p *GetNoticeResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetNotices bool = false @@ -17984,7 +17698,6 @@ func (p *GetNoticeResponse) ReadField2(iprot thrift.TProtocol) error { } func (p *GetNoticeResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetNoticeResponse"); err != nil { goto WriteStructBeginError @@ -18040,7 +17753,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetNoticeResponse) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("total", thrift.I64, 2); err != nil { goto WriteFieldBeginError @@ -18079,7 +17791,6 @@ func (p *GetContributorInfoRequest) InitDefault() { var fieldIDToName_GetContributorInfoRequest = map[int16]string{} func (p *GetContributorInfoRequest) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -18121,7 +17832,6 @@ ReadStructEndError: } func (p *GetContributorInfoRequest) Write(oprot thrift.TProtocol) (err error) { - if err = oprot.WriteStructBegin("GetContributorInfoRequest"); err != nil { goto WriteStructBeginError } @@ -18188,7 +17898,6 @@ var fieldIDToName_GetContributorInfoResponse = map[int16]string{ } func (p *GetContributorInfoResponse) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetFzuhelperApp bool = false @@ -18390,7 +18099,6 @@ func (p *GetContributorInfoResponse) ReadField4(iprot thrift.TProtocol) error { } func (p *GetContributorInfoResponse) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetContributorInfoResponse"); err != nil { goto WriteStructBeginError @@ -18454,7 +18162,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GetContributorInfoResponse) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("fzuhelper_server", thrift.LIST, 2); err != nil { goto WriteFieldBeginError @@ -18479,7 +18186,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *GetContributorInfoResponse) writeField3(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("jwch", thrift.LIST, 3); err != nil { goto WriteFieldBeginError @@ -18504,7 +18210,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *GetContributorInfoResponse) writeField4(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("yjsy", thrift.LIST, 4); err != nil { goto WriteFieldBeginError @@ -19505,7 +19210,6 @@ func (p *ClassRoomServiceGetEmptyClassroomsArgs) IsSetRequest() bool { } func (p *ClassRoomServiceGetEmptyClassroomsArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -19570,7 +19274,6 @@ func (p *ClassRoomServiceGetEmptyClassroomsArgs) ReadField1(iprot thrift.TProtoc } func (p *ClassRoomServiceGetEmptyClassroomsArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetEmptyClassrooms_args"); err != nil { goto WriteStructBeginError @@ -19652,7 +19355,6 @@ func (p *ClassRoomServiceGetEmptyClassroomsResult) IsSetSuccess() bool { } func (p *ClassRoomServiceGetEmptyClassroomsResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -19717,7 +19419,6 @@ func (p *ClassRoomServiceGetEmptyClassroomsResult) ReadField0(iprot thrift.TProt } func (p *ClassRoomServiceGetEmptyClassroomsResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetEmptyClassrooms_result"); err != nil { goto WriteStructBeginError @@ -19801,7 +19502,6 @@ func (p *ClassRoomServiceGetExamRoomInfoArgs) IsSetRequest() bool { } func (p *ClassRoomServiceGetExamRoomInfoArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -19866,7 +19566,6 @@ func (p *ClassRoomServiceGetExamRoomInfoArgs) ReadField1(iprot thrift.TProtocol) } func (p *ClassRoomServiceGetExamRoomInfoArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetExamRoomInfo_args"); err != nil { goto WriteStructBeginError @@ -19948,7 +19647,6 @@ func (p *ClassRoomServiceGetExamRoomInfoResult) IsSetSuccess() bool { } func (p *ClassRoomServiceGetExamRoomInfoResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -20013,7 +19711,6 @@ func (p *ClassRoomServiceGetExamRoomInfoResult) ReadField0(iprot thrift.TProtoco } func (p *ClassRoomServiceGetExamRoomInfoResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetExamRoomInfo_result"); err != nil { goto WriteStructBeginError @@ -20529,7 +20226,6 @@ func (p *UserServiceGetLoginDataArgs) IsSetRequest() bool { } func (p *UserServiceGetLoginDataArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -20594,7 +20290,6 @@ func (p *UserServiceGetLoginDataArgs) ReadField1(iprot thrift.TProtocol) error { } func (p *UserServiceGetLoginDataArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetLoginData_args"); err != nil { goto WriteStructBeginError @@ -20676,7 +20371,6 @@ func (p *UserServiceGetLoginDataResult) IsSetSuccess() bool { } func (p *UserServiceGetLoginDataResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -20741,7 +20435,6 @@ func (p *UserServiceGetLoginDataResult) ReadField0(iprot thrift.TProtocol) error } func (p *UserServiceGetLoginDataResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetLoginData_result"); err != nil { goto WriteStructBeginError @@ -20825,7 +20518,6 @@ func (p *UserServiceGetGetLoginDataForYJSYArgs) IsSetRequest() bool { } func (p *UserServiceGetGetLoginDataForYJSYArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -20890,7 +20582,6 @@ func (p *UserServiceGetGetLoginDataForYJSYArgs) ReadField1(iprot thrift.TProtoco } func (p *UserServiceGetGetLoginDataForYJSYArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetGetLoginDataForYJSY_args"); err != nil { goto WriteStructBeginError @@ -20972,7 +20663,6 @@ func (p *UserServiceGetGetLoginDataForYJSYResult) IsSetSuccess() bool { } func (p *UserServiceGetGetLoginDataForYJSYResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -21037,7 +20727,6 @@ func (p *UserServiceGetGetLoginDataForYJSYResult) ReadField0(iprot thrift.TProto } func (p *UserServiceGetGetLoginDataForYJSYResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetGetLoginDataForYJSY_result"); err != nil { goto WriteStructBeginError @@ -21121,7 +20810,6 @@ func (p *UserServiceValidateCodeArgs) IsSetRequest() bool { } func (p *UserServiceValidateCodeArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -21186,7 +20874,6 @@ func (p *UserServiceValidateCodeArgs) ReadField1(iprot thrift.TProtocol) error { } func (p *UserServiceValidateCodeArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ValidateCode_args"); err != nil { goto WriteStructBeginError @@ -21268,7 +20955,6 @@ func (p *UserServiceValidateCodeResult) IsSetSuccess() bool { } func (p *UserServiceValidateCodeResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -21333,7 +21019,6 @@ func (p *UserServiceValidateCodeResult) ReadField0(iprot thrift.TProtocol) error } func (p *UserServiceValidateCodeResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ValidateCode_result"); err != nil { goto WriteStructBeginError @@ -21417,7 +21102,6 @@ func (p *UserServiceValidateCodeForAndroidArgs) IsSetRequest() bool { } func (p *UserServiceValidateCodeForAndroidArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -21482,7 +21166,6 @@ func (p *UserServiceValidateCodeForAndroidArgs) ReadField1(iprot thrift.TProtoco } func (p *UserServiceValidateCodeForAndroidArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ValidateCodeForAndroid_args"); err != nil { goto WriteStructBeginError @@ -21564,7 +21247,6 @@ func (p *UserServiceValidateCodeForAndroidResult) IsSetSuccess() bool { } func (p *UserServiceValidateCodeForAndroidResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -21629,7 +21311,6 @@ func (p *UserServiceValidateCodeForAndroidResult) ReadField0(iprot thrift.TProto } func (p *UserServiceValidateCodeForAndroidResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ValidateCodeForAndroid_result"); err != nil { goto WriteStructBeginError @@ -21713,7 +21394,6 @@ func (p *UserServiceGetTokenArgs) IsSetRequest() bool { } func (p *UserServiceGetTokenArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -21778,7 +21458,6 @@ func (p *UserServiceGetTokenArgs) ReadField1(iprot thrift.TProtocol) error { } func (p *UserServiceGetTokenArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetToken_args"); err != nil { goto WriteStructBeginError @@ -21860,7 +21539,6 @@ func (p *UserServiceGetTokenResult) IsSetSuccess() bool { } func (p *UserServiceGetTokenResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -21925,7 +21603,6 @@ func (p *UserServiceGetTokenResult) ReadField0(iprot thrift.TProtocol) error { } func (p *UserServiceGetTokenResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetToken_result"); err != nil { goto WriteStructBeginError @@ -22009,7 +21686,6 @@ func (p *UserServiceRefreshTokenArgs) IsSetRequest() bool { } func (p *UserServiceRefreshTokenArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -22074,7 +21750,6 @@ func (p *UserServiceRefreshTokenArgs) ReadField1(iprot thrift.TProtocol) error { } func (p *UserServiceRefreshTokenArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("RefreshToken_args"); err != nil { goto WriteStructBeginError @@ -22156,7 +21831,6 @@ func (p *UserServiceRefreshTokenResult) IsSetSuccess() bool { } func (p *UserServiceRefreshTokenResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -22221,7 +21895,6 @@ func (p *UserServiceRefreshTokenResult) ReadField0(iprot thrift.TProtocol) error } func (p *UserServiceRefreshTokenResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("RefreshToken_result"); err != nil { goto WriteStructBeginError @@ -22305,7 +21978,6 @@ func (p *UserServiceTestAuthArgs) IsSetRequest() bool { } func (p *UserServiceTestAuthArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -22370,7 +22042,6 @@ func (p *UserServiceTestAuthArgs) ReadField1(iprot thrift.TProtocol) error { } func (p *UserServiceTestAuthArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("TestAuth_args"); err != nil { goto WriteStructBeginError @@ -22452,7 +22123,6 @@ func (p *UserServiceTestAuthResult) IsSetSuccess() bool { } func (p *UserServiceTestAuthResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -22517,7 +22187,6 @@ func (p *UserServiceTestAuthResult) ReadField0(iprot thrift.TProtocol) error { } func (p *UserServiceTestAuthResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("TestAuth_result"); err != nil { goto WriteStructBeginError @@ -22601,7 +22270,6 @@ func (p *UserServiceGetUserInfoArgs) IsSetRequest() bool { } func (p *UserServiceGetUserInfoArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -22666,7 +22334,6 @@ func (p *UserServiceGetUserInfoArgs) ReadField1(iprot thrift.TProtocol) error { } func (p *UserServiceGetUserInfoArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetUserInfo_args"); err != nil { goto WriteStructBeginError @@ -22748,7 +22415,6 @@ func (p *UserServiceGetUserInfoResult) IsSetSuccess() bool { } func (p *UserServiceGetUserInfoResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -22813,7 +22479,6 @@ func (p *UserServiceGetUserInfoResult) ReadField0(iprot thrift.TProtocol) error } func (p *UserServiceGetUserInfoResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetUserInfo_result"); err != nil { goto WriteStructBeginError @@ -23182,7 +22847,6 @@ func (p *CourseServiceGetCourseListArgs) IsSetReq() bool { } func (p *CourseServiceGetCourseListArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -23247,7 +22911,6 @@ func (p *CourseServiceGetCourseListArgs) ReadField1(iprot thrift.TProtocol) erro } func (p *CourseServiceGetCourseListArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetCourseList_args"); err != nil { goto WriteStructBeginError @@ -23329,7 +22992,6 @@ func (p *CourseServiceGetCourseListResult) IsSetSuccess() bool { } func (p *CourseServiceGetCourseListResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -23394,7 +23056,6 @@ func (p *CourseServiceGetCourseListResult) ReadField0(iprot thrift.TProtocol) er } func (p *CourseServiceGetCourseListResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetCourseList_result"); err != nil { goto WriteStructBeginError @@ -23478,7 +23139,6 @@ func (p *CourseServiceGetTermListArgs) IsSetReq() bool { } func (p *CourseServiceGetTermListArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -23543,7 +23203,6 @@ func (p *CourseServiceGetTermListArgs) ReadField1(iprot thrift.TProtocol) error } func (p *CourseServiceGetTermListArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetTermList_args"); err != nil { goto WriteStructBeginError @@ -23625,7 +23284,6 @@ func (p *CourseServiceGetTermListResult) IsSetSuccess() bool { } func (p *CourseServiceGetTermListResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -23690,7 +23348,6 @@ func (p *CourseServiceGetTermListResult) ReadField0(iprot thrift.TProtocol) erro } func (p *CourseServiceGetTermListResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetTermList_result"); err != nil { goto WriteStructBeginError @@ -23774,7 +23431,6 @@ func (p *CourseServiceGetCalendarArgs) IsSetReq() bool { } func (p *CourseServiceGetCalendarArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -23839,7 +23495,6 @@ func (p *CourseServiceGetCalendarArgs) ReadField1(iprot thrift.TProtocol) error } func (p *CourseServiceGetCalendarArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetCalendar_args"); err != nil { goto WriteStructBeginError @@ -23921,7 +23576,6 @@ func (p *CourseServiceGetCalendarResult) IsSetSuccess() bool { } func (p *CourseServiceGetCalendarResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -23986,7 +23640,6 @@ func (p *CourseServiceGetCalendarResult) ReadField0(iprot thrift.TProtocol) erro } func (p *CourseServiceGetCalendarResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetCalendar_result"); err != nil { goto WriteStructBeginError @@ -24070,7 +23723,6 @@ func (p *CourseServiceSubscribeCalendarArgs) IsSetReq() bool { } func (p *CourseServiceSubscribeCalendarArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -24135,7 +23787,6 @@ func (p *CourseServiceSubscribeCalendarArgs) ReadField1(iprot thrift.TProtocol) } func (p *CourseServiceSubscribeCalendarArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("SubscribeCalendar_args"); err != nil { goto WriteStructBeginError @@ -24217,7 +23868,6 @@ func (p *CourseServiceSubscribeCalendarResult) IsSetSuccess() bool { } func (p *CourseServiceSubscribeCalendarResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -24282,7 +23932,6 @@ func (p *CourseServiceSubscribeCalendarResult) ReadField0(iprot thrift.TProtocol } func (p *CourseServiceSubscribeCalendarResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("SubscribeCalendar_result"); err != nil { goto WriteStructBeginError @@ -24366,7 +24015,6 @@ func (p *CourseServiceGetLocateDateArgs) IsSetReq() bool { } func (p *CourseServiceGetLocateDateArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -24431,7 +24079,6 @@ func (p *CourseServiceGetLocateDateArgs) ReadField1(iprot thrift.TProtocol) erro } func (p *CourseServiceGetLocateDateArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetLocateDate_args"); err != nil { goto WriteStructBeginError @@ -24513,7 +24160,6 @@ func (p *CourseServiceGetLocateDateResult) IsSetSuccess() bool { } func (p *CourseServiceGetLocateDateResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -24578,7 +24224,6 @@ func (p *CourseServiceGetLocateDateResult) ReadField0(iprot thrift.TProtocol) er } func (p *CourseServiceGetLocateDateResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetLocateDate_result"); err != nil { goto WriteStructBeginError @@ -25045,7 +24690,6 @@ func (p *LaunchScreenServiceCreateImageArgs) IsSetReq() bool { } func (p *LaunchScreenServiceCreateImageArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -25110,7 +24754,6 @@ func (p *LaunchScreenServiceCreateImageArgs) ReadField1(iprot thrift.TProtocol) } func (p *LaunchScreenServiceCreateImageArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("CreateImage_args"); err != nil { goto WriteStructBeginError @@ -25192,7 +24835,6 @@ func (p *LaunchScreenServiceCreateImageResult) IsSetSuccess() bool { } func (p *LaunchScreenServiceCreateImageResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -25257,7 +24899,6 @@ func (p *LaunchScreenServiceCreateImageResult) ReadField0(iprot thrift.TProtocol } func (p *LaunchScreenServiceCreateImageResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("CreateImage_result"); err != nil { goto WriteStructBeginError @@ -25341,7 +24982,6 @@ func (p *LaunchScreenServiceGetImageArgs) IsSetReq() bool { } func (p *LaunchScreenServiceGetImageArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -25406,7 +25046,6 @@ func (p *LaunchScreenServiceGetImageArgs) ReadField1(iprot thrift.TProtocol) err } func (p *LaunchScreenServiceGetImageArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetImage_args"); err != nil { goto WriteStructBeginError @@ -25488,7 +25127,6 @@ func (p *LaunchScreenServiceGetImageResult) IsSetSuccess() bool { } func (p *LaunchScreenServiceGetImageResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -25553,7 +25191,6 @@ func (p *LaunchScreenServiceGetImageResult) ReadField0(iprot thrift.TProtocol) e } func (p *LaunchScreenServiceGetImageResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetImage_result"); err != nil { goto WriteStructBeginError @@ -25637,7 +25274,6 @@ func (p *LaunchScreenServiceChangeImagePropertyArgs) IsSetReq() bool { } func (p *LaunchScreenServiceChangeImagePropertyArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -25702,7 +25338,6 @@ func (p *LaunchScreenServiceChangeImagePropertyArgs) ReadField1(iprot thrift.TPr } func (p *LaunchScreenServiceChangeImagePropertyArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ChangeImageProperty_args"); err != nil { goto WriteStructBeginError @@ -25784,7 +25419,6 @@ func (p *LaunchScreenServiceChangeImagePropertyResult) IsSetSuccess() bool { } func (p *LaunchScreenServiceChangeImagePropertyResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -25849,7 +25483,6 @@ func (p *LaunchScreenServiceChangeImagePropertyResult) ReadField0(iprot thrift.T } func (p *LaunchScreenServiceChangeImagePropertyResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ChangeImageProperty_result"); err != nil { goto WriteStructBeginError @@ -25933,7 +25566,6 @@ func (p *LaunchScreenServiceChangeImageArgs) IsSetReq() bool { } func (p *LaunchScreenServiceChangeImageArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -25998,7 +25630,6 @@ func (p *LaunchScreenServiceChangeImageArgs) ReadField1(iprot thrift.TProtocol) } func (p *LaunchScreenServiceChangeImageArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ChangeImage_args"); err != nil { goto WriteStructBeginError @@ -26080,7 +25711,6 @@ func (p *LaunchScreenServiceChangeImageResult) IsSetSuccess() bool { } func (p *LaunchScreenServiceChangeImageResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -26145,7 +25775,6 @@ func (p *LaunchScreenServiceChangeImageResult) ReadField0(iprot thrift.TProtocol } func (p *LaunchScreenServiceChangeImageResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ChangeImage_result"); err != nil { goto WriteStructBeginError @@ -26229,7 +25858,6 @@ func (p *LaunchScreenServiceDeleteImageArgs) IsSetReq() bool { } func (p *LaunchScreenServiceDeleteImageArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -26294,7 +25922,6 @@ func (p *LaunchScreenServiceDeleteImageArgs) ReadField1(iprot thrift.TProtocol) } func (p *LaunchScreenServiceDeleteImageArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("DeleteImage_args"); err != nil { goto WriteStructBeginError @@ -26376,7 +26003,6 @@ func (p *LaunchScreenServiceDeleteImageResult) IsSetSuccess() bool { } func (p *LaunchScreenServiceDeleteImageResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -26441,7 +26067,6 @@ func (p *LaunchScreenServiceDeleteImageResult) ReadField0(iprot thrift.TProtocol } func (p *LaunchScreenServiceDeleteImageResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("DeleteImage_result"); err != nil { goto WriteStructBeginError @@ -26525,7 +26150,6 @@ func (p *LaunchScreenServiceMobileGetImageArgs) IsSetReq() bool { } func (p *LaunchScreenServiceMobileGetImageArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -26590,7 +26214,6 @@ func (p *LaunchScreenServiceMobileGetImageArgs) ReadField1(iprot thrift.TProtoco } func (p *LaunchScreenServiceMobileGetImageArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("MobileGetImage_args"); err != nil { goto WriteStructBeginError @@ -26672,7 +26295,6 @@ func (p *LaunchScreenServiceMobileGetImageResult) IsSetSuccess() bool { } func (p *LaunchScreenServiceMobileGetImageResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -26737,7 +26359,6 @@ func (p *LaunchScreenServiceMobileGetImageResult) ReadField0(iprot thrift.TProto } func (p *LaunchScreenServiceMobileGetImageResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("MobileGetImage_result"); err != nil { goto WriteStructBeginError @@ -26821,7 +26442,6 @@ func (p *LaunchScreenServiceAddImagePointTimeArgs) IsSetReq() bool { } func (p *LaunchScreenServiceAddImagePointTimeArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -26886,7 +26506,6 @@ func (p *LaunchScreenServiceAddImagePointTimeArgs) ReadField1(iprot thrift.TProt } func (p *LaunchScreenServiceAddImagePointTimeArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("AddImagePointTime_args"); err != nil { goto WriteStructBeginError @@ -26968,7 +26587,6 @@ func (p *LaunchScreenServiceAddImagePointTimeResult) IsSetSuccess() bool { } func (p *LaunchScreenServiceAddImagePointTimeResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -27033,7 +26651,6 @@ func (p *LaunchScreenServiceAddImagePointTimeResult) ReadField0(iprot thrift.TPr } func (p *LaunchScreenServiceAddImagePointTimeResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("AddImagePointTime_result"); err != nil { goto WriteStructBeginError @@ -27353,7 +26970,6 @@ func (p *PaperServiceListDirFilesArgs) IsSetReq() bool { } func (p *PaperServiceListDirFilesArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -27418,7 +27034,6 @@ func (p *PaperServiceListDirFilesArgs) ReadField1(iprot thrift.TProtocol) error } func (p *PaperServiceListDirFilesArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ListDirFiles_args"); err != nil { goto WriteStructBeginError @@ -27500,7 +27115,6 @@ func (p *PaperServiceListDirFilesResult) IsSetSuccess() bool { } func (p *PaperServiceListDirFilesResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -27565,7 +27179,6 @@ func (p *PaperServiceListDirFilesResult) ReadField0(iprot thrift.TProtocol) erro } func (p *PaperServiceListDirFilesResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ListDirFiles_result"); err != nil { goto WriteStructBeginError @@ -27649,7 +27262,6 @@ func (p *PaperServiceGetDownloadUrlArgs) IsSetReq() bool { } func (p *PaperServiceGetDownloadUrlArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -27714,7 +27326,6 @@ func (p *PaperServiceGetDownloadUrlArgs) ReadField1(iprot thrift.TProtocol) erro } func (p *PaperServiceGetDownloadUrlArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetDownloadUrl_args"); err != nil { goto WriteStructBeginError @@ -27796,7 +27407,6 @@ func (p *PaperServiceGetDownloadUrlResult) IsSetSuccess() bool { } func (p *PaperServiceGetDownloadUrlResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -27861,7 +27471,6 @@ func (p *PaperServiceGetDownloadUrlResult) ReadField0(iprot thrift.TProtocol) er } func (p *PaperServiceGetDownloadUrlResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetDownloadUrl_result"); err != nil { goto WriteStructBeginError @@ -27945,7 +27554,6 @@ func (p *PaperServiceListDirFilesForAndroidArgs) IsSetReq() bool { } func (p *PaperServiceListDirFilesForAndroidArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -28010,7 +27618,6 @@ func (p *PaperServiceListDirFilesForAndroidArgs) ReadField1(iprot thrift.TProtoc } func (p *PaperServiceListDirFilesForAndroidArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ListDirFilesForAndroid_args"); err != nil { goto WriteStructBeginError @@ -28092,7 +27699,6 @@ func (p *PaperServiceListDirFilesForAndroidResult) IsSetSuccess() bool { } func (p *PaperServiceListDirFilesForAndroidResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -28157,7 +27763,6 @@ func (p *PaperServiceListDirFilesForAndroidResult) ReadField0(iprot thrift.TProt } func (p *PaperServiceListDirFilesForAndroidResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ListDirFilesForAndroid_result"); err != nil { goto WriteStructBeginError @@ -28241,7 +27846,6 @@ func (p *PaperServiceGetDownloadUrlForAndroidArgs) IsSetReq() bool { } func (p *PaperServiceGetDownloadUrlForAndroidArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -28306,7 +27910,6 @@ func (p *PaperServiceGetDownloadUrlForAndroidArgs) ReadField1(iprot thrift.TProt } func (p *PaperServiceGetDownloadUrlForAndroidArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetDownloadUrlForAndroid_args"); err != nil { goto WriteStructBeginError @@ -28388,7 +27991,6 @@ func (p *PaperServiceGetDownloadUrlForAndroidResult) IsSetSuccess() bool { } func (p *PaperServiceGetDownloadUrlForAndroidResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -28453,7 +28055,6 @@ func (p *PaperServiceGetDownloadUrlForAndroidResult) ReadField0(iprot thrift.TPr } func (p *PaperServiceGetDownloadUrlForAndroidResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetDownloadUrlForAndroid_result"); err != nil { goto WriteStructBeginError @@ -28822,7 +28423,6 @@ func (p *AcademicServiceGetScoresArgs) IsSetReq() bool { } func (p *AcademicServiceGetScoresArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -28887,7 +28487,6 @@ func (p *AcademicServiceGetScoresArgs) ReadField1(iprot thrift.TProtocol) error } func (p *AcademicServiceGetScoresArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetScores_args"); err != nil { goto WriteStructBeginError @@ -28969,7 +28568,6 @@ func (p *AcademicServiceGetScoresResult) IsSetSuccess() bool { } func (p *AcademicServiceGetScoresResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -29034,7 +28632,6 @@ func (p *AcademicServiceGetScoresResult) ReadField0(iprot thrift.TProtocol) erro } func (p *AcademicServiceGetScoresResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetScores_result"); err != nil { goto WriteStructBeginError @@ -29118,7 +28715,6 @@ func (p *AcademicServiceGetGPAArgs) IsSetReq() bool { } func (p *AcademicServiceGetGPAArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -29183,7 +28779,6 @@ func (p *AcademicServiceGetGPAArgs) ReadField1(iprot thrift.TProtocol) error { } func (p *AcademicServiceGetGPAArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetGPA_args"); err != nil { goto WriteStructBeginError @@ -29265,7 +28860,6 @@ func (p *AcademicServiceGetGPAResult) IsSetSuccess() bool { } func (p *AcademicServiceGetGPAResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -29330,7 +28924,6 @@ func (p *AcademicServiceGetGPAResult) ReadField0(iprot thrift.TProtocol) error { } func (p *AcademicServiceGetGPAResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetGPA_result"); err != nil { goto WriteStructBeginError @@ -29414,7 +29007,6 @@ func (p *AcademicServiceGetCreditArgs) IsSetReq() bool { } func (p *AcademicServiceGetCreditArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -29479,7 +29071,6 @@ func (p *AcademicServiceGetCreditArgs) ReadField1(iprot thrift.TProtocol) error } func (p *AcademicServiceGetCreditArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetCredit_args"); err != nil { goto WriteStructBeginError @@ -29561,7 +29152,6 @@ func (p *AcademicServiceGetCreditResult) IsSetSuccess() bool { } func (p *AcademicServiceGetCreditResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -29626,7 +29216,6 @@ func (p *AcademicServiceGetCreditResult) ReadField0(iprot thrift.TProtocol) erro } func (p *AcademicServiceGetCreditResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetCredit_result"); err != nil { goto WriteStructBeginError @@ -29710,7 +29299,6 @@ func (p *AcademicServiceGetUnifiedExamArgs) IsSetReq() bool { } func (p *AcademicServiceGetUnifiedExamArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -29775,7 +29363,6 @@ func (p *AcademicServiceGetUnifiedExamArgs) ReadField1(iprot thrift.TProtocol) e } func (p *AcademicServiceGetUnifiedExamArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetUnifiedExam_args"); err != nil { goto WriteStructBeginError @@ -29857,7 +29444,6 @@ func (p *AcademicServiceGetUnifiedExamResult) IsSetSuccess() bool { } func (p *AcademicServiceGetUnifiedExamResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -29922,7 +29508,6 @@ func (p *AcademicServiceGetUnifiedExamResult) ReadField0(iprot thrift.TProtocol) } func (p *AcademicServiceGetUnifiedExamResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetUnifiedExam_result"); err != nil { goto WriteStructBeginError @@ -30006,7 +29591,6 @@ func (p *AcademicServiceGetPlanArgs) IsSetReq() bool { } func (p *AcademicServiceGetPlanArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -30071,7 +29655,6 @@ func (p *AcademicServiceGetPlanArgs) ReadField1(iprot thrift.TProtocol) error { } func (p *AcademicServiceGetPlanArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetPlan_args"); err != nil { goto WriteStructBeginError @@ -30153,7 +29736,6 @@ func (p *AcademicServiceGetPlanResult) IsSetSuccess() bool { } func (p *AcademicServiceGetPlanResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -30218,7 +29800,6 @@ func (p *AcademicServiceGetPlanResult) ReadField0(iprot thrift.TProtocol) error } func (p *AcademicServiceGetPlanResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetPlan_result"); err != nil { goto WriteStructBeginError @@ -30979,7 +30560,6 @@ func (p *VersionServiceLoginArgs) IsSetReq() bool { } func (p *VersionServiceLoginArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -31044,7 +30624,6 @@ func (p *VersionServiceLoginArgs) ReadField1(iprot thrift.TProtocol) error { } func (p *VersionServiceLoginArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("Login_args"); err != nil { goto WriteStructBeginError @@ -31126,7 +30705,6 @@ func (p *VersionServiceLoginResult) IsSetSuccess() bool { } func (p *VersionServiceLoginResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -31191,7 +30769,6 @@ func (p *VersionServiceLoginResult) ReadField0(iprot thrift.TProtocol) error { } func (p *VersionServiceLoginResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("Login_result"); err != nil { goto WriteStructBeginError @@ -31275,7 +30852,6 @@ func (p *VersionServiceUploadVersionArgs) IsSetReq() bool { } func (p *VersionServiceUploadVersionArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -31340,7 +30916,6 @@ func (p *VersionServiceUploadVersionArgs) ReadField1(iprot thrift.TProtocol) err } func (p *VersionServiceUploadVersionArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("UploadVersion_args"); err != nil { goto WriteStructBeginError @@ -31422,7 +30997,6 @@ func (p *VersionServiceUploadVersionResult) IsSetSuccess() bool { } func (p *VersionServiceUploadVersionResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -31487,7 +31061,6 @@ func (p *VersionServiceUploadVersionResult) ReadField0(iprot thrift.TProtocol) e } func (p *VersionServiceUploadVersionResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("UploadVersion_result"); err != nil { goto WriteStructBeginError @@ -31571,7 +31144,6 @@ func (p *VersionServiceUploadParamsArgs) IsSetReq() bool { } func (p *VersionServiceUploadParamsArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -31636,7 +31208,6 @@ func (p *VersionServiceUploadParamsArgs) ReadField1(iprot thrift.TProtocol) erro } func (p *VersionServiceUploadParamsArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("UploadParams_args"); err != nil { goto WriteStructBeginError @@ -31718,7 +31289,6 @@ func (p *VersionServiceUploadParamsResult) IsSetSuccess() bool { } func (p *VersionServiceUploadParamsResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -31783,7 +31353,6 @@ func (p *VersionServiceUploadParamsResult) ReadField0(iprot thrift.TProtocol) er } func (p *VersionServiceUploadParamsResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("UploadParams_result"); err != nil { goto WriteStructBeginError @@ -31867,7 +31436,6 @@ func (p *VersionServiceDownloadReleaseApkArgs) IsSetReq() bool { } func (p *VersionServiceDownloadReleaseApkArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -31932,7 +31500,6 @@ func (p *VersionServiceDownloadReleaseApkArgs) ReadField1(iprot thrift.TProtocol } func (p *VersionServiceDownloadReleaseApkArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("DownloadReleaseApk_args"); err != nil { goto WriteStructBeginError @@ -32014,7 +31581,6 @@ func (p *VersionServiceDownloadReleaseApkResult) IsSetSuccess() bool { } func (p *VersionServiceDownloadReleaseApkResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -32079,7 +31645,6 @@ func (p *VersionServiceDownloadReleaseApkResult) ReadField0(iprot thrift.TProtoc } func (p *VersionServiceDownloadReleaseApkResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("DownloadReleaseApk_result"); err != nil { goto WriteStructBeginError @@ -32163,7 +31728,6 @@ func (p *VersionServiceDownloadBetaApkArgs) IsSetReq() bool { } func (p *VersionServiceDownloadBetaApkArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -32228,7 +31792,6 @@ func (p *VersionServiceDownloadBetaApkArgs) ReadField1(iprot thrift.TProtocol) e } func (p *VersionServiceDownloadBetaApkArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("DownloadBetaApk_args"); err != nil { goto WriteStructBeginError @@ -32310,7 +31873,6 @@ func (p *VersionServiceDownloadBetaApkResult) IsSetSuccess() bool { } func (p *VersionServiceDownloadBetaApkResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -32375,7 +31937,6 @@ func (p *VersionServiceDownloadBetaApkResult) ReadField0(iprot thrift.TProtocol) } func (p *VersionServiceDownloadBetaApkResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("DownloadBetaApk_result"); err != nil { goto WriteStructBeginError @@ -32459,7 +32020,6 @@ func (p *VersionServiceGetReleaseVersionArgs) IsSetReq() bool { } func (p *VersionServiceGetReleaseVersionArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -32524,7 +32084,6 @@ func (p *VersionServiceGetReleaseVersionArgs) ReadField1(iprot thrift.TProtocol) } func (p *VersionServiceGetReleaseVersionArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetReleaseVersion_args"); err != nil { goto WriteStructBeginError @@ -32606,7 +32165,6 @@ func (p *VersionServiceGetReleaseVersionResult) IsSetSuccess() bool { } func (p *VersionServiceGetReleaseVersionResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -32671,7 +32229,6 @@ func (p *VersionServiceGetReleaseVersionResult) ReadField0(iprot thrift.TProtoco } func (p *VersionServiceGetReleaseVersionResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetReleaseVersion_result"); err != nil { goto WriteStructBeginError @@ -32755,7 +32312,6 @@ func (p *VersionServiceGetBetaVersionArgs) IsSetReq() bool { } func (p *VersionServiceGetBetaVersionArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -32820,7 +32376,6 @@ func (p *VersionServiceGetBetaVersionArgs) ReadField1(iprot thrift.TProtocol) er } func (p *VersionServiceGetBetaVersionArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetBetaVersion_args"); err != nil { goto WriteStructBeginError @@ -32902,7 +32457,6 @@ func (p *VersionServiceGetBetaVersionResult) IsSetSuccess() bool { } func (p *VersionServiceGetBetaVersionResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -32967,7 +32521,6 @@ func (p *VersionServiceGetBetaVersionResult) ReadField0(iprot thrift.TProtocol) } func (p *VersionServiceGetBetaVersionResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetBetaVersion_result"); err != nil { goto WriteStructBeginError @@ -33051,7 +32604,6 @@ func (p *VersionServiceGetSettingArgs) IsSetReq() bool { } func (p *VersionServiceGetSettingArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -33116,7 +32668,6 @@ func (p *VersionServiceGetSettingArgs) ReadField1(iprot thrift.TProtocol) error } func (p *VersionServiceGetSettingArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetSetting_args"); err != nil { goto WriteStructBeginError @@ -33198,7 +32749,6 @@ func (p *VersionServiceGetSettingResult) IsSetSuccess() bool { } func (p *VersionServiceGetSettingResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -33263,7 +32813,6 @@ func (p *VersionServiceGetSettingResult) ReadField0(iprot thrift.TProtocol) erro } func (p *VersionServiceGetSettingResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetSetting_result"); err != nil { goto WriteStructBeginError @@ -33347,7 +32896,6 @@ func (p *VersionServiceGetTestArgs) IsSetReq() bool { } func (p *VersionServiceGetTestArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -33412,7 +32960,6 @@ func (p *VersionServiceGetTestArgs) ReadField1(iprot thrift.TProtocol) error { } func (p *VersionServiceGetTestArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetTest_args"); err != nil { goto WriteStructBeginError @@ -33494,7 +33041,6 @@ func (p *VersionServiceGetTestResult) IsSetSuccess() bool { } func (p *VersionServiceGetTestResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -33559,7 +33105,6 @@ func (p *VersionServiceGetTestResult) ReadField0(iprot thrift.TProtocol) error { } func (p *VersionServiceGetTestResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetTest_result"); err != nil { goto WriteStructBeginError @@ -33643,7 +33188,6 @@ func (p *VersionServiceGetCloudArgs) IsSetReq() bool { } func (p *VersionServiceGetCloudArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -33708,7 +33252,6 @@ func (p *VersionServiceGetCloudArgs) ReadField1(iprot thrift.TProtocol) error { } func (p *VersionServiceGetCloudArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetCloud_args"); err != nil { goto WriteStructBeginError @@ -33790,7 +33333,6 @@ func (p *VersionServiceGetCloudResult) IsSetSuccess() bool { } func (p *VersionServiceGetCloudResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -33855,7 +33397,6 @@ func (p *VersionServiceGetCloudResult) ReadField0(iprot thrift.TProtocol) error } func (p *VersionServiceGetCloudResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetCloud_result"); err != nil { goto WriteStructBeginError @@ -33939,7 +33480,6 @@ func (p *VersionServiceSetCloudArgs) IsSetReq() bool { } func (p *VersionServiceSetCloudArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -34004,7 +33544,6 @@ func (p *VersionServiceSetCloudArgs) ReadField1(iprot thrift.TProtocol) error { } func (p *VersionServiceSetCloudArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("SetCloud_args"); err != nil { goto WriteStructBeginError @@ -34086,7 +33625,6 @@ func (p *VersionServiceSetCloudResult) IsSetSuccess() bool { } func (p *VersionServiceSetCloudResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -34151,7 +33689,6 @@ func (p *VersionServiceSetCloudResult) ReadField0(iprot thrift.TProtocol) error } func (p *VersionServiceSetCloudResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("SetCloud_result"); err != nil { goto WriteStructBeginError @@ -34235,7 +33772,6 @@ func (p *VersionServiceGetDumpArgs) IsSetReq() bool { } func (p *VersionServiceGetDumpArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -34300,7 +33836,6 @@ func (p *VersionServiceGetDumpArgs) ReadField1(iprot thrift.TProtocol) error { } func (p *VersionServiceGetDumpArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetDump_args"); err != nil { goto WriteStructBeginError @@ -34382,7 +33917,6 @@ func (p *VersionServiceGetDumpResult) IsSetSuccess() bool { } func (p *VersionServiceGetDumpResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -34447,7 +33981,6 @@ func (p *VersionServiceGetDumpResult) ReadField0(iprot thrift.TProtocol) error { } func (p *VersionServiceGetDumpResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetDump_result"); err != nil { goto WriteStructBeginError @@ -34531,7 +34064,6 @@ func (p *VersionServiceAndroidGetVersionArgs) IsSetReq() bool { } func (p *VersionServiceAndroidGetVersionArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -34596,7 +34128,6 @@ func (p *VersionServiceAndroidGetVersionArgs) ReadField1(iprot thrift.TProtocol) } func (p *VersionServiceAndroidGetVersionArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("AndroidGetVersion_args"); err != nil { goto WriteStructBeginError @@ -34678,7 +34209,6 @@ func (p *VersionServiceAndroidGetVersionResult) IsSetSuccess() bool { } func (p *VersionServiceAndroidGetVersionResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -34743,7 +34273,6 @@ func (p *VersionServiceAndroidGetVersionResult) ReadField0(iprot thrift.TProtoco } func (p *VersionServiceAndroidGetVersionResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("AndroidGetVersion_result"); err != nil { goto WriteStructBeginError @@ -35210,7 +34739,6 @@ func (p *CommonServiceGetCSSArgs) IsSetReq() bool { } func (p *CommonServiceGetCSSArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -35275,7 +34803,6 @@ func (p *CommonServiceGetCSSArgs) ReadField1(iprot thrift.TProtocol) error { } func (p *CommonServiceGetCSSArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetCSS_args"); err != nil { goto WriteStructBeginError @@ -35357,7 +34884,6 @@ func (p *CommonServiceGetCSSResult) IsSetSuccess() bool { } func (p *CommonServiceGetCSSResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -35422,7 +34948,6 @@ func (p *CommonServiceGetCSSResult) ReadField0(iprot thrift.TProtocol) error { } func (p *CommonServiceGetCSSResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetCSS_result"); err != nil { goto WriteStructBeginError @@ -35506,7 +35031,6 @@ func (p *CommonServiceGetHtmlArgs) IsSetReq() bool { } func (p *CommonServiceGetHtmlArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -35571,7 +35095,6 @@ func (p *CommonServiceGetHtmlArgs) ReadField1(iprot thrift.TProtocol) error { } func (p *CommonServiceGetHtmlArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetHtml_args"); err != nil { goto WriteStructBeginError @@ -35653,7 +35176,6 @@ func (p *CommonServiceGetHtmlResult) IsSetSuccess() bool { } func (p *CommonServiceGetHtmlResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -35718,7 +35240,6 @@ func (p *CommonServiceGetHtmlResult) ReadField0(iprot thrift.TProtocol) error { } func (p *CommonServiceGetHtmlResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetHtml_result"); err != nil { goto WriteStructBeginError @@ -35802,7 +35323,6 @@ func (p *CommonServiceGetUserAgreementArgs) IsSetReq() bool { } func (p *CommonServiceGetUserAgreementArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -35867,7 +35387,6 @@ func (p *CommonServiceGetUserAgreementArgs) ReadField1(iprot thrift.TProtocol) e } func (p *CommonServiceGetUserAgreementArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetUserAgreement_args"); err != nil { goto WriteStructBeginError @@ -35949,7 +35468,6 @@ func (p *CommonServiceGetUserAgreementResult) IsSetSuccess() bool { } func (p *CommonServiceGetUserAgreementResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -36014,7 +35532,6 @@ func (p *CommonServiceGetUserAgreementResult) ReadField0(iprot thrift.TProtocol) } func (p *CommonServiceGetUserAgreementResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetUserAgreement_result"); err != nil { goto WriteStructBeginError @@ -36098,7 +35615,6 @@ func (p *CommonServiceGetTermsListArgs) IsSetReq() bool { } func (p *CommonServiceGetTermsListArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -36163,7 +35679,6 @@ func (p *CommonServiceGetTermsListArgs) ReadField1(iprot thrift.TProtocol) error } func (p *CommonServiceGetTermsListArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetTermsList_args"); err != nil { goto WriteStructBeginError @@ -36245,7 +35760,6 @@ func (p *CommonServiceGetTermsListResult) IsSetSuccess() bool { } func (p *CommonServiceGetTermsListResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -36310,7 +35824,6 @@ func (p *CommonServiceGetTermsListResult) ReadField0(iprot thrift.TProtocol) err } func (p *CommonServiceGetTermsListResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetTermsList_result"); err != nil { goto WriteStructBeginError @@ -36394,7 +35907,6 @@ func (p *CommonServiceGetTermArgs) IsSetReq() bool { } func (p *CommonServiceGetTermArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -36459,7 +35971,6 @@ func (p *CommonServiceGetTermArgs) ReadField1(iprot thrift.TProtocol) error { } func (p *CommonServiceGetTermArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetTerm_args"); err != nil { goto WriteStructBeginError @@ -36541,7 +36052,6 @@ func (p *CommonServiceGetTermResult) IsSetSuccess() bool { } func (p *CommonServiceGetTermResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -36606,7 +36116,6 @@ func (p *CommonServiceGetTermResult) ReadField0(iprot thrift.TProtocol) error { } func (p *CommonServiceGetTermResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetTerm_result"); err != nil { goto WriteStructBeginError @@ -36690,7 +36199,6 @@ func (p *CommonServiceGetNoticeArgs) IsSetReq() bool { } func (p *CommonServiceGetNoticeArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -36755,7 +36263,6 @@ func (p *CommonServiceGetNoticeArgs) ReadField1(iprot thrift.TProtocol) error { } func (p *CommonServiceGetNoticeArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetNotice_args"); err != nil { goto WriteStructBeginError @@ -36837,7 +36344,6 @@ func (p *CommonServiceGetNoticeResult) IsSetSuccess() bool { } func (p *CommonServiceGetNoticeResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -36902,7 +36408,6 @@ func (p *CommonServiceGetNoticeResult) ReadField0(iprot thrift.TProtocol) error } func (p *CommonServiceGetNoticeResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetNotice_result"); err != nil { goto WriteStructBeginError @@ -36986,7 +36491,6 @@ func (p *CommonServiceGetContributorInfoArgs) IsSetReq() bool { } func (p *CommonServiceGetContributorInfoArgs) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -37051,7 +36555,6 @@ func (p *CommonServiceGetContributorInfoArgs) ReadField1(iprot thrift.TProtocol) } func (p *CommonServiceGetContributorInfoArgs) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetContributorInfo_args"); err != nil { goto WriteStructBeginError @@ -37133,7 +36636,6 @@ func (p *CommonServiceGetContributorInfoResult) IsSetSuccess() bool { } func (p *CommonServiceGetContributorInfoResult) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -37198,7 +36700,6 @@ func (p *CommonServiceGetContributorInfoResult) ReadField0(iprot thrift.TProtoco } func (p *CommonServiceGetContributorInfoResult) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GetContributorInfo_result"); err != nil { goto WriteStructBeginError diff --git a/api/model/model/model.go b/api/model/model/model.go index 2a64d2b8..ee842639 100644 --- a/api/model/model/model.go +++ b/api/model/model/model.go @@ -14,13 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by thriftgo (0.3.18). DO NOT EDIT. +// Code generated by thriftgo (0.4.1). DO NOT EDIT. package model import ( "fmt" - "github.com/apache/thrift/lib/go/thrift" ) @@ -50,7 +49,6 @@ var fieldIDToName_BaseResp = map[int16]string{ } func (p *BaseResp) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -137,7 +135,6 @@ func (p *BaseResp) ReadField2(iprot thrift.TProtocol) error { } func (p *BaseResp) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("BaseResp"); err != nil { goto WriteStructBeginError @@ -185,7 +182,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *BaseResp) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("msg", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -240,7 +236,6 @@ var fieldIDToName_LoginData = map[int16]string{ } func (p *LoginData) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetID bool = false @@ -342,7 +337,6 @@ func (p *LoginData) ReadField2(iprot thrift.TProtocol) error { } func (p *LoginData) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("LoginData"); err != nil { goto WriteStructBeginError @@ -390,7 +384,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *LoginData) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("cookies", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -472,7 +465,6 @@ var fieldIDToName_UserInfo = map[int16]string{ } func (p *UserInfo) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetStuID bool = false @@ -704,7 +696,6 @@ func (p *UserInfo) ReadField7(iprot thrift.TProtocol) error { } func (p *UserInfo) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("UserInfo"); err != nil { goto WriteStructBeginError @@ -772,7 +763,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *UserInfo) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("name", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -789,7 +779,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *UserInfo) writeField3(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("birthday", thrift.STRING, 3); err != nil { goto WriteFieldBeginError @@ -806,7 +795,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *UserInfo) writeField4(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("sex", thrift.STRING, 4); err != nil { goto WriteFieldBeginError @@ -823,7 +811,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 4 end error: ", p), err) } - func (p *UserInfo) writeField5(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("college", thrift.STRING, 5); err != nil { goto WriteFieldBeginError @@ -840,7 +827,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 5 end error: ", p), err) } - func (p *UserInfo) writeField6(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("grade", thrift.STRING, 6); err != nil { goto WriteFieldBeginError @@ -857,7 +843,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 6 end error: ", p), err) } - func (p *UserInfo) writeField7(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("major", thrift.STRING, 7); err != nil { goto WriteFieldBeginError @@ -926,7 +911,6 @@ var fieldIDToName_Classroom = map[int16]string{ } func (p *Classroom) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetBuild bool = false @@ -1080,7 +1064,6 @@ func (p *Classroom) ReadField4(iprot thrift.TProtocol) error { } func (p *Classroom) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("Classroom"); err != nil { goto WriteStructBeginError @@ -1136,7 +1119,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *Classroom) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("location", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -1153,7 +1135,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *Classroom) writeField3(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("capacity", thrift.STRING, 3); err != nil { goto WriteFieldBeginError @@ -1170,7 +1151,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *Classroom) writeField4(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("type", thrift.STRING, 4); err != nil { goto WriteFieldBeginError @@ -1253,7 +1233,6 @@ var fieldIDToName_ExamRoomInfo = map[int16]string{ } func (p *ExamRoomInfo) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetName bool = false @@ -1459,7 +1438,6 @@ func (p *ExamRoomInfo) ReadField6(iprot thrift.TProtocol) error { } func (p *ExamRoomInfo) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("ExamRoomInfo"); err != nil { goto WriteStructBeginError @@ -1523,7 +1501,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *ExamRoomInfo) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("credit", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -1540,7 +1517,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *ExamRoomInfo) writeField3(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("teacher", thrift.STRING, 3); err != nil { goto WriteFieldBeginError @@ -1557,7 +1533,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *ExamRoomInfo) writeField4(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("location", thrift.STRING, 4); err != nil { goto WriteFieldBeginError @@ -1574,7 +1549,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 4 end error: ", p), err) } - func (p *ExamRoomInfo) writeField5(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("time", thrift.STRING, 5); err != nil { goto WriteFieldBeginError @@ -1591,7 +1565,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 5 end error: ", p), err) } - func (p *ExamRoomInfo) writeField6(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("date", thrift.STRING, 6); err != nil { goto WriteFieldBeginError @@ -1695,7 +1668,6 @@ var fieldIDToName_CourseScheduleRule = map[int16]string{ } func (p *CourseScheduleRule) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetLocation bool = false @@ -1979,7 +1951,6 @@ func (p *CourseScheduleRule) ReadField9(iprot thrift.TProtocol) error { } func (p *CourseScheduleRule) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("CourseScheduleRule"); err != nil { goto WriteStructBeginError @@ -2055,7 +2026,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *CourseScheduleRule) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("startClass", thrift.I64, 2); err != nil { goto WriteFieldBeginError @@ -2072,7 +2042,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *CourseScheduleRule) writeField3(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("endClass", thrift.I64, 3); err != nil { goto WriteFieldBeginError @@ -2089,7 +2058,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *CourseScheduleRule) writeField4(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("startWeek", thrift.I64, 4); err != nil { goto WriteFieldBeginError @@ -2106,7 +2074,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 4 end error: ", p), err) } - func (p *CourseScheduleRule) writeField5(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("endWeek", thrift.I64, 5); err != nil { goto WriteFieldBeginError @@ -2123,7 +2090,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 5 end error: ", p), err) } - func (p *CourseScheduleRule) writeField6(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("weekday", thrift.I64, 6); err != nil { goto WriteFieldBeginError @@ -2140,7 +2106,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 6 end error: ", p), err) } - func (p *CourseScheduleRule) writeField7(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("single", thrift.BOOL, 7); err != nil { goto WriteFieldBeginError @@ -2157,7 +2122,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 7 end error: ", p), err) } - func (p *CourseScheduleRule) writeField8(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("double", thrift.BOOL, 8); err != nil { goto WriteFieldBeginError @@ -2174,7 +2138,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 8 end error: ", p), err) } - func (p *CourseScheduleRule) writeField9(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("adjust", thrift.BOOL, 9); err != nil { goto WriteFieldBeginError @@ -2278,7 +2241,6 @@ var fieldIDToName_Course = map[int16]string{ } func (p *Course) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetName bool = false @@ -2574,7 +2536,6 @@ func (p *Course) ReadField9(iprot thrift.TProtocol) error { } func (p *Course) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("Course"); err != nil { goto WriteStructBeginError @@ -2650,7 +2611,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *Course) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("teacher", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -2667,7 +2627,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *Course) writeField3(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("scheduleRules", thrift.LIST, 3); err != nil { goto WriteFieldBeginError @@ -2692,7 +2651,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *Course) writeField4(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("remark", thrift.STRING, 4); err != nil { goto WriteFieldBeginError @@ -2709,7 +2667,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 4 end error: ", p), err) } - func (p *Course) writeField5(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("lessonplan", thrift.STRING, 5); err != nil { goto WriteFieldBeginError @@ -2726,7 +2683,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 5 end error: ", p), err) } - func (p *Course) writeField6(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("syllabus", thrift.STRING, 6); err != nil { goto WriteFieldBeginError @@ -2743,7 +2699,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 6 end error: ", p), err) } - func (p *Course) writeField7(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("rawScheduleRules", thrift.STRING, 7); err != nil { goto WriteFieldBeginError @@ -2760,7 +2715,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 7 end error: ", p), err) } - func (p *Course) writeField8(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("rawAdjust", thrift.STRING, 8); err != nil { goto WriteFieldBeginError @@ -2777,7 +2731,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 8 end error: ", p), err) } - func (p *Course) writeField9(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("examType", thrift.STRING, 9); err != nil { goto WriteFieldBeginError @@ -2842,7 +2795,6 @@ var fieldIDToName_LocateDate = map[int16]string{ } func (p *LocateDate) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetWeek bool = false @@ -2996,7 +2948,6 @@ func (p *LocateDate) ReadField4(iprot thrift.TProtocol) error { } func (p *LocateDate) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("LocateDate"); err != nil { goto WriteStructBeginError @@ -3052,7 +3003,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *LocateDate) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("year", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -3069,7 +3019,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *LocateDate) writeField3(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("term", thrift.STRING, 3); err != nil { goto WriteFieldBeginError @@ -3086,7 +3035,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *LocateDate) writeField4(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("date", thrift.STRING, 4); err != nil { goto WriteFieldBeginError @@ -3259,7 +3207,6 @@ func (p *Picture) IsSetSType() bool { } func (p *Picture) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -3593,7 +3540,6 @@ func (p *Picture) ReadField16(iprot thrift.TProtocol) error { } func (p *Picture) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("Picture"); err != nil { goto WriteStructBeginError @@ -3693,7 +3639,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *Picture) writeField3(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("url", thrift.STRING, 3); err != nil { goto WriteFieldBeginError @@ -3710,7 +3655,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *Picture) writeField4(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("href", thrift.STRING, 4); err != nil { goto WriteFieldBeginError @@ -3727,7 +3671,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 4 end error: ", p), err) } - func (p *Picture) writeField5(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("text", thrift.STRING, 5); err != nil { goto WriteFieldBeginError @@ -3744,7 +3687,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 5 end error: ", p), err) } - func (p *Picture) writeField6(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("type", thrift.I64, 6); err != nil { goto WriteFieldBeginError @@ -3761,7 +3703,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 6 end error: ", p), err) } - func (p *Picture) writeField7(oprot thrift.TProtocol) (err error) { if p.IsSetShowTimes() { if err = oprot.WriteFieldBegin("show_times", thrift.I64, 7); err != nil { @@ -3780,7 +3721,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 7 end error: ", p), err) } - func (p *Picture) writeField8(oprot thrift.TProtocol) (err error) { if p.IsSetPointTimes() { if err = oprot.WriteFieldBegin("point_times", thrift.I64, 8); err != nil { @@ -3799,7 +3739,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 8 end error: ", p), err) } - func (p *Picture) writeField9(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("duration", thrift.I64, 9); err != nil { goto WriteFieldBeginError @@ -3816,7 +3755,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 9 end error: ", p), err) } - func (p *Picture) writeField10(oprot thrift.TProtocol) (err error) { if p.IsSetSType() { if err = oprot.WriteFieldBegin("s_type", thrift.I64, 10); err != nil { @@ -3835,7 +3773,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 10 end error: ", p), err) } - func (p *Picture) writeField11(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("frequency", thrift.I64, 11); err != nil { goto WriteFieldBeginError @@ -3852,7 +3789,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 11 end error: ", p), err) } - func (p *Picture) writeField12(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("start_at", thrift.I64, 12); err != nil { goto WriteFieldBeginError @@ -3869,7 +3805,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 12 end error: ", p), err) } - func (p *Picture) writeField13(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("end_at", thrift.I64, 13); err != nil { goto WriteFieldBeginError @@ -3886,7 +3821,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 13 end error: ", p), err) } - func (p *Picture) writeField14(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("start_time", thrift.I64, 14); err != nil { goto WriteFieldBeginError @@ -3903,7 +3837,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 14 end error: ", p), err) } - func (p *Picture) writeField15(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("end_time", thrift.I64, 15); err != nil { goto WriteFieldBeginError @@ -3920,7 +3853,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 15 end error: ", p), err) } - func (p *Picture) writeField16(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("regex", thrift.STRING, 16); err != nil { goto WriteFieldBeginError @@ -3991,7 +3923,6 @@ func (p *UpYunFileDir) IsSetBasePath() bool { } func (p *UpYunFileDir) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetFiles bool = false @@ -4136,7 +4067,6 @@ func (p *UpYunFileDir) ReadField3(iprot thrift.TProtocol) error { } func (p *UpYunFileDir) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("UpYunFileDir"); err != nil { goto WriteStructBeginError @@ -4190,7 +4120,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *UpYunFileDir) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("files", thrift.LIST, 2); err != nil { goto WriteFieldBeginError @@ -4215,7 +4144,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *UpYunFileDir) writeField3(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("folders", thrift.LIST, 3); err != nil { goto WriteFieldBeginError @@ -4267,6 +4195,8 @@ type Score struct { ExamType string `thrift:"exam_type,7,required" form:"exam_type,required" json:"exam_type,required" query:"exam_type,required"` // 选修类型 ElectiveType string `thrift:"elective_type,8,required" form:"elective_type,required" json:"elective_type,required" query:"elective_type,required"` + // 上课地点 + Classroom string `thrift:"classroom,9,required" form:"classroom,required" json:"classroom,required" query:"classroom,required"` } func NewScore() *Score { @@ -4308,6 +4238,10 @@ func (p *Score) GetElectiveType() (v string) { return p.ElectiveType } +func (p *Score) GetClassroom() (v string) { + return p.Classroom +} + var fieldIDToName_Score = map[int16]string{ 1: "credit", 2: "gpa", @@ -4317,10 +4251,10 @@ var fieldIDToName_Score = map[int16]string{ 6: "term", 7: "exam_type", 8: "elective_type", + 9: "classroom", } func (p *Score) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetCredit bool = false @@ -4331,6 +4265,7 @@ func (p *Score) Read(iprot thrift.TProtocol) (err error) { var issetTerm bool = false var issetExamType bool = false var issetElectiveType bool = false + var issetClassroom bool = false if _, err = iprot.ReadStructBegin(); err != nil { goto ReadStructBeginError @@ -4418,6 +4353,15 @@ func (p *Score) Read(iprot thrift.TProtocol) (err error) { } else if err = iprot.Skip(fieldTypeId); err != nil { goto SkipFieldError } + case 9: + if fieldTypeId == thrift.STRING { + if err = p.ReadField9(iprot); err != nil { + goto ReadFieldError + } + issetClassroom = true + } else if err = iprot.Skip(fieldTypeId); err != nil { + goto SkipFieldError + } default: if err = iprot.Skip(fieldTypeId); err != nil { goto SkipFieldError @@ -4470,6 +4414,11 @@ func (p *Score) Read(iprot thrift.TProtocol) (err error) { fieldId = 8 goto RequiredFieldNotSetError } + + if !issetClassroom { + fieldId = 9 + goto RequiredFieldNotSetError + } return nil ReadStructBeginError: return thrift.PrependError(fmt.Sprintf("%T read struct begin error: ", p), err) @@ -4576,9 +4525,19 @@ func (p *Score) ReadField8(iprot thrift.TProtocol) error { p.ElectiveType = _field return nil } +func (p *Score) ReadField9(iprot thrift.TProtocol) error { -func (p *Score) Write(oprot thrift.TProtocol) (err error) { + var _field string + if v, err := iprot.ReadString(); err != nil { + return err + } else { + _field = v + } + p.Classroom = _field + return nil +} +func (p *Score) Write(oprot thrift.TProtocol) (err error) { var fieldId int16 if err = oprot.WriteStructBegin("Score"); err != nil { goto WriteStructBeginError @@ -4616,6 +4575,10 @@ func (p *Score) Write(oprot thrift.TProtocol) (err error) { fieldId = 8 goto WriteFieldError } + if err = p.writeField9(oprot); err != nil { + fieldId = 9 + goto WriteFieldError + } } if err = oprot.WriteFieldStop(); err != nil { goto WriteFieldStopError @@ -4650,7 +4613,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *Score) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("gpa", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -4667,7 +4629,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *Score) writeField3(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("name", thrift.STRING, 3); err != nil { goto WriteFieldBeginError @@ -4684,7 +4645,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *Score) writeField4(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("score", thrift.STRING, 4); err != nil { goto WriteFieldBeginError @@ -4701,7 +4661,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 4 end error: ", p), err) } - func (p *Score) writeField5(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("teacher", thrift.STRING, 5); err != nil { goto WriteFieldBeginError @@ -4718,7 +4677,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 5 end error: ", p), err) } - func (p *Score) writeField6(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("term", thrift.STRING, 6); err != nil { goto WriteFieldBeginError @@ -4735,7 +4693,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 6 end error: ", p), err) } - func (p *Score) writeField7(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("exam_type", thrift.STRING, 7); err != nil { goto WriteFieldBeginError @@ -4752,7 +4709,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 7 end error: ", p), err) } - func (p *Score) writeField8(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("elective_type", thrift.STRING, 8); err != nil { goto WriteFieldBeginError @@ -4769,6 +4725,22 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 8 end error: ", p), err) } +func (p *Score) writeField9(oprot thrift.TProtocol) (err error) { + if err = oprot.WriteFieldBegin("classroom", thrift.STRING, 9); err != nil { + goto WriteFieldBeginError + } + if err := oprot.WriteString(p.Classroom); err != nil { + return err + } + if err = oprot.WriteFieldEnd(); err != nil { + goto WriteFieldEndError + } + return nil +WriteFieldBeginError: + return thrift.PrependError(fmt.Sprintf("%T write field 9 begin error: ", p), err) +WriteFieldEndError: + return thrift.PrependError(fmt.Sprintf("%T write field 9 end error: ", p), err) +} func (p *Score) String() string { if p == nil { @@ -4807,7 +4779,6 @@ var fieldIDToName_GPABean = map[int16]string{ } func (p *GPABean) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetTime bool = false @@ -4921,7 +4892,6 @@ func (p *GPABean) ReadField2(iprot thrift.TProtocol) error { } func (p *GPABean) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GPABean"); err != nil { goto WriteStructBeginError @@ -4969,7 +4939,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GPABean) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("data", thrift.LIST, 2); err != nil { goto WriteFieldBeginError @@ -5032,7 +5001,6 @@ var fieldIDToName_GPAData = map[int16]string{ } func (p *GPAData) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetType bool = false @@ -5134,7 +5102,6 @@ func (p *GPAData) ReadField2(iprot thrift.TProtocol) error { } func (p *GPAData) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("GPAData"); err != nil { goto WriteStructBeginError @@ -5182,7 +5149,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *GPAData) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("value", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -5241,7 +5207,6 @@ var fieldIDToName_Credit = map[int16]string{ } func (p *Credit) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetType bool = false @@ -5369,7 +5334,6 @@ func (p *Credit) ReadField3(iprot thrift.TProtocol) error { } func (p *Credit) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("Credit"); err != nil { goto WriteStructBeginError @@ -5421,7 +5385,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *Credit) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("gain", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -5438,7 +5401,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *Credit) writeField3(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("total", thrift.STRING, 3); err != nil { goto WriteFieldBeginError @@ -5497,7 +5459,6 @@ var fieldIDToName_UnifiedExam = map[int16]string{ } func (p *UnifiedExam) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetName bool = false @@ -5625,7 +5586,6 @@ func (p *UnifiedExam) ReadField3(iprot thrift.TProtocol) error { } func (p *UnifiedExam) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("UnifiedExam"); err != nil { goto WriteStructBeginError @@ -5677,7 +5637,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *UnifiedExam) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("score", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -5694,7 +5653,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *UnifiedExam) writeField3(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("term", thrift.STRING, 3); err != nil { goto WriteFieldBeginError @@ -5765,7 +5723,6 @@ func (p *PaperData) IsSetBasePath() bool { } func (p *PaperData) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetFiles bool = false @@ -5910,7 +5867,6 @@ func (p *PaperData) ReadField3(iprot thrift.TProtocol) error { } func (p *PaperData) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("PaperData"); err != nil { goto WriteStructBeginError @@ -5964,7 +5920,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *PaperData) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("files", thrift.LIST, 2); err != nil { goto WriteFieldBeginError @@ -5989,7 +5944,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *PaperData) writeField3(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("folders", thrift.LIST, 3); err != nil { goto WriteFieldBeginError @@ -6043,7 +5997,6 @@ var fieldIDToName_PaperUrlData = map[int16]string{ } func (p *PaperUrlData) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 var issetURL bool = false @@ -6119,7 +6072,6 @@ func (p *PaperUrlData) ReadField1(iprot thrift.TProtocol) error { } func (p *PaperUrlData) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("PaperUrlData"); err != nil { goto WriteStructBeginError @@ -6263,7 +6215,6 @@ func (p *Term) IsSetEndDate() bool { } func (p *Term) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -6407,7 +6358,6 @@ func (p *Term) ReadField5(iprot thrift.TProtocol) error { } func (p *Term) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("Term"); err != nil { goto WriteStructBeginError @@ -6469,7 +6419,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *Term) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetSchoolYear() { if err = oprot.WriteFieldBegin("school_year", thrift.STRING, 2); err != nil { @@ -6488,7 +6437,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *Term) writeField3(oprot thrift.TProtocol) (err error) { if p.IsSetTerm() { if err = oprot.WriteFieldBegin("term", thrift.STRING, 3); err != nil { @@ -6507,7 +6455,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *Term) writeField4(oprot thrift.TProtocol) (err error) { if p.IsSetStartDate() { if err = oprot.WriteFieldBegin("start_date", thrift.STRING, 4); err != nil { @@ -6526,7 +6473,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 4 end error: ", p), err) } - func (p *Term) writeField5(oprot thrift.TProtocol) (err error) { if p.IsSetEndDate() { if err = oprot.WriteFieldBegin("end_date", thrift.STRING, 5); err != nil { @@ -6613,7 +6559,6 @@ func (p *TermEvent) IsSetEndDate() bool { } func (p *TermEvent) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -6719,7 +6664,6 @@ func (p *TermEvent) ReadField3(iprot thrift.TProtocol) error { } func (p *TermEvent) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("TermEvent"); err != nil { goto WriteStructBeginError @@ -6773,7 +6717,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *TermEvent) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetStartDate() { if err = oprot.WriteFieldBegin("start_date", thrift.STRING, 2); err != nil { @@ -6792,7 +6735,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *TermEvent) writeField3(oprot thrift.TProtocol) (err error) { if p.IsSetEndDate() { if err = oprot.WriteFieldBegin("end_date", thrift.STRING, 3); err != nil { @@ -6864,7 +6806,6 @@ func (p *TermList) IsSetTerms() bool { } func (p *TermList) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -6963,7 +6904,6 @@ func (p *TermList) ReadField2(iprot thrift.TProtocol) error { } func (p *TermList) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("TermList"); err != nil { goto WriteStructBeginError @@ -7013,7 +6953,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *TermList) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetTerms() { if err = oprot.WriteFieldBegin("terms", thrift.LIST, 2); err != nil { @@ -7123,7 +7062,6 @@ func (p *TermInfo) IsSetEvents() bool { } func (p *TermInfo) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -7260,7 +7198,6 @@ func (p *TermInfo) ReadField4(iprot thrift.TProtocol) error { } func (p *TermInfo) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("TermInfo"); err != nil { goto WriteStructBeginError @@ -7318,7 +7255,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *TermInfo) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetTerm() { if err = oprot.WriteFieldBegin("term", thrift.STRING, 2); err != nil { @@ -7337,7 +7273,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *TermInfo) writeField3(oprot thrift.TProtocol) (err error) { if p.IsSetSchoolYear() { if err = oprot.WriteFieldBegin("school_year", thrift.STRING, 3); err != nil { @@ -7356,7 +7291,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *TermInfo) writeField4(oprot thrift.TProtocol) (err error) { if p.IsSetEvents() { if err = oprot.WriteFieldBegin("events", thrift.LIST, 4); err != nil { @@ -7451,7 +7385,6 @@ func (p *NoticeInfo) IsSetDate() bool { } func (p *NoticeInfo) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -7557,7 +7490,6 @@ func (p *NoticeInfo) ReadField3(iprot thrift.TProtocol) error { } func (p *NoticeInfo) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("NoticeInfo"); err != nil { goto WriteStructBeginError @@ -7611,7 +7543,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *NoticeInfo) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetURL() { if err = oprot.WriteFieldBegin("url", thrift.STRING, 2); err != nil { @@ -7630,7 +7561,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *NoticeInfo) writeField3(oprot thrift.TProtocol) (err error) { if p.IsSetDate() { if err = oprot.WriteFieldBegin("date", thrift.STRING, 3); err != nil { @@ -7696,7 +7626,6 @@ var fieldIDToName_Contributor = map[int16]string{ } func (p *Contributor) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -7821,7 +7750,6 @@ func (p *Contributor) ReadField4(iprot thrift.TProtocol) error { } func (p *Contributor) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("Contributor"); err != nil { goto WriteStructBeginError @@ -7877,7 +7805,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *Contributor) writeField2(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("avatar_url", thrift.STRING, 2); err != nil { goto WriteFieldBeginError @@ -7894,7 +7821,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *Contributor) writeField3(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("url", thrift.STRING, 3); err != nil { goto WriteFieldBeginError @@ -7911,7 +7837,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *Contributor) writeField4(oprot thrift.TProtocol) (err error) { if err = oprot.WriteFieldBegin("contributions", thrift.I64, 4); err != nil { goto WriteFieldBeginError @@ -8028,7 +7953,6 @@ func (p *Version) IsSetURL() bool { } func (p *Version) Read(iprot thrift.TProtocol) (err error) { - var fieldTypeId thrift.TType var fieldId int16 @@ -8172,7 +8096,6 @@ func (p *Version) ReadField5(iprot thrift.TProtocol) error { } func (p *Version) Write(oprot thrift.TProtocol) (err error) { - var fieldId int16 if err = oprot.WriteStructBegin("Version"); err != nil { goto WriteStructBeginError @@ -8234,7 +8157,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err) } - func (p *Version) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetVersionName() { if err = oprot.WriteFieldBegin("version_name", thrift.STRING, 2); err != nil { @@ -8253,7 +8175,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err) } - func (p *Version) writeField3(oprot thrift.TProtocol) (err error) { if p.IsSetForce() { if err = oprot.WriteFieldBegin("force", thrift.BOOL, 3); err != nil { @@ -8272,7 +8193,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err) } - func (p *Version) writeField4(oprot thrift.TProtocol) (err error) { if p.IsSetChangelog() { if err = oprot.WriteFieldBegin("changelog", thrift.STRING, 4); err != nil { @@ -8291,7 +8211,6 @@ WriteFieldBeginError: WriteFieldEndError: return thrift.PrependError(fmt.Sprintf("%T write field 4 end error: ", p), err) } - func (p *Version) writeField5(oprot thrift.TProtocol) (err error) { if p.IsSetURL() { if err = oprot.WriteFieldBegin("url", thrift.STRING, 5); err != nil { diff --git a/api/pack/academic.go b/api/pack/academic.go index 46acbe21..f4a0b3a6 100644 --- a/api/pack/academic.go +++ b/api/pack/academic.go @@ -31,6 +31,7 @@ func BuildScore(res *model.Score) *academicModel.Score { Term: res.Term, ExamType: res.ExamType, ElectiveType: res.ElectiveType, + Classroom: res.Classroom, } } diff --git a/api/router/api/api.go b/api/router/api/api.go index 08f8deac..73bdace3 100644 --- a/api/router/api/api.go +++ b/api/router/api/api.go @@ -20,7 +20,6 @@ package api import ( "github.com/cloudwego/hertz/pkg/app/server" - api "github.com/west2-online/fzuhelper-server/api/handler/api" ) diff --git a/cmd/academic/build.sh b/cmd/academic/build.sh new file mode 100644 index 00000000..ac040763 --- /dev/null +++ b/cmd/academic/build.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +RUN_NAME="academic" + +mkdir -p output/bin +cp script/* output/ +chmod +x output/bootstrap.sh + +if [ "$IS_SYSTEM_TEST_ENV" != "1" ]; then + go build -o output/bin/${RUN_NAME} +else + go test -c -covermode=set -o output/bin/${RUN_NAME} -coverpkg=./... +fi diff --git a/cmd/academic/handler.go b/cmd/academic/handler.go new file mode 100644 index 00000000..ceda0fa1 --- /dev/null +++ b/cmd/academic/handler.go @@ -0,0 +1,39 @@ +package main + +import ( + "context" + academic "github.com/west2-online/fzuhelper-server/kitex_gen/academic" +) + +// AcademicServiceImpl implements the last service interface defined in the IDL. +type AcademicServiceImpl struct{} + +// GetScores implements the AcademicServiceImpl interface. +func (s *AcademicServiceImpl) GetScores(ctx context.Context, req *academic.GetScoresRequest) (resp *academic.GetScoresResponse, err error) { + // TODO: Your code here... + return +} + +// GetGPA implements the AcademicServiceImpl interface. +func (s *AcademicServiceImpl) GetGPA(ctx context.Context, req *academic.GetGPARequest) (resp *academic.GetGPAResponse, err error) { + // TODO: Your code here... + return +} + +// GetCredit implements the AcademicServiceImpl interface. +func (s *AcademicServiceImpl) GetCredit(ctx context.Context, req *academic.GetCreditRequest) (resp *academic.GetCreditResponse, err error) { + // TODO: Your code here... + return +} + +// GetUnifiedExam implements the AcademicServiceImpl interface. +func (s *AcademicServiceImpl) GetUnifiedExam(ctx context.Context, req *academic.GetUnifiedExamRequest) (resp *academic.GetUnifiedExamResponse, err error) { + // TODO: Your code here... + return +} + +// GetPlan implements the AcademicServiceImpl interface. +func (s *AcademicServiceImpl) GetPlan(ctx context.Context, req *academic.GetPlanRequest) (resp *academic.GetPlanResponse, err error) { + // TODO: Your code here... + return +} diff --git a/cmd/academic/script/bootstrap.sh b/cmd/academic/script/bootstrap.sh new file mode 100644 index 00000000..75c0665d --- /dev/null +++ b/cmd/academic/script/bootstrap.sh @@ -0,0 +1,21 @@ +#! /usr/bin/env bash +CURDIR=$(cd $(dirname $0); pwd) + +if [ "X$1" != "X" ]; then + RUNTIME_ROOT=$1 +else + RUNTIME_ROOT=${CURDIR} +fi + +export KITEX_RUNTIME_ROOT=$RUNTIME_ROOT +export KITEX_LOG_DIR="$RUNTIME_ROOT/log" + +if [ ! -d "$KITEX_LOG_DIR/app" ]; then + mkdir -p "$KITEX_LOG_DIR/app" +fi + +if [ ! -d "$KITEX_LOG_DIR/rpc" ]; then + mkdir -p "$KITEX_LOG_DIR/rpc" +fi + +exec "$CURDIR/bin/academic" diff --git a/idl/model.thrift b/idl/model.thrift index fa39c389..2bf6ffac 100644 --- a/idl/model.thrift +++ b/idl/model.thrift @@ -110,6 +110,7 @@ struct Score { 6: required string term // 学期 7: required string exam_type // 考试类型 8: required string elective_type // 选修类型 + 9: required string classroom // 上课地点 } // 绩点排名 diff --git a/internal/academic/pack/score.go b/internal/academic/pack/score.go index f2f43763..b461e8b8 100644 --- a/internal/academic/pack/score.go +++ b/internal/academic/pack/score.go @@ -42,6 +42,7 @@ func BuildScores(data []*jwch.Mark) []*model.Score { Term: data[i].Semester, ExamType: data[i].ExamType, ElectiveType: data[i].ElectiveType, + Classroom: data[i].Classroom, } } @@ -68,6 +69,7 @@ func BuildScoresYjsy(data []*yjsy.Mark) []*model.Score { Term: data[i].Semester, ExamType: data[i].ExamType, ElectiveType: data[i].ElectiveType, + Classroom: data[i].Classroom, } } diff --git a/internal/academic/service/get_scores.go b/internal/academic/service/get_scores.go index 952a9e32..01bfc813 100644 --- a/internal/academic/service/get_scores.go +++ b/internal/academic/service/get_scores.go @@ -189,6 +189,7 @@ func (s *AcademicService) handleScoreChange(stuID string, scores []*jwch.Mark) ( Term: scores[i].Semester, Teacher: scores[i].Teacher, ElectiveType: scores[i].ElectiveType, + Classroom: scores[i].Classroom, CourseHash: courseHash, }) if err != nil { diff --git a/kitex_gen/academic/academic.go b/kitex_gen/academic/academic.go index 6c7881ad..d10bc6b7 100644 --- a/kitex_gen/academic/academic.go +++ b/kitex_gen/academic/academic.go @@ -1,19 +1,3 @@ -/* -Copyright 2024 The west2-online Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - // Code generated by thriftgo (0.4.2). DO NOT EDIT. package academic @@ -21,7 +5,6 @@ package academic import ( "context" "fmt" - "github.com/west2-online/fzuhelper-server/kitex_gen/model" ) diff --git a/kitex_gen/academic/academicservice/academicservice.go b/kitex_gen/academic/academicservice/academicservice.go index 1d07ee7c..af814a8c 100644 --- a/kitex_gen/academic/academicservice/academicservice.go +++ b/kitex_gen/academic/academicservice/academicservice.go @@ -1,19 +1,3 @@ -/* -Copyright 2024 The west2-online Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - // Code generated by Kitex v0.14.1. DO NOT EDIT. package academicservice @@ -21,10 +5,8 @@ package academicservice import ( "context" "errors" - client "github.com/cloudwego/kitex/client" kitex "github.com/cloudwego/kitex/pkg/serviceinfo" - academic "github.com/west2-online/fzuhelper-server/kitex_gen/academic" ) diff --git a/kitex_gen/academic/academicservice/client.go b/kitex_gen/academic/academicservice/client.go index 96df0f61..d44ad8bc 100644 --- a/kitex_gen/academic/academicservice/client.go +++ b/kitex_gen/academic/academicservice/client.go @@ -1,29 +1,11 @@ -/* -Copyright 2024 The west2-online Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - // Code generated by Kitex v0.14.1. DO NOT EDIT. package academicservice import ( "context" - client "github.com/cloudwego/kitex/client" callopt "github.com/cloudwego/kitex/client/callopt" - academic "github.com/west2-online/fzuhelper-server/kitex_gen/academic" ) diff --git a/kitex_gen/academic/academicservice/server.go b/kitex_gen/academic/academicservice/server.go index 68ed29e1..b4a7e0df 100644 --- a/kitex_gen/academic/academicservice/server.go +++ b/kitex_gen/academic/academicservice/server.go @@ -1,25 +1,8 @@ -/* -Copyright 2024 The west2-online Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - // Code generated by Kitex v0.14.1. DO NOT EDIT. package academicservice import ( server "github.com/cloudwego/kitex/server" - academic "github.com/west2-online/fzuhelper-server/kitex_gen/academic" ) diff --git a/kitex_gen/academic/k-academic.go b/kitex_gen/academic/k-academic.go index 40f57cbe..31f8ca35 100644 --- a/kitex_gen/academic/k-academic.go +++ b/kitex_gen/academic/k-academic.go @@ -1,19 +1,3 @@ -/* -Copyright 2024 The west2-online Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - // Code generated by Kitex v0.14.1. DO NOT EDIT. package academic diff --git a/kitex_gen/academic/k-consts.go b/kitex_gen/academic/k-consts.go index 998b6032..6c2d6af8 100644 --- a/kitex_gen/academic/k-consts.go +++ b/kitex_gen/academic/k-consts.go @@ -1,19 +1,3 @@ -/* -Copyright 2024 The west2-online Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - package academic // KitexUnusedProtection is used to prevent 'imported and not used' error. diff --git a/kitex_gen/model/k-consts.go b/kitex_gen/model/k-consts.go index 7b7530b2..f98304c7 100644 --- a/kitex_gen/model/k-consts.go +++ b/kitex_gen/model/k-consts.go @@ -1,19 +1,3 @@ -/* -Copyright 2024 The west2-online Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - package model // KitexUnusedProtection is used to prevent 'imported and not used' error. diff --git a/kitex_gen/model/k-model.go b/kitex_gen/model/k-model.go index 9b0e7f7e..511151e1 100644 --- a/kitex_gen/model/k-model.go +++ b/kitex_gen/model/k-model.go @@ -1,19 +1,3 @@ -/* -Copyright 2024 The west2-online Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - // Code generated by Kitex v0.14.1. DO NOT EDIT. package model @@ -3674,6 +3658,7 @@ func (p *Score) FastRead(buf []byte) (int, error) { var issetTerm bool = false var issetExamType bool = false var issetElectiveType bool = false + var issetClassroom bool = false for { fieldTypeId, fieldId, l, err = thrift.Binary.ReadFieldBegin(buf[offset:]) offset += l @@ -3804,6 +3789,21 @@ func (p *Score) FastRead(buf []byte) (int, error) { goto SkipFieldError } } + case 9: + if fieldTypeId == thrift.STRING { + l, err = p.FastReadField9(buf[offset:]) + offset += l + if err != nil { + goto ReadFieldError + } + issetClassroom = true + } else { + l, err = thrift.Binary.Skip(buf[offset:], fieldTypeId) + offset += l + if err != nil { + goto SkipFieldError + } + } default: l, err = thrift.Binary.Skip(buf[offset:], fieldTypeId) offset += l @@ -3852,6 +3852,11 @@ func (p *Score) FastRead(buf []byte) (int, error) { fieldId = 8 goto RequiredFieldNotSetError } + + if !issetClassroom { + fieldId = 9 + goto RequiredFieldNotSetError + } return offset, nil ReadFieldBeginError: return offset, thrift.PrependError(fmt.Sprintf("%T read field %d begin error: ", p, fieldId), err) @@ -3975,6 +3980,20 @@ func (p *Score) FastReadField8(buf []byte) (int, error) { return offset, nil } +func (p *Score) FastReadField9(buf []byte) (int, error) { + offset := 0 + + var _field string + if v, l, err := thrift.Binary.ReadString(buf[offset:]); err != nil { + return offset, err + } else { + offset += l + _field = v + } + p.Classroom = _field + return offset, nil +} + func (p *Score) FastWrite(buf []byte) int { return p.FastWriteNocopy(buf, nil) } @@ -3990,6 +4009,7 @@ func (p *Score) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int { offset += p.fastWriteField6(buf[offset:], w) offset += p.fastWriteField7(buf[offset:], w) offset += p.fastWriteField8(buf[offset:], w) + offset += p.fastWriteField9(buf[offset:], w) } offset += thrift.Binary.WriteFieldStop(buf[offset:]) return offset @@ -4006,6 +4026,7 @@ func (p *Score) BLength() int { l += p.field6Length() l += p.field7Length() l += p.field8Length() + l += p.field9Length() } l += thrift.Binary.FieldStopLength() return l @@ -4067,6 +4088,13 @@ func (p *Score) fastWriteField8(buf []byte, w thrift.NocopyWriter) int { return offset } +func (p *Score) fastWriteField9(buf []byte, w thrift.NocopyWriter) int { + offset := 0 + offset += thrift.Binary.WriteFieldBegin(buf[offset:], thrift.STRING, 9) + offset += thrift.Binary.WriteStringNocopy(buf[offset:], w, p.Classroom) + return offset +} + func (p *Score) field1Length() int { l := 0 l += thrift.Binary.FieldBeginLength() @@ -4123,6 +4151,13 @@ func (p *Score) field8Length() int { return l } +func (p *Score) field9Length() int { + l := 0 + l += thrift.Binary.FieldBeginLength() + l += thrift.Binary.StringLengthNocopy(p.Classroom) + return l +} + func (p *GPABean) FastRead(buf []byte) (int, error) { var err error diff --git a/kitex_gen/model/model.go b/kitex_gen/model/model.go index b1bb2287..fc48ccff 100644 --- a/kitex_gen/model/model.go +++ b/kitex_gen/model/model.go @@ -1,19 +1,3 @@ -/* -Copyright 2024 The west2-online Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - // Code generated by thriftgo (0.4.2). DO NOT EDIT. package model @@ -816,6 +800,7 @@ type Score struct { Term string `thrift:"term,6,required" frugal:"6,required,string" json:"term"` ExamType string `thrift:"exam_type,7,required" frugal:"7,required,string" json:"exam_type"` ElectiveType string `thrift:"elective_type,8,required" frugal:"8,required,string" json:"elective_type"` + Classroom string `thrift:"classroom,9,required" frugal:"9,required,string" json:"classroom"` } func NewScore() *Score { @@ -856,6 +841,10 @@ func (p *Score) GetExamType() (v string) { func (p *Score) GetElectiveType() (v string) { return p.ElectiveType } + +func (p *Score) GetClassroom() (v string) { + return p.Classroom +} func (p *Score) SetCredit(val string) { p.Credit = val } @@ -880,6 +869,9 @@ func (p *Score) SetExamType(val string) { func (p *Score) SetElectiveType(val string) { p.ElectiveType = val } +func (p *Score) SetClassroom(val string) { + p.Classroom = val +} func (p *Score) String() string { if p == nil { @@ -897,6 +889,7 @@ var fieldIDToName_Score = map[int16]string{ 6: "term", 7: "exam_type", 8: "elective_type", + 9: "classroom", } type GPABean struct { diff --git a/pkg/db/model/academic.go b/pkg/db/model/academic.go index 28878a2f..23472339 100644 --- a/pkg/db/model/academic.go +++ b/pkg/db/model/academic.go @@ -37,6 +37,7 @@ type CourseOffering struct { Term string `json:"term"` Teacher string `json:"teacher"` ElectiveType string `json:"elective_type"` + Classroom string `json:"classroom"` CourseHash string `json:"course_hash"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` From 224d42eec096ce99dc014a930ded85b7777b4817 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 1 Sep 2025 16:39:34 +0800 Subject: [PATCH 3/7] chore: lint --- cmd/academic/build.sh | 14 ++++++++++++++ cmd/academic/handler.go | 17 +++++++++++++++++ cmd/academic/script/bootstrap.sh | 14 ++++++++++++++ kitex_gen/academic/academic.go | 16 ++++++++++++++++ .../academic/academicservice/academicservice.go | 16 ++++++++++++++++ kitex_gen/academic/academicservice/client.go | 16 ++++++++++++++++ kitex_gen/academic/academicservice/server.go | 16 ++++++++++++++++ kitex_gen/academic/k-academic.go | 16 ++++++++++++++++ kitex_gen/academic/k-consts.go | 16 ++++++++++++++++ kitex_gen/model/k-consts.go | 16 ++++++++++++++++ kitex_gen/model/k-model.go | 16 ++++++++++++++++ kitex_gen/model/model.go | 16 ++++++++++++++++ 12 files changed, 189 insertions(+) diff --git a/cmd/academic/build.sh b/cmd/academic/build.sh index ac040763..debdeb31 100644 --- a/cmd/academic/build.sh +++ b/cmd/academic/build.sh @@ -1,3 +1,17 @@ +# Copyright 2024 The west2-online Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #!/usr/bin/env bash RUN_NAME="academic" diff --git a/cmd/academic/handler.go b/cmd/academic/handler.go index ceda0fa1..d1f3df40 100644 --- a/cmd/academic/handler.go +++ b/cmd/academic/handler.go @@ -1,7 +1,24 @@ +/* +Copyright 2024 The west2-online Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main import ( "context" + academic "github.com/west2-online/fzuhelper-server/kitex_gen/academic" ) diff --git a/cmd/academic/script/bootstrap.sh b/cmd/academic/script/bootstrap.sh index 75c0665d..4516b8fe 100644 --- a/cmd/academic/script/bootstrap.sh +++ b/cmd/academic/script/bootstrap.sh @@ -1,3 +1,17 @@ +# Copyright 2024 The west2-online Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #! /usr/bin/env bash CURDIR=$(cd $(dirname $0); pwd) diff --git a/kitex_gen/academic/academic.go b/kitex_gen/academic/academic.go index d10bc6b7..08fb880e 100644 --- a/kitex_gen/academic/academic.go +++ b/kitex_gen/academic/academic.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The west2-online Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + // Code generated by thriftgo (0.4.2). DO NOT EDIT. package academic diff --git a/kitex_gen/academic/academicservice/academicservice.go b/kitex_gen/academic/academicservice/academicservice.go index af814a8c..612d290d 100644 --- a/kitex_gen/academic/academicservice/academicservice.go +++ b/kitex_gen/academic/academicservice/academicservice.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The west2-online Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + // Code generated by Kitex v0.14.1. DO NOT EDIT. package academicservice diff --git a/kitex_gen/academic/academicservice/client.go b/kitex_gen/academic/academicservice/client.go index d44ad8bc..483c2451 100644 --- a/kitex_gen/academic/academicservice/client.go +++ b/kitex_gen/academic/academicservice/client.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The west2-online Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + // Code generated by Kitex v0.14.1. DO NOT EDIT. package academicservice diff --git a/kitex_gen/academic/academicservice/server.go b/kitex_gen/academic/academicservice/server.go index b4a7e0df..a4ce63f2 100644 --- a/kitex_gen/academic/academicservice/server.go +++ b/kitex_gen/academic/academicservice/server.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The west2-online Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + // Code generated by Kitex v0.14.1. DO NOT EDIT. package academicservice diff --git a/kitex_gen/academic/k-academic.go b/kitex_gen/academic/k-academic.go index 31f8ca35..40f57cbe 100644 --- a/kitex_gen/academic/k-academic.go +++ b/kitex_gen/academic/k-academic.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The west2-online Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + // Code generated by Kitex v0.14.1. DO NOT EDIT. package academic diff --git a/kitex_gen/academic/k-consts.go b/kitex_gen/academic/k-consts.go index 6c2d6af8..998b6032 100644 --- a/kitex_gen/academic/k-consts.go +++ b/kitex_gen/academic/k-consts.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The west2-online Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package academic // KitexUnusedProtection is used to prevent 'imported and not used' error. diff --git a/kitex_gen/model/k-consts.go b/kitex_gen/model/k-consts.go index f98304c7..7b7530b2 100644 --- a/kitex_gen/model/k-consts.go +++ b/kitex_gen/model/k-consts.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The west2-online Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package model // KitexUnusedProtection is used to prevent 'imported and not used' error. diff --git a/kitex_gen/model/k-model.go b/kitex_gen/model/k-model.go index 511151e1..7fb5131f 100644 --- a/kitex_gen/model/k-model.go +++ b/kitex_gen/model/k-model.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The west2-online Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + // Code generated by Kitex v0.14.1. DO NOT EDIT. package model diff --git a/kitex_gen/model/model.go b/kitex_gen/model/model.go index fc48ccff..3633d4f9 100644 --- a/kitex_gen/model/model.go +++ b/kitex_gen/model/model.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The west2-online Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + // Code generated by thriftgo (0.4.2). DO NOT EDIT. package model From 67a05e5ab096820ec7fd2c8277b695e80327a7b7 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 1 Sep 2025 16:59:16 +0800 Subject: [PATCH 4/7] chore: bump thriftgo to 0.4.2 --- api/model/api/api.go | 2 +- api/model/model/model.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/model/api/api.go b/api/model/api/api.go index 49152ab4..1e3c2ce9 100644 --- a/api/model/api/api.go +++ b/api/model/api/api.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by thriftgo (0.4.1). DO NOT EDIT. +// Code generated by thriftgo (0.4.2). DO NOT EDIT. package api diff --git a/api/model/model/model.go b/api/model/model/model.go index ee842639..c6d306d6 100644 --- a/api/model/model/model.go +++ b/api/model/model/model.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by thriftgo (0.4.1). DO NOT EDIT. +// Code generated by thriftgo (0.4.2). DO NOT EDIT. package model From 7faefaecce163162fb5c2a42cdaddb3b6f47de9b Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 1 Sep 2025 16:59:56 +0800 Subject: [PATCH 5/7] chore: format --- api/router/api/api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/router/api/api.go b/api/router/api/api.go index 73bdace3..08f8deac 100644 --- a/api/router/api/api.go +++ b/api/router/api/api.go @@ -20,6 +20,7 @@ package api import ( "github.com/cloudwego/hertz/pkg/app/server" + api "github.com/west2-online/fzuhelper-server/api/handler/api" ) From 575364b75a9b02b59f1383594ad6e21294c6b685 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 1 Sep 2025 17:02:22 +0800 Subject: [PATCH 6/7] chore: remove unused files --- cmd/academic/build.sh | 26 --------------- cmd/academic/handler.go | 56 -------------------------------- cmd/academic/script/bootstrap.sh | 35 -------------------- 3 files changed, 117 deletions(-) delete mode 100644 cmd/academic/build.sh delete mode 100644 cmd/academic/handler.go delete mode 100644 cmd/academic/script/bootstrap.sh diff --git a/cmd/academic/build.sh b/cmd/academic/build.sh deleted file mode 100644 index debdeb31..00000000 --- a/cmd/academic/build.sh +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 2024 The west2-online Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#!/usr/bin/env bash -RUN_NAME="academic" - -mkdir -p output/bin -cp script/* output/ -chmod +x output/bootstrap.sh - -if [ "$IS_SYSTEM_TEST_ENV" != "1" ]; then - go build -o output/bin/${RUN_NAME} -else - go test -c -covermode=set -o output/bin/${RUN_NAME} -coverpkg=./... -fi diff --git a/cmd/academic/handler.go b/cmd/academic/handler.go deleted file mode 100644 index d1f3df40..00000000 --- a/cmd/academic/handler.go +++ /dev/null @@ -1,56 +0,0 @@ -/* -Copyright 2024 The west2-online Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package main - -import ( - "context" - - academic "github.com/west2-online/fzuhelper-server/kitex_gen/academic" -) - -// AcademicServiceImpl implements the last service interface defined in the IDL. -type AcademicServiceImpl struct{} - -// GetScores implements the AcademicServiceImpl interface. -func (s *AcademicServiceImpl) GetScores(ctx context.Context, req *academic.GetScoresRequest) (resp *academic.GetScoresResponse, err error) { - // TODO: Your code here... - return -} - -// GetGPA implements the AcademicServiceImpl interface. -func (s *AcademicServiceImpl) GetGPA(ctx context.Context, req *academic.GetGPARequest) (resp *academic.GetGPAResponse, err error) { - // TODO: Your code here... - return -} - -// GetCredit implements the AcademicServiceImpl interface. -func (s *AcademicServiceImpl) GetCredit(ctx context.Context, req *academic.GetCreditRequest) (resp *academic.GetCreditResponse, err error) { - // TODO: Your code here... - return -} - -// GetUnifiedExam implements the AcademicServiceImpl interface. -func (s *AcademicServiceImpl) GetUnifiedExam(ctx context.Context, req *academic.GetUnifiedExamRequest) (resp *academic.GetUnifiedExamResponse, err error) { - // TODO: Your code here... - return -} - -// GetPlan implements the AcademicServiceImpl interface. -func (s *AcademicServiceImpl) GetPlan(ctx context.Context, req *academic.GetPlanRequest) (resp *academic.GetPlanResponse, err error) { - // TODO: Your code here... - return -} diff --git a/cmd/academic/script/bootstrap.sh b/cmd/academic/script/bootstrap.sh deleted file mode 100644 index 4516b8fe..00000000 --- a/cmd/academic/script/bootstrap.sh +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 2024 The west2-online Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#! /usr/bin/env bash -CURDIR=$(cd $(dirname $0); pwd) - -if [ "X$1" != "X" ]; then - RUNTIME_ROOT=$1 -else - RUNTIME_ROOT=${CURDIR} -fi - -export KITEX_RUNTIME_ROOT=$RUNTIME_ROOT -export KITEX_LOG_DIR="$RUNTIME_ROOT/log" - -if [ ! -d "$KITEX_LOG_DIR/app" ]; then - mkdir -p "$KITEX_LOG_DIR/app" -fi - -if [ ! -d "$KITEX_LOG_DIR/rpc" ]; then - mkdir -p "$KITEX_LOG_DIR/rpc" -fi - -exec "$CURDIR/bin/academic" From c40dc8a9d0d75630470c0a4a1bbac14d45f68dd3 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 1 Sep 2025 17:04:04 +0800 Subject: [PATCH 7/7] chore: format --- api/model/api/api.go | 2 ++ api/model/model/model.go | 1 + kitex_gen/academic/academic.go | 1 + kitex_gen/academic/academicservice/academicservice.go | 2 ++ kitex_gen/academic/academicservice/client.go | 2 ++ kitex_gen/academic/academicservice/server.go | 1 + 6 files changed, 9 insertions(+) diff --git a/api/model/api/api.go b/api/model/api/api.go index 1e3c2ce9..6b081bdf 100644 --- a/api/model/api/api.go +++ b/api/model/api/api.go @@ -21,7 +21,9 @@ package api import ( "context" "fmt" + "github.com/apache/thrift/lib/go/thrift" + "github.com/west2-online/fzuhelper-server/api/model/model" ) diff --git a/api/model/model/model.go b/api/model/model/model.go index c6d306d6..c6313a6a 100644 --- a/api/model/model/model.go +++ b/api/model/model/model.go @@ -20,6 +20,7 @@ package model import ( "fmt" + "github.com/apache/thrift/lib/go/thrift" ) diff --git a/kitex_gen/academic/academic.go b/kitex_gen/academic/academic.go index 08fb880e..6c7881ad 100644 --- a/kitex_gen/academic/academic.go +++ b/kitex_gen/academic/academic.go @@ -21,6 +21,7 @@ package academic import ( "context" "fmt" + "github.com/west2-online/fzuhelper-server/kitex_gen/model" ) diff --git a/kitex_gen/academic/academicservice/academicservice.go b/kitex_gen/academic/academicservice/academicservice.go index 612d290d..1d07ee7c 100644 --- a/kitex_gen/academic/academicservice/academicservice.go +++ b/kitex_gen/academic/academicservice/academicservice.go @@ -21,8 +21,10 @@ package academicservice import ( "context" "errors" + client "github.com/cloudwego/kitex/client" kitex "github.com/cloudwego/kitex/pkg/serviceinfo" + academic "github.com/west2-online/fzuhelper-server/kitex_gen/academic" ) diff --git a/kitex_gen/academic/academicservice/client.go b/kitex_gen/academic/academicservice/client.go index 483c2451..96df0f61 100644 --- a/kitex_gen/academic/academicservice/client.go +++ b/kitex_gen/academic/academicservice/client.go @@ -20,8 +20,10 @@ package academicservice import ( "context" + client "github.com/cloudwego/kitex/client" callopt "github.com/cloudwego/kitex/client/callopt" + academic "github.com/west2-online/fzuhelper-server/kitex_gen/academic" ) diff --git a/kitex_gen/academic/academicservice/server.go b/kitex_gen/academic/academicservice/server.go index a4ce63f2..68ed29e1 100644 --- a/kitex_gen/academic/academicservice/server.go +++ b/kitex_gen/academic/academicservice/server.go @@ -19,6 +19,7 @@ package academicservice import ( server "github.com/cloudwego/kitex/server" + academic "github.com/west2-online/fzuhelper-server/kitex_gen/academic" )