add dad jokes
This commit is contained in:
@@ -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
5
model/jokes.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package model
|
||||
|
||||
type DadJoke struct {
|
||||
JOKE string `json:"joke"`
|
||||
}
|
||||
Reference in New Issue
Block a user