first commit
This commit is contained in:
39
internal/models/models.go
Normal file
39
internal/models/models.go
Normal file
@@ -0,0 +1,39 @@
|
||||
package models
|
||||
|
||||
type Credentials struct {
|
||||
RefreshToken string `json:"refresh_token"`
|
||||
}
|
||||
|
||||
type TokenResponse struct {
|
||||
AccessToken string `json:"access_token"`
|
||||
RefreshToken string `json:"refresh_token"`
|
||||
}
|
||||
|
||||
type Course struct {
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type Folder struct {
|
||||
ID int `json:"id"`
|
||||
FullName string `json:"full_name"`
|
||||
}
|
||||
|
||||
type File struct {
|
||||
DisplayName string `json:"display_name"`
|
||||
URL string `json:"url"`
|
||||
FolderID int `json:"folder_id"`
|
||||
}
|
||||
|
||||
type Module struct {
|
||||
Name string `json:"name"`
|
||||
Items []ModuleItem `json:"items"`
|
||||
}
|
||||
|
||||
type ModuleItem struct {
|
||||
Title string `json:"title"`
|
||||
Type string `json:"type"`
|
||||
URL string `json:"url"`
|
||||
HTMLURL string `json:"html_url"`
|
||||
ContentID int `json:"content_id"`
|
||||
Indent int `json:"indent"`
|
||||
}
|
||||
Reference in New Issue
Block a user