Initial commit
This commit is contained in:
16
models/course.go
Normal file
16
models/course.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package models
|
||||
|
||||
// Course 课程结构
|
||||
type Course struct {
|
||||
Name string `json:"name"`
|
||||
Teacher string `json:"teacher"`
|
||||
Room string `json:"room"`
|
||||
Schedule []Schedule `json:"schedule"`
|
||||
}
|
||||
|
||||
// Schedule 上课时间
|
||||
type Schedule struct {
|
||||
Day string `json:"day"`
|
||||
Section []int `json:"section"`
|
||||
Weeks []int `json:"weeks"`
|
||||
}
|
||||
Reference in New Issue
Block a user