Documentation
¶
Index ¶
- type AddClassResponse
- type AdminModifyPasswordRequest
- type AdminModifyRequest
- type Class
- type ClassMap
- type ClassQueryRequest
- type ClassWithStudent
- type CommonClassRequest
- type CommonResponse
- type GetClassBelongsResponse
- type GetClassResponse
- type GetTeacherStudentRequest
- type GetUserResponse
- type ModifyUserPasswordRequest
- type ModifyUserRequest
- type QueryRequest
- type RegisterUserRequest
- type SecurityQuestion
- type StudentClassRequest
- type StudentLeaveClassRequest
- type TeacherAddStudentRequest
- type TeacherClassRequest
- type TeacherRemoveStudentRequest
- type TokenResponse
- type User
- type UserIDOnlyRequest
- type UserInfo
- type UserLoginRequest
- type UserSecurity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddClassResponse ¶
type AddClassResponse struct {
ClassID int64 `json:"classid"`
}
type AdminModifyPasswordRequest ¶
type AdminModifyPasswordRequest struct { UserIDOnlyRequest Password string `json:"password"` }
type AdminModifyRequest ¶
type AdminModifyRequest struct { UserIDOnlyRequest Email string `json:"email,omitempty"` RealName string `json:"realName,omitempty"` UserSchoollD string `json:"userSchoollD,omitempty"` SchoolCode string `json:"schoolCode,omitempty"` Class string `json:"class,omitempty"` Sex string `json:"sex,omitempty"` }
type ClassQueryRequest ¶
type ClassWithStudent ¶
type ClassWithStudent struct { ClassName string `json:"classname"` Studetns []*GetUserResponse `json:"students"` }
type CommonClassRequest ¶
type CommonClassRequest struct {
ClassName string `json:"classname"`
}
type CommonResponse ¶
type GetClassBelongsResponse ¶
type GetClassBelongsResponse struct { TeacherID int64 `json:"teacherid"` Classes []*ClassWithStudent `json:"classes"` }
type GetClassResponse ¶
type GetTeacherStudentRequest ¶
type GetTeacherStudentRequest struct {
TeacherID int64 `json:"teacherid"`
}
type GetUserResponse ¶
type GetUserResponse struct { ID int64 `json:"id"` Name string `json:"name"` Email string `json:"email,omitempty"` RealName string `json:"realName,omitempty"` UserSchoollD string `json:"userSchoollD,omitempty"` SchoolCode string `json:"schoolCode,omitempty"` Class string `json:"class,omitempty"` Sex string `json:"sex,omitempty"` }
type ModifyUserPasswordRequest ¶
type ModifyUserPasswordRequest struct {
Password string `json:"password"`
}
type ModifyUserRequest ¶
type QueryRequest ¶
type RegisterUserRequest ¶
type SecurityQuestion ¶
type StudentClassRequest ¶
type StudentLeaveClassRequest ¶
type StudentLeaveClassRequest struct {
StudentID int64 `json:"studentid"`
}
type TeacherClassRequest ¶
type TeacherRemoveStudentRequest ¶
type TeacherRemoveStudentRequest struct {
StudentIDs []int64 `json:"studentid"`
}
type TokenResponse ¶
type User ¶
type User struct { ID int64 `gorm:"column:id"` Name string `gorm:"column:name"` Email string `gorm:"column:email"` RealName string `gorm:"column:realName"` UserSchoollD string `gorm:"column:userSchoollD"` SchoolCode string `gorm:"column:schoolCode"` Class int64 `gorm:"column:class"` Role string `gorm:"column:role"` Sex string `gorm:"column:sex"` Password string `gorm:"column:password"` Security UserSecurity `gorm:"serializer:json;column:security"` SecurityQuestion []SecurityQuestion `gorm:"serializer:json;column:securityQuestion"` }
type UserIDOnlyRequest ¶
type UserIDOnlyRequest struct {
UserID int `json:"id"`
}
type UserLoginRequest ¶
type UserLoginRequest struct { QueryRequest Password string `json:"password"` }
type UserSecurity ¶
type UserSecurity struct {
EmailVerify bool `json:"emailVerify"`
}
Click to show internal directories.
Click to hide internal directories.