-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpagination.go
64 lines (54 loc) · 2.89 KB
/
pagination.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package choruspro
type TriSens string
const (
TriSensAsc TriSens = "Ascendant "
TriSensDesc TriSens = "Descendant"
)
type PaginationResponse struct {
NbResultatsParPage int `json:"nbResultatsParPage"`
PageCourante int `json:"pageCourante"`
Pages int `json:"pages"`
Total int `json:"total"`
}
type PaginationOptions struct {
NbResultatsParPage int `json:"nbResultatsParPage,omitempty"`
PageResultatDemandee int `json:"pageResultatDemandee,omitempty"`
TriColonne string `json:"triColonne,omitempty"`
TriSens TriSens `json:"triSense,omitempty"`
}
type PaginationLignesPosteOptions struct {
NbResultatsParPage int `json:"nbResultatsParPageLignesPoste,omitempty"`
PageResultatDemandee int `json:"pageResultatDemandeeLignesPoste,omitempty"`
TriColonne string `json:"triColonneListeLignesPoste,omitempty"`
TriSens TriSens `json:"triSensListeLignesPoste,omitempty"`
}
type PaginationPiecesJointesOptions struct {
NbResultatsParPage int `json:"nbResultatsParPageListePieceJointe,omitempty"`
PageResultatDemandee int `json:"pageResultatDemandeeListePieceJointe,omitempty"`
TriColonne string `json:"triColonneListePiecesJointes,omitempty"`
TriSens TriSens `json:"triSensListePiecesJointes,omitempty"`
}
type PaginationLignesRecapTVAOptions struct {
NbResultatsParPage int `json:"nbResultatsParPageListeListeRecapitulatifTVA,omitempty"`
PageResultatDemandee int `json:"pageResultatDemandeeListeRecapitulatifTVA,omitempty"`
TriColonne string `json:"triColonneListeRecapitulatifTVA,omitempty"`
TriSens TriSens `json:"triSensListeRecapitulatifTVA,omitempty"`
}
type PaginationHistoActionsUtilisateursOptions struct {
NbResultatsParPageListeHistoAction int `json:"nbResultatsParPageListeHistoAction"`
PageResultatDemandeeListeHistoAction int `json:"pageResultatDemandeeListeHistoAction"`
TriColonneListeHistoAction string `json:"triColonneListeHistoAction"`
TriSensListeHistoAction string `json:"triSensListeHistoAction"`
}
type PaginationHistoEvenementsComplementairesOptions struct {
NbResultatsParPageListeHistoEvenement int `json:"nbResultatsParPageListeHistoEvenement"`
PageResultatDemandeeListeHistoEvenement int `json:"pageResultatDemandeeListeHistoEvenement"`
TriColonneListeHistoEvenement string `json:"triColonneListeHistoEvenement"`
TriSensListeHistoEvenement string `json:"triSensListeHistoEvenement"`
}
type PaginationHistoStatutsOptions struct {
NbResultatsParPageListeHistoStatut int `json:"nbResultatsParPageListeHistoStatut"`
PageResultatDemandeeListeHistoStatut int `json:"pageResultatDemandeeListeHistoStatut"`
TriColonneListeHistoStatut string `json:"triColonneListeHistoStatut"`
TriSensListeHistoStatut string `json:"triSensListeHistoStatut"`
}