2021-07-09 12:13:19 +00:00
|
|
|
package models
|
|
|
|
|
2021-07-17 09:06:33 +00:00
|
|
|
type Joke struct {
|
|
|
|
ID int `json:"id" form:"id" db:"id"`
|
|
|
|
Link string `json:"link" form:"link" db:"link"`
|
|
|
|
Creator int `json:"creator" form:"creator" db:"creator"`
|
2021-07-09 12:13:19 +00:00
|
|
|
}
|
|
|
|
|
2021-07-17 09:06:33 +00:00
|
|
|
type Auth struct {
|
|
|
|
ID int `json:"id" form:"id" db:"id"`
|
|
|
|
Key string `json:"key" form:"key" db:"key"`
|
|
|
|
Token string `json:"token" form:"token" db:"token"`
|
|
|
|
LastUsed string `json:"last_used" form:"last_used" db:"last_used"`
|
2021-07-14 18:17:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Today struct {
|
|
|
|
Date string `redis:"today:date"`
|
|
|
|
Image string `redis:"today:image"`
|
|
|
|
ContentType string `redis:"today:contentType"`
|
2021-07-09 12:13:19 +00:00
|
|
|
}
|