Skip to content

Commit 1b05b2f

Browse files
committed
feat: rename struct for clarification
1 parent 3f82dd5 commit 1b05b2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/models_response.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package models
22

33
import "time"
44

5-
type ResponseBody struct {
5+
type ResponseBodyLawsuit struct {
66
Took int `json:"took"`
77
TimedOut bool `json:"timed_out"`
88
Shards Shard `json:"_shards"`
@@ -43,7 +43,7 @@ type Source struct {
4343
Court string `json:"tribunal"`
4444
DateLastUpdate time.Time `json:"dataHoraUltimaAtualizacao"`
4545
Degree string `json:"grau"`
46-
Timestamp time.Time `json:"@timestamp"`
46+
Timestamp time.Time `json:"@TimestampCode"`
4747
DistributionDate time.Time `json:"dataAjuizamento"`
4848
Movements []Movement `json:"movimentos"`
4949
Id string `json:"id"`

0 commit comments

Comments
 (0)