forked from swaggo/swag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
handler.go
50 lines (41 loc) · 779 Bytes
/
handler.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package web
import (
"time"
)
// Pet example
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 []Tag `json:"tags"`
Status string `json:"status"`
}
// Tag example
type Tag struct {
ID int `json:"id"`
Name string `json:"name"`
}
// Pet2 example
type Pet2 struct {
ID int `json:"id"`
}
// APIError example
type APIError struct {
ErrorCode int
ErrorMessage string
CreatedAt time.Time
}
// RevValueBase example
type RevValueBase struct {
Status bool `json:"Status"`
Err int32 `json:"Err"`
}
// RevValue example
type RevValue struct {
RevValueBase
Data int `json:"Data"`
}