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

19 lines
463 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
}
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
}
2021-08-04 02:51:22 +00:00
type ResponseJoke struct {
Link string `json:"link,omitempty"`
Message string `json:"message,omitempty"`
}