add dad jokes

This commit is contained in:
2023-06-24 10:34:49 -04:00
parent b01b26b12d
commit 31a71fac7f
11 changed files with 193 additions and 46 deletions

View File

@@ -1,13 +0,0 @@
package model
type DadJokes struct {
ID uint `gorm: "primary key;autoIncrement" json:"id"`
Author *string `json:"author"`
Title *string `json:"title"`
Publisher *string `json:"publisher"`
}
type DadJoke struct {
Author string `json:"author"`
Title string `json:"title"`
Publisher string `json:"publisher"`
}

5
model/jokes.go Normal file
View File

@@ -0,0 +1,5 @@
package model
type DadJoke struct {
JOKE string `json:"joke"`
}