-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.go
37 lines (32 loc) · 869 Bytes
/
data.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
package main
import "time"
type (
// FOP structure
FOP struct {
Name string `json:"name"`
DRFO string `json:"drfo"`
RR string `json:"rr"`
Bank string `json:"bank"`
MFO string `json:"mfo"`
Person string `json:"person"`
}
// JobItems structure
JobItems struct {
Job string `json:"job"`
Quantity float64 `json:"quantity"`
Price float64 `json:"price"`
Amount float64 `json:"amount"`
Id int `json:"id"`
}
// Data structure
Data struct {
Provider FOP `json:"provider"`
Recipient FOP `json:"recipient"`
Jobs []JobItems `json:"jobs"`
JobsAmount float64 `json:"jobs_amount"`
Act string `json:"act"`
StrJobsAmount string `json:"str_jobs_amount"`
SignOn time.Time `json:"sign_on"`
SignOnUA string `json:"sign_on_ua"`
}
)