-
Notifications
You must be signed in to change notification settings - Fork 1
/
model.go
91 lines (87 loc) · 3.53 KB
/
model.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package main
type ScheduleRequestInput struct {
Dose int `json:"dose"`
SessionID string `json:"session_id"`
Slot string `json:"slot"`
Beneficiaries []string `json:"beneficiaries"`
}
type GetBeneficiariesResponse struct {
Beneficiaries []Beneficiaries `json:"beneficiaries"`
}
type Appointments struct {
CenterID int `json:"center_id"`
Name string `json:"name"`
NameL string `json:"name_l"`
Address string `json:"address"`
AddressL string `json:"address_l"`
StateName string `json:"state_name"`
StateNameL string `json:"state_name_l"`
DistrictName string `json:"district_name"`
DistrictNameL string `json:"district_name_l"`
BlockName string `json:"block_name"`
BlockNameL string `json:"block_name_l"`
Pincode string `json:"pincode"`
Lat float64 `json:"lat"`
Long float64 `json:"long"`
From string `json:"from"`
To string `json:"to"`
FeeType string `json:"fee_type"`
Dose int `json:"dose"`
AppointmentID string `json:"appointment_id"`
SessionID string `json:"session_id"`
Date string `json:"date"`
Slot string `json:"slot"`
}
type Beneficiaries struct {
BeneficiaryReferenceID string `json:"beneficiary_reference_id"`
Name string `json:"name"`
BirthYear string `json:"birth_year"`
Gender string `json:"gender"`
MobileNumber string `json:"mobile_number"`
PhotoIDType string `json:"photo_id_type"`
PhotoIDNumber string `json:"photo_id_number"`
ComorbidityInd string `json:"comorbidity_ind"`
VaccinationStatus string `json:"vaccination_status"`
Vaccine string `json:"vaccine"`
Dose1Date string `json:"dose1_date"`
Dose2Date string `json:"dose2_date"`
Appointments []Appointments `json:"appointments"`
}
type GetResponse struct {
Centers []Centers `json:"centers"`
}
type VaccineFees struct {
Vaccine string `json:"vaccine"`
Fee string `json:"fee"`
}
type Sessions struct {
SessionID string `json:"session_id"`
Date string `json:"date"`
AvailableCapacity int `json:"available_capacity"`
AvailableCapacityDose1 int `json:"available_capacity_dose1"`
AvailableCapacityDose2 int `json:"available_capacity_dose2"`
MinAgeLimit int `json:"min_age_limit"`
Vaccine string `json:"vaccine"`
Slots []string `json:"slots"`
}
type Centers struct {
CenterID int `json:"center_id"`
Name string `json:"name"`
NameL string `json:"name_l"`
Address string `json:"address"`
AddressL string `json:"address_l"`
StateName string `json:"state_name"`
StateNameL string `json:"state_name_l"`
DistrictName string `json:"district_name"`
DistrictNameL string `json:"district_name_l"`
BlockName string `json:"block_name"`
BlockNameL string `json:"block_name_l"`
Pincode int `json:"pincode"`
Lat float64 `json:"lat"`
Long float64 `json:"long"`
From string `json:"from"`
To string `json:"to"`
FeeType string `json:"fee_type"`
VaccineFees []VaccineFees `json:"vaccine_fees"`
Sessions []Sessions `json:"sessions"`
}