Documentation ¶
Index ¶
- Variables
- type Course
- type CurrentMemberRte
- type DepartmentPhoneListRte
- type ExamArrangement
- type GetAllInvigilateRte
- type GetAssetsRte
- type GetClassStudentsRte
- type GetClassmatesDetailRte
- type GetClassmatesRte
- type GetExamArrangementsRte
- type GetOneCardBalanceRte
- type GetOneCardChargeRecordsRte
- type GetOneCardConsumeRecordsRte
- type GetStaffRte
- type GetStudentRte
- type GetWeekCoursesRte
- type HomeParam
- type SecUser
- func (u *SecUser) GetAllInvigilate(schoolYear int, schoolTerm int) (rte GetAllInvigilateRte, err error)
- func (u *SecUser) GetAllInvigilateByStaffID(StaffID string, schoolYear int, schoolTerm int) (rte GetAllInvigilateRte, err error)
- func (u *SecUser) GetAssets(pageNum int, pageSize int) (rte GetAssetsRte, err error)
- func (u *SecUser) GetAssetsByStaffID(staffID string, pageNum int, pageSize int) (rte GetAssetsRte, err error)
- func (u *SecUser) GetClassStudents(classCode string, pageNum int, pageSize int) (rte GetClassStudentsRte, err error)
- func (u *SecUser) GetClassmates(pageNum int, pageSize int) (GetClassmatesRte, error)
- func (u *SecUser) GetClassmatesByStuID(stuID string, pageNum int, pageSize int) (rte GetClassmatesRte, err error)
- func (u *SecUser) GetClassmatesDetail() (GetClassmatesDetailRte, error)
- func (u *SecUser) GetClassmatesDetailByStuID(stuID string) (rte GetClassmatesDetailRte, err error)
- func (u *SecUser) GetCurrentMember() (rte CurrentMemberRte, err error)
- func (u *SecUser) GetDepartmentPhoneList() (rte DepartmentPhoneListRte, err error)
- func (u *SecUser) GetExamArrangemen(schoolYear int, schoolTerm int) (rte GetExamArrangementsRte, err error)
- func (u *SecUser) GetExamArrangementsByStuID(stuID string, schoolYear int, schoolTerm int) (rte GetExamArrangementsRte, err error)
- func (u *SecUser) GetHomeParam() (rte HomeParam, err error)
- func (u *SecUser) GetOneCardBalance() (rte GetOneCardBalanceRte, err error)
- func (u *SecUser) GetOneCardBalanceByID(ID string) (rte GetOneCardBalanceRte, err error)
- func (u *SecUser) GetOneCardChargeRecords(pageNum int, pageSize int) (rte GetOneCardChargeRecordsRte, err error)
- func (u *SecUser) GetOneCardChargeRecordsByID(ID string, pageNum int, pageSize int) (rte GetOneCardChargeRecordsRte, err error)
- func (u *SecUser) GetOneCardConsumeRecords(pageNum int, pageSize int) (rte GetOneCardConsumeRecordsRte, err error)
- func (u *SecUser) GetOneCardConsumeRecordsByID(ID string, pageNum int, pageSize int) (rte GetOneCardConsumeRecordsRte, err error)
- func (u *SecUser) GetStaff() (rte GetStaffRte, err error)
- func (u *SecUser) GetStaffByStaffID(staffID string) (rte GetStaffRte, err error)
- func (u *SecUser) GetStudent() (GetStudentRte, error)
- func (u *SecUser) GetStudentByStuID(stuID string) (rte GetStudentRte, err error)
- func (u *SecUser) GetWeekCourses(currentTime string, role int) (rte GetWeekCoursesRte, err error)
- func (u *SecUser) GetWeekCoursesByID(username string, currentTime string, role int) (rte GetWeekCoursesRte, err error)
- func (u *SecUser) IsLogged() (isLogged bool)
- func (u *SecUser) IsPortalLogged() (isLogged bool)
- func (u *SecUser) Login() (err error)
- func (u *SecUser) PerSetCooikes() (err error)
- func (u *SecUser) PerSetPortalPath() (err error)
- func (u *SecUser) PortalLogin() (err error)
- func (u *SecUser) SetPassword(password string) *SecUser
- func (u *SecUser) SetUsername(username string) *SecUser
Constants ¶
This section is empty.
Variables ¶
var ( AuthorityUrl = "sec.lit.edu.cn" // SecUrl 智慧门户主页 SecUrl = "https://" + AuthorityUrl // LibraryUrl LibraryUrl = SecUrl + "/rump_frontend/connect/?target=Library&id=9" //JWUrlPerfix JWUrlPerfix = SecUrl + "/webvpn/LjE1Ni4xNzEuMjE2LjE2NQ==/LjE1OC4xNzQuMTQ2LjE2MS4xNTkuMTczLjE0NS4xNTguMTk5LjE2Ni45NS4xNTIuMTU4" // NeedCaptchaPath 检查是否需要验证码登陆的接口 NeedCaptchaPath = "/authserver/needCaptcha.html" // CaptchaPath 获取验证码 CaptchaPath = "/authserver/captcha.html" // HomeIndexUrl 导航主页 HomeIndexUrl = SecUrl + "/frontend_static/frontend/login/index.html" // GetHomeParamUrl 主页参数 GetHomeParamUrl = SecUrl + "/rump_frontend/getHomeParam/" // Home // PortalIndexPath 门户首页 PortalIndexPath = "/pc/lit/index.html" // PortalLoginPath 门户登陆地址 (第二层) PortalLoginPath = "/portal/login/pcLogin" // PortalUserPath 门户个人信息主页 PortalUserPath = "/portal/pc/lit/user.html" // GetCurrentMemberPath 获取当前门户用户的接口 GetCurrentMemberPath = "/portal/myCenter/getMemberInfoForCurrentMember" // GetStuPath 获取学生信息接口 GetStuPath = "/microapplication/api/v1/index/getStudentByStudentId" // GetClassmatesDetail 获取学生同班同学信息接口 GetClassmatesDetailPath = "/microapplication/api/myclass/findMyclassmatesDetailCount" // GetClassmatesPath 获取学生同班同学列表接口 GetClassmatesPath = "/microapplication/api/myclass/findMyclassmates" // GetOneCardBalancePath 获取一卡通余额接口 GetOneCardBalancePath = "/microapplication/api/v1/index/getBalanceAndConsumeThisMonthAndLastMonth" // GetOneCardChargeRecordsPath 获取一卡通充值记录接口 GetOneCardChargeRecordsPath = "/microapplication/api/v1/index/listGeneraCardRechargeRecordByGeneraCardRechargeRecordNumberPage" // GetOneCardChargeRecordsUrl 获取一卡通消费记录接口 GetOneCardConsumeRecordsPath = "/microapplication/api/v1/index/ListGeneraCardConsumeRecordByGeneraCardConsumeRecordNumberPage" // GetExamArrangementsPath 获取考试安排接口 GetExamArrangementsPath = "/microapplication/api/examArrangementController/findAllExamArrangements" // GetweekCourses 获取周课表接口 GetWeekCoursesPath = "/microapplication/api/course/getCourse" // GetDepartmentPhoneList 获取部门电话列表 GetDepartmentPhoneListPath = "/microapplication/api/queryDepartmentPhone/querydepartmentphonelist" // GetStaffPath 获取教职工接口 GetStaffPath = "/microapplication/api/index/getStaffByStaffNumber" // GetClassStudents 获取班级学生接口 GetClassStudentsPath = "/microapplication/api/myclass/findTeachclassStudents" // GetAllInvigilate 获取监考信息接口 GetAllInvigilatePath = "/microapplication/api/examArrangementController/findAllInvigilate" // GetGetAssetsPath 获取资产接口 GetAssetsPath = "/microapplication/api/index/listAssetsByAssetsStaffNumberPage" // UA UA = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36" // MainHeaders // MainHeaders 主请求头 MainHeaders = map[string]string{ "authority": AuthorityUrl, "dnt": "1", "x-requested-with": "XMLHttpRequest", "sec-ch-ua-mobile": "1", "User-Agent": UA, "sec-fetch-site": "same-origin", "sec-fetch-mode": "cors", "sec-fetch-dest": "empty", "Accept-Language": "zh-CN,zh;q=0.9", } )
一些常量的定义
Functions ¶
This section is empty.
Types ¶
type Course ¶
type Course struct { CourseAdressCode string `json:"courseAdressCode"` CourseCategoryName interface{} `json:"courseCategoryName"` CourseClassCode interface{} `json:"courseClassCode"` CourseClassName interface{} `json:"courseClassName"` CourseClassRoomCode interface{} `json:"courseClassRoomCode"` CourseClassRoomName interface{} `json:"courseClassRoomName"` CourseCode string `json:"courseCode"` CourseCredit interface{} `json:"courseCredit"` CourseDate string `json:"courseDate"` CourseDepartmentCourse interface{} `json:"courseDepartmentCourse"` CourseExaminationMethodCode interface{} `json:"courseExaminationMethodCode"` CourseHours interface{} `json:"courseHours"` CourseID interface{} `json:"courseId"` CourseName string `json:"courseName"` CoursePlan interface{} `json:"coursePlan"` CourseSchoolYear string `json:"courseSchoolYear"` CourseSection string `json:"courseSection"` CourseSectionWeek interface{} `json:"courseSectionWeek"` CourseSingleDoubleWeek string `json:"courseSingleDoubleWeek"` CourseStudentID interface{} `json:"courseStudentId"` CourseStudentName interface{} `json:"courseStudentName"` CourseSubjectCourseNumber interface{} `json:"courseSubjectCourseNumber"` CourseTeacherName string `json:"courseTeacherName"` CourseTeacherNumber interface{} `json:"courseTeacherNumber"` CourseTeachingNumber interface{} `json:"courseTeachingNumber"` CourseTerm string `json:"courseTerm"` CourseTotolHours interface{} `json:"courseTotolHours"` CourseWeek interface{} `json:"courseWeek"` CourseWeekNumber interface{} `json:"courseWeekNumber"` CourseWeekly string `json:"courseWeekly"` TeacherName string `json:"teacherName"` }
课程结构
type CurrentMemberRte ¶
type CurrentMemberRte struct { Attributes interface{} `json:"attributes"` Count interface{} `json:"count"` Msg string `json:"msg"` Obj struct { DeptCodeList interface{} `json:"deptCodeList"` DeptList interface{} `json:"deptList"` LastLoginTime string `json:"lastLoginTime"` MemberAcademicNumber string `json:"memberAcademicNumber"` MemberAesEncrypt string `json:"memberAesEncrypt"` MemberAppLastLoginTime interface{} `json:"memberAppLastLoginTime"` MemberCasLastLoginTime interface{} `json:"memberCasLastLoginTime"` MemberCreateTime int64 `json:"memberCreateTime"` MemberID string `json:"memberId"` MemberIDAesEncrypt string `json:"memberIdAesEncrypt"` MemberIDNumber string `json:"memberIdNumber"` MemberIDNumberSign interface{} `json:"memberIdNumberSign"` MemberImage interface{} `json:"memberImage"` MemberMailbox interface{} `json:"memberMailbox"` MemberNickname string `json:"memberNickname"` MemberOtherBirthday interface{} `json:"memberOtherBirthday"` MemberOtherClass interface{} `json:"memberOtherClass"` MemberOtherDepartment interface{} `json:"memberOtherDepartment"` MemberOtherGrade interface{} `json:"memberOtherGrade"` MemberOtherMajor interface{} `json:"memberOtherMajor"` MemberOtherNation interface{} `json:"memberOtherNation"` MemberOtherNative interface{} `json:"memberOtherNative"` MemberOtherSchoolNumber interface{} `json:"memberOtherSchoolNumber"` MemberPcLastLoginTime interface{} `json:"memberPcLastLoginTime"` MemberPhone interface{} `json:"memberPhone"` MemberPwd string `json:"memberPwd"` MemberSalt interface{} `json:"memberSalt"` MemberSex int64 `json:"memberSex"` MemberSign interface{} `json:"memberSign"` MemberState int64 `json:"memberState"` MemberUpdatePasswordTime interface{} `json:"memberUpdatePasswordTime"` MemberUsername string `json:"memberUsername"` QuicklyTicket interface{} `json:"quicklyTicket"` RoleCodeList []string `json:"roleCodeList"` RoleList []struct { RoleCode string `json:"roleCode"` RoleComment interface{} `json:"roleComment"` RoleName string `json:"roleName"` RoleState interface{} `json:"roleState"` } `json:"roleList"` } `json:"obj"` Success bool `json:"success"` }
CurrentMember 当前用户返回结构
type DepartmentPhoneListRte ¶
type DepartmentPhoneListRte struct { Attributes interface{} `json:"attributes"` Count interface{} `json:"count"` Msg string `json:"msg"` Obj interface{} `json:"obj"` Success bool `json:"success"` }
DepartmentPhoneListRte 获取部门电话返回结构
type ExamArrangement ¶
type ExamArrangement struct { ExaminationAdressCode interface{} `json:"examinationAdressCode"` ExaminationAdressName string `json:"examinationAdressName"` ExaminationCourseCode string `json:"examinationCourseCode"` ExaminationCourseName string `json:"examinationCourseName"` ExaminationEndTime string `json:"examinationEndTime"` ExaminationSchoolYear string `json:"examinationSchoolYear"` ExaminationSeat string `json:"examinationSeat"` ExaminationStartTime string `json:"examinationStartTime"` ExaminationStudentID string `json:"examinationStudentId"` ExaminationStudentName string `json:"examinationStudentName"` ExaminationTerm string `json:"examinationTerm"` ExaminationTime string `json:"examinationTime"` }
type GetAllInvigilateRte ¶
type GetAllInvigilateRte struct { Attributes interface{} `json:"attributes"` Count interface{} `json:"count"` Msg string `json:"msg"` Obj []struct { InvigilateAdressCode interface{} `json:"invigilateAdressCode"` InvigilateAdressName string `json:"invigilateAdressName"` InvigilateCourseCode string `json:"invigilateCourseCode"` InvigilateCourseName string `json:"invigilateCourseName"` InvigilateEndTime string `json:"invigilateEndTime"` InvigilateExaminationBatch string `json:"invigilateExaminationBatch"` InvigilateExaminationCount string `json:"invigilateExaminationCount"` InvigilateID int64 `json:"invigilateId"` InvigilateSchoolYear string `json:"invigilateSchoolYear"` InvigilateStaffNumber string `json:"invigilateStaffNumber"` InvigilateStartTime string `json:"invigilateStartTime"` InvigilateTerm string `json:"invigilateTerm"` InvigilateTime string `json:"invigilateTime"` } `json:"obj"` Success bool `json:"success"` }
GetAllInvigilateRte 获取监考安排返回结构
type GetAssetsRte ¶
type GetAssetsRte struct { Attributes interface{} `json:"attributes"` Count int64 `json:"count"` Msg string `json:"msg"` Obj []struct { AssetsAmount string `json:"assetsAmount"` AssetsBookkeeper string `json:"assetsBookkeeper"` AssetsCode interface{} `json:"assetsCode"` AssetsDepositName string `json:"assetsDepositName"` AssetsFinancialNationality string `json:"assetsFinancialNationality"` AssetsFinancialVoucher string `json:"assetsFinancialVoucher"` AssetsFinancialWarrantyPeriod string `json:"assetsFinancialWarrantyPeriod"` AssetsFundsSubject string `json:"assetsFundsSubject"` AssetsHandlers string `json:"assetsHandlers"` AssetsManufactor string `json:"assetsManufactor"` AssetsModel string `json:"assetsModel"` AssetsMoney string `json:"assetsMoney"` AssetsName string `json:"assetsName"` AssetsPurchaseDate string `json:"assetsPurchaseDate"` AssetsSpecification string `json:"assetsSpecification"` AssetsStaffID int64 `json:"assetsStaffId"` AssetsStaffName string `json:"assetsStaffName"` AssetsStaffNumber string `json:"assetsStaffNumber"` AssetsType string `json:"assetsType"` AssetsUnitName string `json:"assetsUnitName"` } `json:"obj"` Success bool `json:"success"` }
GetAssetsRte 获取资产返回结构
type GetClassStudentsRte ¶
type GetClassStudentsRte struct { Attributes interface{} `json:"attributes"` Count int64 `json:"count"` Msg string `json:"msg"` Obj []struct { StudentAdmissionTime string `json:"studentAdmissionTime"` StudentAdress interface{} `json:"studentAdress"` StudentBirthday string `json:"studentBirthday"` StudentCategory interface{} `json:"studentCategory"` StudentClassCode string `json:"studentClassCode"` StudentClassName string `json:"studentClassName"` StudentEductionalSystme string `json:"studentEductionalSystme"` StudentFacultiesCode string `json:"studentFacultiesCode"` StudentFacultiesName string `json:"studentFacultiesName"` StudentGrade string `json:"studentGrade"` StudentID string `json:"studentId"` StudentIDNumber string `json:"studentIdNumber"` StudentMajor string `json:"studentMajor"` StudentMajorName string `json:"studentMajorName"` StudentName string `json:"studentName"` StudentNation interface{} `json:"studentNation"` StudentPhone string `json:"studentPhone"` StudentPoliticalStatus interface{} `json:"studentPoliticalStatus"` StudentRegisterState string `json:"studentRegisterState"` StudentSex string `json:"studentSex"` } `json:"obj"` Success bool `json:"success"` }
GetClassStudentsRte 获取班级学生返回结构
type GetClassmatesDetailRte ¶
type GetClassmatesDetailRte struct { Attributes struct { CountMan uint64 `json:"countMan"` CountWoman uint64 `json:"countWoman"` InstructorClassClassNumber string `json:"instructorClassClassNumber"` StudentSex string `json:"studentSex"` } `json:"attributes"` Count interface{} `json:"count"` Msg string `json:"msg"` Obj interface{} `json:"obj"` Success bool `json:"success"` }
GetClassmatesDetailRte 获取同班同学信息响应结构
type GetClassmatesRte ¶
type GetClassmatesRte struct { Attributes interface{} `json:"attributes"` Count int64 `json:"count"` Msg string `json:"msg"` Obj []struct { StudentAdmissionTime string `json:"studentAdmissionTime"` StudentAdress interface{} `json:"studentAdress"` StudentBirthday string `json:"studentBirthday"` StudentCategory string `json:"studentCategory"` StudentClassCode string `json:"studentClassCode"` StudentClassName string `json:"studentClassName"` StudentEductionalSystme string `json:"studentEductionalSystme"` StudentFacultiesCode string `json:"studentFacultiesCode"` StudentFacultiesName string `json:"studentFacultiesName"` StudentGrade string `json:"studentGrade"` StudentID string `json:"studentId"` StudentIDNumber string `json:"studentIdNumber"` StudentMajor string `json:"studentMajor"` StudentMajorName string `json:"studentMajorName"` StudentName string `json:"studentName"` StudentNation interface{} `json:"studentNation"` StudentPhone string `json:"studentPhone"` StudentPoliticalStatus interface{} `json:"studentPoliticalStatus"` StudentRegisterState string `json:"studentRegisterState"` StudentSex string `json:"studentSex"` } `json:"obj"` Success bool `json:"success"` }
GetClassmatesRte 获取同班同学列表响应结构
type GetExamArrangementsRte ¶
type GetExamArrangementsRte struct { Attributes interface{} `json:"attributes"` Count interface{} `json:"count"` Msg string `json:"msg"` Obj []ExamArrangement `json:"obj"` Success bool `json:"success"` }
GetExamArrangementsRte 获取考试安排返回结构
type GetOneCardBalanceRte ¶
type GetOneCardBalanceRte struct { Attributes interface{} `json:"attributes"` Count interface{} `json:"count"` Msg string `json:"msg"` Obj struct { Balance string `json:"balance"` LastMonthMoney string `json:"lastMonthMoney"` ThisMonthMoney string `json:"thisMonthMoney"` } `json:"obj"` Success bool `json:"success"` }
GetOneCardBalanceRte 获取一卡通余额返回结构
type GetOneCardChargeRecordsRte ¶
type GetOneCardChargeRecordsRte struct { Attributes interface{} `json:"attributes"` Count int64 `json:"count"` Msg string `json:"msg"` Obj []struct { GeneraCardRechargeRecordID int64 `json:"generaCardRechargeRecordId"` GeneraCardRechargeRecordNumber string `json:"generaCardRechargeRecordNumber"` GeneraCardRechargeRecordTransactionAdress string `json:"generaCardRechargeRecordTransactionAdress"` GeneraCardRechargeRecordTransactionBalance string `json:"generaCardRechargeRecordTransactionBalance"` GeneraCardRechargeRecordTransactionMoney string `json:"generaCardRechargeRecordTransactionMoney"` GeneraCardRechargeRecordTransactionTime string `json:"generaCardRechargeRecordTransactionTime"` GeneraCardRechargeRecordTransactionType string `json:"generaCardRechargeRecordTransactionType"` GeneraCardRechargeRecordWalletType interface{} `json:"generaCardRechargeRecordWalletType"` } `json:"obj"` Success bool `json:"success"` }
GetOneCardChargeRecordsRte 获取一卡通充值记录返回结构
type GetOneCardConsumeRecordsRte ¶
type GetOneCardConsumeRecordsRte struct { Attributes interface{} `json:"attributes"` Count int64 `json:"count"` Msg string `json:"msg"` Obj []struct { GeneraCardConsumeRecordID int64 `json:"generaCardConsumeRecordId"` GeneraCardConsumeRecordNumber string `json:"generaCardConsumeRecordNumber"` GeneraCardConsumeRecordTransactionAdress string `json:"generaCardConsumeRecordTransactionAdress"` GeneraCardConsumeRecordTransactionBalance string `json:"generaCardConsumeRecordTransactionBalance"` GeneraCardConsumeRecordTransactionMoney string `json:"generaCardConsumeRecordTransactionMoney"` GeneraCardConsumeRecordTransactionTime string `json:"generaCardConsumeRecordTransactionTime"` GeneraCardConsumeRecordTransactionType string `json:"generaCardConsumeRecordTransactionType"` GeneraCardConsumeRecordWalletType interface{} `json:"generaCardConsumeRecordWalletType"` } `json:"obj"` Success bool `json:"success"` }
GetOneCardConsumeRecordsRte 获取一卡通消费记录返回结构
type GetStaffRte ¶
type GetStaffRte struct { Attributes interface{} `json:"attributes"` Count interface{} `json:"count"` Msg string `json:"msg"` Obj struct { StaffAcademicDegree string `json:"staffAcademicDegree"` StaffAcademicQualifications string `json:"staffAcademicQualifications"` StaffBelongUnit string `json:"staffBelongUnit"` StaffBirthday string `json:"staffBirthday"` StaffCellphoneNumber interface{} `json:"staffCellphoneNumber"` StaffCredentialsID string `json:"staffCredentialsId"` StaffCredentialsType string `json:"staffCredentialsType"` StaffCurrentState string `json:"staffCurrentState"` StaffLevel interface{} `json:"staffLevel"` StaffMail interface{} `json:"staffMail"` StaffName string `json:"staffName"` StaffNational string `json:"staffNational"` StaffNumber string `json:"staffNumber"` StaffPoliticalStatus string `json:"staffPoliticalStatus"` StaffPostState interface{} `json:"staffPostState"` StaffSex string `json:"staffSex"` StaffTechnicalTitles string `json:"staffTechnicalTitles"` StaffWorkingYears string `json:"staffWorkingYears"` } `json:"obj"` Success bool `json:"success"` }
GetStaffRte 教职工返回结构
type GetStudentRte ¶
type GetStudentRte struct { Attributes interface{} `json:"attributes"` Count interface{} `json:"count"` Msg string `json:"msg"` Obj struct { StudentAdmissionTime string `json:"studentAdmissionTime"` StudentAdress interface{} `json:"studentAdress"` StudentBirthday string `json:"studentBirthday"` StudentCategory string `json:"studentCategory"` StudentClassCode string `json:"studentClassCode"` StudentClassName string `json:"studentClassName"` StudentEductionalSystme string `json:"studentEductionalSystme"` StudentFacultiesCode string `json:"studentFacultiesCode"` StudentFacultiesName string `json:"studentFacultiesName"` StudentGrade string `json:"studentGrade"` StudentID string `json:"studentId"` StudentIDNumber string `json:"studentIdNumber"` StudentMajor string `json:"studentMajor"` StudentMajorName string `json:"studentMajorName"` StudentName string `json:"studentName"` StudentNation interface{} `json:"studentNation"` StudentPhone string `json:"studentPhone"` StudentPoliticalStatus interface{} `json:"studentPoliticalStatus"` StudentRegisterState string `json:"studentRegisterState"` StudentSex string `json:"studentSex"` } `json:"obj"` Success bool `json:"success"` }
GetStudentRte 查询学生返回结构
type GetWeekCoursesRte ¶
type GetWeekCoursesRte struct { Attributes struct { CourseListTopTwo []Course `json:"courseListTopTwo"` CourseTime string `json:"courseTime"` } `json:"attributes"` Count interface{} `json:"count"` Msg string `json:"msg"` Obj []Course `json:"obj"` Success bool `json:"success"` }
GetWeekCoursesRte 获取周课表返回结构
type HomeParam ¶
type HomeParam struct { Code int64 `json:"code"` Data struct { Backend string `json:"backend"` CopyRight string `json:"copy_right"` HasBeianPerm bool `json:"hasBeianPerm"` HasLibrary bool `json:"hasLibrary"` IsLocalUser bool `json:"isLocalUser"` Organization string `json:"organization"` PlacardShow interface{} `json:"placard_show"` Protocols []string `json:"protocols"` SysPlacard interface{} `json:"sys_placard"` Username string `json:"username"` } `json:"data"` Msg string `json:"msg"` }
HomeParam 主页参数模型
type SecUser ¶
type SecUser struct { Username string Password string IDAesEncrypt string AuthUrl string // 真实认证地址 (SecUrl" + "/webvpn/LjIwNi4xNzAuMjE4LjE2Mg==/LjIwNy4xNTQuMjE3Ljk2LjE2MS4xNTkuMTY0Ljk3LjE1MS4xOTkuMTczLjE0NC4xOTguMjEy/authserver/login?service=https%3A%2F%2Fsec.lit.edu.cn%2Frump_frontend%2FloginFromCas%2F) // AuthPath string AuthUrlPerfix string PortalUrlPerfix string Client *resty.Client }
SecUser 智慧门户用户结构体
func (*SecUser) GetAllInvigilate ¶
func (u *SecUser) GetAllInvigilate(schoolYear int, schoolTerm int) (rte GetAllInvigilateRte, err error)
GetAllInvigilate 获取监考安排
schoolYear := "2021" // 学年 schoolTerm := "1" // {第一学期:0,第二学期:1}
func (*SecUser) GetAllInvigilateByStaffID ¶
func (u *SecUser) GetAllInvigilateByStaffID(StaffID string, schoolYear int, schoolTerm int) (rte GetAllInvigilateRte, err error)
GetAllInvigilateByStaffID 通过职工号获取监考安排
schoolYear := "2021" // 学年 schoolTerm := "1" // {第一学期:0,第二学期:1}
func (*SecUser) GetAssets ¶
func (u *SecUser) GetAssets(pageNum int, pageSize int) (rte GetAssetsRte, err error)
GetAssetsByStaff 获取资产
func (*SecUser) GetAssetsByStaffID ¶
func (u *SecUser) GetAssetsByStaffID(staffID string, pageNum int, pageSize int) (rte GetAssetsRte, err error)
GetAssetsByStaffID 通过职工号获取资产
func (*SecUser) GetClassStudents ¶
func (u *SecUser) GetClassStudents(classCode string, pageNum int, pageSize int) (rte GetClassStudentsRte, err error)
GetClassStudents 获取班级学生
func (*SecUser) GetClassmates ¶
func (u *SecUser) GetClassmates(pageNum int, pageSize int) (GetClassmatesRte, error)
GetClassmates 获取同班同学
func (*SecUser) GetClassmatesByStuID ¶
func (u *SecUser) GetClassmatesByStuID(stuID string, pageNum int, pageSize int) (rte GetClassmatesRte, err error)
GetClassmatesByStuID 通过学号获取学生同班同学列表
pageNum := "1" pageSize := "99"
func (*SecUser) GetClassmatesDetail ¶
func (u *SecUser) GetClassmatesDetail() (GetClassmatesDetailRte, error)
GetClassmatesDetail 获取同班同学详情
func (*SecUser) GetClassmatesDetailByStuID ¶
func (u *SecUser) GetClassmatesDetailByStuID(stuID string) (rte GetClassmatesDetailRte, err error)
GetClassmatesByStuI 通过学号获取学生同班同学信息
func (*SecUser) GetCurrentMember ¶
func (u *SecUser) GetCurrentMember() (rte CurrentMemberRte, err error)
GetCurrentMember 获取当前用户信息
func (*SecUser) GetDepartmentPhoneList ¶
func (u *SecUser) GetDepartmentPhoneList() (rte DepartmentPhoneListRte, err error)
GetDepartmentPhoneList 获取部门电话
func (*SecUser) GetExamArrangemen ¶
func (u *SecUser) GetExamArrangemen(schoolYear int, schoolTerm int) (rte GetExamArrangementsRte, err error)
GetExamArrangement 获取考试安排
schoolYear := "2021" // 学年 schoolTerm := "1" // {第一学期:0,第二学期:1}
func (*SecUser) GetExamArrangementsByStuID ¶
func (u *SecUser) GetExamArrangementsByStuID(stuID string, schoolYear int, schoolTerm int) (rte GetExamArrangementsRte, err error)
GetExamArrangementsByStuID 通过学号获取考试安排
schoolYear := "2021" // 学年 schoolTerm := "1" // {第一学期:0,第二学期:1}
func (*SecUser) GetHomeParam ¶
GetHomeParam 获取主页参数, 用于检测第一层登陆的成功性
func (*SecUser) GetOneCardBalance ¶
func (u *SecUser) GetOneCardBalance() (rte GetOneCardBalanceRte, err error)
GetOneCardBalance 获取一卡通剩余金额
func (*SecUser) GetOneCardBalanceByID ¶
func (u *SecUser) GetOneCardBalanceByID(ID string) (rte GetOneCardBalanceRte, err error)
GetOneCardBalanceByID 通过帐号获取一卡通剩余金额
func (*SecUser) GetOneCardChargeRecords ¶
func (u *SecUser) GetOneCardChargeRecords(pageNum int, pageSize int) (rte GetOneCardChargeRecordsRte, err error)
GetOneCardConsumeRecords 通帐号获取一卡通充值记录
pageNum := "1" pageSize := "99"
func (*SecUser) GetOneCardChargeRecordsByID ¶
func (u *SecUser) GetOneCardChargeRecordsByID(ID string, pageNum int, pageSize int) (rte GetOneCardChargeRecordsRte, err error)
GetOneCardChargeRecordsByID 通过帐号获取一卡通充值记录
pageNum := "1" pageSize := "99"
func (*SecUser) GetOneCardConsumeRecords ¶
func (u *SecUser) GetOneCardConsumeRecords(pageNum int, pageSize int) (rte GetOneCardConsumeRecordsRte, err error)
GetOneCardConsumeRecords 通帐号获取一卡通充值记录
pageNum := "1" pageSize := "99"
func (*SecUser) GetOneCardConsumeRecordsByID ¶
func (u *SecUser) GetOneCardConsumeRecordsByID(ID string, pageNum int, pageSize int) (rte GetOneCardConsumeRecordsRte, err error)
GetOneCardConsumeRecordsByID 通过帐号获取一卡通充值记录
pageNum := "1" pageSize := "99"
func (*SecUser) GetStaff ¶
func (u *SecUser) GetStaff() (rte GetStaffRte, err error)
GetStaff 获取教职工信息
func (*SecUser) GetStaffByStaffID ¶
func (u *SecUser) GetStaffByStaffID(staffID string) (rte GetStaffRte, err error)
GetStaffByStaffID 通过职工号获取教职工信息
func (*SecUser) GetStudent ¶
func (u *SecUser) GetStudent() (GetStudentRte, error)
GetStudent 获取学生信息
func (*SecUser) GetStudentByStuID ¶
func (u *SecUser) GetStudentByStuID(stuID string) (rte GetStudentRte, err error)
GetStudentByStuID 通过学号获取学生信息
func (*SecUser) GetWeekCourses ¶
func (u *SecUser) GetWeekCourses(currentTime string, role int) (rte GetWeekCoursesRte, err error)
GetWeekCourses 获取周课表 currentTime: 如 2021-10-29 role: {学生:1, 教师:2}
func (*SecUser) GetWeekCoursesByID ¶
func (u *SecUser) GetWeekCoursesByID(username string, currentTime string, role int) (rte GetWeekCoursesRte, err error)
GetWeekCoursesByID 通过账号获取获取周课表 currentTime: 如 2021-10-29 role: {学生:1, 教师:2}
func (*SecUser) IsPortalLogged ¶
IsPortalLogged 用户是否已登陆门户
func (*SecUser) PerSetCooikes ¶
func (*SecUser) PerSetPortalPath ¶
PerSetPortalPath 获取门户网页 Path
func (*SecUser) SetPassword ¶
SetPassword 设置密码
func (*SecUser) SetUsername ¶
SetPassword 设置用户名