Skip to content

Commit 4771e61

Browse files
committed
Towards v1 (3)
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent 1b3ee57 commit 4771e61

File tree

5 files changed

+53
-82
lines changed

5 files changed

+53
-82
lines changed

.idea/dictionaries/vr.xml

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

+16-50
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

currency/currency.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"github.com/go-resty/resty/v2"
55
"github.com/labstack/labstack-go"
66
"strconv"
7+
"time"
78
)
89

910
type (
@@ -24,8 +25,8 @@ type (
2425
}
2526

2627
ConvertResponse struct {
27-
Time string `json:"time"`
28-
Amount float64 `json:"amount"`
28+
Time time.Time `json:"time"`
29+
Amount float64 `json:"amount"`
2930
}
3031

3132
ListRequest struct {

domain/domain.go

+25-24
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package domain
33
import (
44
"github.com/go-resty/resty/v2"
55
"github.com/labstack/labstack-go"
6+
"time"
67
)
78

89
type (
@@ -11,27 +12,27 @@ type (
1112
}
1213

1314
Record struct {
14-
Domain string `json:"domain"`
15-
Type string `json:"type"`
16-
Server string `json:"server"`
17-
A string `json:"a"`
18-
AAAA string `json:"aaaa"`
19-
CNAME string `json:"cname"`
20-
MX string `json:"mx"`
21-
NS string `json:"ns"`
22-
PTR string `json:"ptr"`
23-
Serial uint32 `json:"serial"`
24-
Refresh uint32 `json:"refresh"`
25-
Retry uint32 `json:"retry"`
26-
Expire uint32 `json:"expire"`
27-
Priority uint32 `json:"priority"`
28-
Weight uint32 `json:"weight"`
29-
Port uint32 `json:"port"`
30-
Target string `json:"target"`
31-
TXT []string `json:"txt"`
32-
TTL uint32 `json:"ttl"`
33-
Class string `json:"class"`
34-
SPF []string `json:"spf"`
15+
Domain string `json:"domain"`
16+
Type string `json:"type"`
17+
Server string `json:"server"`
18+
A string
19+
AAAA string
20+
CNAME string
21+
MX string
22+
NS string
23+
PTR string
24+
Serial int `json:"serial"`
25+
Refresh int `json:"refresh"`
26+
Retry int `json:"retry"`
27+
Expire int `json:"expire"`
28+
Priority int `json:"priority"`
29+
Weight int `json:"weight"`
30+
Port int `json:"port"`
31+
Target string `json:"target"`
32+
TXT []string
33+
TTL int `json:"ttl"`
34+
Class string `json:"class"`
35+
SPF []string
3536
}
3637

3738
Result struct {
@@ -96,9 +97,9 @@ type (
9697
Domain string `json:"domain"`
9798
Id string `json:"id"`
9899
Status string `json:"status"`
99-
CreatedDate string `json:"created_date"`
100-
UpdatedDate string `json:"updated_date"`
101-
ExpiryDate string `json:"expiry_date"`
100+
CreatedDate time.Time `json:"created_date"`
101+
UpdatedDate time.Time `json:"updated_date"`
102+
ExpiryDate time.Time `json:"expiry_date"`
102103
NameServers []string `json:"name_servers"`
103104
Dnssec string `json:"dnssec"`
104105
Registrar *Registrar `json:"registrar"`

ip/ip.go

+7-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package ip
33
import (
44
"github.com/go-resty/resty/v2"
55
"github.com/labstack/labstack-go"
6+
"time"
67
)
78

89
type (
@@ -27,11 +28,11 @@ type (
2728
}
2829

2930
TimeZone struct {
30-
ID string `json:"id"`
31-
Name string `json:"name"`
32-
Abbreviation string `json:"abbreviation"`
33-
Offset int32 `json:"offset"`
34-
Time string `json:"time"`
31+
ID string `json:"id"`
32+
Name string `json:"name"`
33+
Abbreviation string `json:"abbreviation"`
34+
Offset int `json:"offset"`
35+
Time time.Time `json:"time"`
3536
}
3637

3738
Language struct {
@@ -40,7 +41,7 @@ type (
4041
}
4142

4243
AS struct {
43-
Number int64 `json:"number"`
44+
Number int `json:"number"`
4445
Name string `json:"name"`
4546
Organization string `json:"organization"`
4647
}

0 commit comments

Comments
 (0)