mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-23 15:11:36 +00:00
Commit from m3o/m3o action
This commit is contained in:
@@ -16,7 +16,7 @@ type JokeService struct {
|
||||
client *client.Client
|
||||
}
|
||||
|
||||
//
|
||||
// Get a random joke
|
||||
func (t *JokeService) Random(request *RandomRequest) (*RandomResponse, error) {
|
||||
|
||||
rsp := &RandomResponse{}
|
||||
@@ -28,9 +28,8 @@ type JokeInfo struct {
|
||||
Body string `json:"body"`
|
||||
Category string `json:"category"`
|
||||
Id string `json:"id"`
|
||||
// the source of joke
|
||||
Source string `json:"source"`
|
||||
Title string `json:"title"`
|
||||
Source string `json:"source"`
|
||||
Title string `json:"title"`
|
||||
}
|
||||
|
||||
type RandomRequest struct {
|
||||
|
||||
Reference in New Issue
Block a user