Documentation ¶
Index ¶
- Variables
- func IsValidExtension(ext string) bool
- type AddRoomToClassroomRequest
- type AddStudentToClassroomRequest
- type ChangePasswordRequest
- type ChangeRoleRequest
- type Classroom
- type ClassroomOfUser
- type CreateUpdateClassroomRequest
- type CreateUserRequest
- type LoginRequest
- type LoginResponse
- type Material
- type RegisterRequest
- type Submission
- type Task
- type UpdateUserRequest
- type User
- type UserResponse
- type UserRole
Constants ¶
This section is empty.
Variables ¶
View Source
var AllowedExtension = []string{
".pdf",
".doc",
".docx",
".xls",
".xlsx",
".ppt",
".pptx",
}
Functions ¶
func IsValidExtension ¶
Types ¶
type AddRoomToClassroomRequest ¶
type AddRoomToClassroomRequest struct {
RoomID int64 `json:"room_id"`
}
type AddStudentToClassroomRequest ¶
type AddStudentToClassroomRequest struct {
StudentID int64 `json:"student_id"`
}
type ChangePasswordRequest ¶
type ChangeRoleRequest ¶
type ChangeRoleRequest struct {
Role UserRole `json:"role" binding:"required"`
}
type Classroom ¶
type Classroom struct { ID int64 `json:"id" gorm:"primary_key"` Label string `json:"label"` TeacherID int64 `json:"teacher_id"` StudentIDs pq.Int64Array `json:"student_ids" gorm:"type:BigInt[]"` RoomIDs pq.Int64Array `json:"room_ids" gorm:"type:BigInt[]"` }
type ClassroomOfUser ¶
type CreateUserRequest ¶
type LoginRequest ¶
type LoginResponse ¶
type RegisterRequest ¶
type Submission ¶
type UpdateUserRequest ¶
type UserResponse ¶
Click to show internal directories.
Click to hide internal directories.