package
Version:
v0.0.0-...-f416a30
Opens a new window with list of versions in this module.
Published: Jul 11, 2023
License: MIT
Opens a new window with license information.
Imports: 21
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AuthResponse struct {
Token string `json:"token"`
Expires int64 `json:"expires"`
}
type CommentResponse struct {
}
type Credentials struct {
Password string `json:"password"`
Username string `json:"username"`
}
type Error struct {
Label string `json:"label"`
Message string `json:"message"`
}
type Errors struct {
Errors []*Error `json:"errors"`
}
type LabelResponse struct {
ID uint `json:"id"`
Text string `json:"text"`
Color string `json:"color"`
}
type NewComment struct {
}
type NewLabel struct {
Text string `json:"text" binding:"max=2047"`
Color string `json:"color"`
}
type NewTodo struct {
Title string `json:"title" binding:"max=2047"`
DueDate types.DueDate `json:"due_date"`
}
type TodoResponse struct {
ID uint `json:"id"`
Title string `json:"title"`
DueDate string `json:"due_date"`
Done bool `json:"done"`
}
type TodosQuery struct {
Limit uint32 `form:"limit" binding:"lte=1000"`
Offset uint32 `form:"offset"`
}
type TodosResponse struct {
HasMore bool `json:"has_more"`
TotalCount int `json:"total_count"`
Data []TodoResponse `json:"data"`
}
type UpdateTodo struct {
NewTodo
Done bool `json:"done"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.