Files
gin-swagger/example/web/handler.go
T
Eason Lin 1e97bf3e19 Develop
2017-06-25 17:10:32 +08:00

28 lines
482 B
Go

package web
// @hello
// yo yo yo yo
type Pet struct {
ID int `json:"id"`
Category struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"category"`
Name string `json:"name"`
PhotoUrls []string `json:"photoUrls"`
Tags []struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"tags"`
Status string `json:"status"`
}
type Pet2 struct {
ID int `json:"id"`
}
type APIError struct {
ErrorCode int
ErrorMessage string
}