jokes-bapak2/api/app/v1/models/request.go

21 lines
593 B
Go
Raw Normal View History

2021-07-09 12:13:19 +00:00
package models
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
}
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
}