Discover Packages
github.com/DanielFillol/DataJUD_API_CALLER
models
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Oct 20, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
type BodyRequest struct {
Query Query `json:"query,omitempty"`
}
type Class struct {
Code int `json:"codigo"`
Name string `json:"nome"`
}
type Complement struct {
Code int `json:"codigo"`
Value int `json:"valor"`
Name string `json:"nome"`
Description string `json:"descricao"`
}
type Court struct {
CountyCodeIBGE int `json:"codigoMunicipioIBGE"`
Code int `json:"codigo"`
Name string `json:"nome"`
}
type Format struct {
Code int `json:"codigo"`
Name string `json:"nome"`
}
type Hit struct {
Total Total `json:"total"`
MaxScore float64 `json:"max_score"`
Hits []Hit2 `json:"hits"`
}
type Hit2 struct {
Index string `json:"_index"`
Type string `json:"_type"`
Id string `json:"_id"`
Score float64 `json:"_score"`
Source Source `json:"_source"`
}
type Match struct {
CNJNumber string `json:"numeroProcesso,omitempty"`
}
type Movement struct {
Complement []Complement `json:"complementosTabelados,omitempty"`
Code int `json:"codigo"`
Name string `json:"nome"`
DateTime time .Time `json:"dataHora"`
}
type Query struct {
Match Match `json:"match,omitempty"`
}
type ReadCsv struct {
CNJNumber string
}
type ResponseBody struct {
Took int `json:"took"`
TimedOut bool `json:"timed_out"`
Shards Shard `json:"_shards"`
Hit Hit `json:"hits"`
}
type Shard struct {
Total int `json:"total"`
Successful int `json:"successful"`
Skipped int `json:"skipped"`
Failed int `json:"failed"`
}
type Source struct {
LawsuitNumber string `json:"numeroProcesso"`
Class Class `json:"classe"`
System System `json:"sistema"`
Format Format `json:"formato"`
Court string `json:"tribunal"`
DateLastUpdate time .Time `json:"dataHoraUltimaAtualizacao"`
Degree string `json:"grau"`
Timestamp time .Time `json:"@timestamp"`
DistributionDate time .Time `json:"dataAjuizamento"`
Movements []Movement `json:"movimentos"`
Id string `json:"id"`
SecrecyLevel int `json:"nivelSigilo"`
CourtInstance Court `json:"orgaoJulgador"`
Subjects []Subject `json:"assuntos"`
}
type Subject struct {
Code int `json:"codigo"`
Name string `json:"nome"`
}
type System struct {
Code int `json:"codigo"`
Name string `json:"nome"`
}
type Total struct {
Value int `json:"value"`
Relation string `json:"relation"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.