-
Notifications
You must be signed in to change notification settings - Fork 0
/
type.go
336 lines (298 loc) · 11.8 KB
/
type.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
package peda
import (
"time"
"go.mongodb.org/mongo-driver/bson/primitive"
)
type GeometryPolygon struct {
Coordinates [][][]float64 `json:"coordinates" bson:"coordinates"`
Type string `json:"type" bson:"type"`
}
type GeometryLineString struct {
Coordinates [][]float64 `json:"coordinates" bson:"coordinates"`
Type string `json:"type" bson:"type"`
}
type GeometryPoint struct {
Coordinates []float64 `json:"coordinates" bson:"coordinates"`
Type string `json:"type" bson:"type"`
}
type GeoJsonLineString struct {
Type string `json:"type" bson:"type"`
Properties Properties `json:"properties" bson:"properties"`
Geometry GeometryLineString `json:"geometry" bson:"geometry"`
}
type GeoJsonPolygon struct {
Type string `json:"type" bson:"type"`
Properties Properties `json:"properties" bson:"properties"`
Geometry GeometryPolygon `json:"geometry" bson:"geometry"`
}
type Geometry struct {
Coordinates interface{} `json:"coordinates" bson:"coordinates"`
Type string `json:"type" bson:"type"`
}
type GeoJson struct {
Type string `json:"type" bson:"type"`
Properties Properties `json:"properties" bson:"properties"`
Geometry Geometry `json:"geometry" bson:"geometry"`
}
type Properties struct {
Name string `json:"name" bson:"name"`
}
type User struct {
Username string `json:"username" bson:"username"`
Password string `json:"password" bson:"password,omitempty"`
Role string `json:"role,omitempty" bson:"role,omitempty"`
Token string `json:"token,omitempty" bson:"token,omitempty"`
Private string `json:"private,omitempty" bson:"private,omitempty"`
Publick string `json:"publick,omitempty" bson:"publick,omitempty"`
No_whatsapp string `json:"no_whatsapp,omitempty" bson:"no_whatsapp,omitempty"`
Nomor string `json:"nomor,omitempty" bson:"nomor,omitempty"`
}
type UserToken struct {
Username User `json:"username" bson:"username"`
}
type Credential struct {
Status bool `json:"status" bson:"status"`
Token string `json:"token,omitempty" bson:"token,omitempty"`
Message string `json:"message,omitempty" bson:"message,omitempty"`
Username string `json:"username,omitempty" bson:"username,omitempty"`
Data interface{} `json:"data,omitempty" bson:"data,omitempty"`
}
type Product struct {
ID primitive.ObjectID `bson:"_id,omitempty" `
Nomorid int `json:"nomorid" bson:"nomorid"`
Name string `json:"name" bson:"name"`
Description string `json:"description" bson:"description"`
Price int `json:"price" bson:"price"`
Stock int `json:"stock" bson:"stock"`
Size string `json:"size" bson:"size"`
Image string `json:"image" bson:"image"`
Status string `json:"status" bson:"status"`
}
type Response struct {
Status bool `json:"status" bson:"status"`
Message string `json:"message" bson:"message"`
Data interface{} `json:"data" bson:"data"`
}
type Content struct {
ID int `json:"id" bson:"id" `
Content string `json:"content" bson:"content"`
Image string `json:"image" bson:"image"`
Description string `json:"description" bson:"description"`
Status bool `json:"status" bson:"status"`
}
type Blog struct {
ID int `json:"id" bson:"id"`
Content string `json:"content_one" bson:"content_one"`
Content_two string `json:"content_two" bson:"content_two"`
Image string `json:"image" bson:"image"`
Title string `json:"title" bson:"title"`
Title_two string `json:"title_two" bson:"title_two"`
Description string `json:"description" bson:"description"`
Description_twoo string `json:"description_two" bson:"description_two"`
Description_three string `json:"description_3" bson:"description_3"`
Status bool `json:"status" bson:"status"`
}
type Tags struct {
Tags string `json:"tags" bson:"tags"`
}
type Category struct {
Category string `json:"category" bson:"category"`
Status bool `json:"status" bson:"status"`
}
type Comment struct {
ID int `json:"id" bson:"id"`
Username string `json:"username" bson:"username"`
Answer string `json:"comment" bson:"comment"`
Questions string `json:"questions" bson:"questions"`
Tanggal string `json:"tanggal" bson:"tanggal"`
Status bool `json:"status" bson:"status"`
}
type Share struct {
Share string `json:"share" bson:"share"`
Status bool `json:"status" bson:"status"`
}
type EventGlobal struct {
ID int `json:"id" bson:"id"`
Title string `json:"title" bson:"title"`
Description string `json:"description" bson:"description"`
Tanggal string `json:"tanggal" bson:"tanggal"`
Image string `json:"image" bson:"image"`
Harga int `json:"harga" bson:"harga"`
Content []Content `json:"content" bson:"content"`
Product []Product `json:"product" bson:"product"`
Status bool `json:"status" bson:"status"`
}
type Event struct {
ID int `json:"id" bson:"id"`
Title string `json:"title" bson:"title"`
Description string `json:"description" bson:"description"`
Tanggal string `json:"tanggal" bson:"tanggal"`
Image string `json:"image" bson:"image"`
Harga int `json:"harga" bson:"harga"`
LinkYoutube string `json:"linkyoutube" bson:"linkyoutube"`
Content []Content `json:"content" bson:"content"`
Product []Product `json:"product" bson:"product"`
Status bool `json:"status" bson:"status"`
}
type About struct {
ID int `json:"id" bson:"id"`
Title string `json:"title" bson:"title"`
Description string `json:"description" bson:"description"`
Image string `json:"image" bson:"image"`
Content []Content `json:"content" bson:"content"`
Product []Product `json:"product" bson:"product"`
Status bool `json:"status" bson:"status"`
}
type Gallery struct {
ID int `json:"id" bson:"id"`
Title string `json:"title" bson:"title"`
Description string `json:"description" bson:"description"`
Image string `json:"image" bson:"image"`
Status bool `json:"status" bson:"status"`
}
type Contack struct {
ID int `json:"id" bson:"id"`
Name string `json:"title" bson:"title"`
Subject string `json:"description" bson:"description"`
Message string `json:"image" bson:"image"`
Email string `json:"email" bson:"email"`
Phone string `json:"phone" bson:"phone"`
Status bool `json:"status" bson:"status"`
}
type Iklan struct {
ID int `json:"id" bson:"id"`
Title string `json:"title" bson:"title"`
Description string `json:"description" bson:"description"`
Image string `json:"image" bson:"image"`
Status bool `json:"status" bson:"status"`
}
type Location struct {
Type string `bson:"type"`
Coordinates [][]float64 `bson:"coordinates"`
CRS struct {
Type string `bson:"type"`
Properties struct {
Name string `bson:"name"`
} `bson:"properties"`
} `bson:"crs"`
}
type Query struct {
LocationField struct {
GeoIntersects struct {
Geometry Location `bson:"$geometry"`
} `bson:"$geoIntersects"`
} `bson:"locationField"`
}
type Testing struct {
ID int `json:"id" bson:"id"`
Title string `json:title bson:"title"`
Description string `json:description bson:"description"`
Image string `json:image bson:"image"`
Status bool `json:status bson:"status"`
Nama string `json:nama bson:"nama"`
alamat string `json:alamat bson:"alamat"`
tanggal time.Time `json:tanggal bson:"tanggal"`
}
type InputSidang struct {
Npm int `json:npm bson:"npm"`
Endpoint_token string `jsong:"endpoint_token" bson:"endpoint_token"`
Package string `json:"package" bson:"package"`
Endpoint_indonesia string `json:"endpoint_indonesia" bson:"endpoint_indonesia"`
Wamyid string `json:"wamyid" bson:"wamyid"`
RilisJsv string `json:"rilis_jsv" bson:"rilis_jsv"`
TypeModule string `json:"type_module" bson:"type_module"`
Kelengkapan_css string `json:"kelengkapan_css" bson:"kelengkapan_css"`
GithubPages string `json:"github_pages" bson:"github_pages"`
}
type Frontend struct {
Npm int `json:npm bson:"npm"`
Nama string `json:nama bson:"nama"`
NamaDosen string `json:namadosen bson:"namadosen"`
Rilisjs string `json:rilisjs bson:"rilisjs"`
Pemanggilanjs string `json:pemanggilanjs bson:"pemanggilanjs"`
Kelengkapancss string `json:kelengkapancss bson:"kelengkapancss"`
CustomDomain string `json:customdomain bson:"customdomain"`
Status bool `json:status bson:"status"`
}
type Backend struct {
Npm int `json:npm bson:"npm"`
Nama string `json:nama bson:"nama"`
NamaDosen string `json:namadosen bson:"namadosen"`
Autentikasitoken string `json:autentikasitoken bson:"autentikasitoken"`
Packagesendiri string `json:packagesendiri bson:"packagesendiri"`
Endpointgcfjakarta string `json:endpointgcfjakarta bson:"endpointgcfjakarta"`
Integrasiwamyid string `json:integrasiwamyid bson:"integrasiwamyid"`
Status bool `json:status bson:"status"`
}
type Lokasi struct {
ID primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
Type string `json:"type" bson:"type"`
Properties Properties `json:"properties" bson:"properties"`
Geometry Geometry `json:"geometry" bson:"geometry"`
}
type Name struct {
Name string `bson:"name,omitempty"`
}
type FullGeoJson struct {
ID primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
Type string `json:"type" bson:"type"`
Properties Properties `json:"properties" bson:"properties"`
Geometry Geometry `json:"geometry" bson:"geometry"`
}
type LongLat struct {
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Min float64 `json:"min"`
Max float64 `json:"max"`
}
type Radius struct {
Radius float64 `json:"radius"`
}
type LongLatt struct {
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Latitude2 float64 `json:"latitude2"`
Longitude2 float64 `json:"longitude2"`
}
type Pesan struct {
Status bool `json:"status" bson:"status"`
Message string `json:"message" bson:"message"`
Data interface{} `json:"data,omitempty" bson:"data,omitempty"`
Role string `json:"role,omitempty" bson:"role,omitempty"`
Token string `json:"token,omitempty" bson:"token,omitempty"`
Nomor string `json:"nomor,omitempty" bson:"nomor,omitempty"`
}
type LocationData struct {
ID string `bson:"_id"`
Province string `bson:"province"`
District string `bson:"district"`
SubDistrict string `bson:"sub_district"`
Village string `bson:"village"`
Border GeoBorder `bson:"border"`
}
type GeoBorder struct {
Type string `bson:"type"`
Coordinates [][][]float64 `bson:"coordinates"`
}
type Polyline struct {
Coordinates [][]float64 `json:"coordinates"`
}
type CredentialUser struct {
Status bool `json:"status" bson:"status"`
Data struct {
Name string `json:"name" bson:"name"`
Username string `json:"username" bson:"username"`
Role string `json:"role" bson:"role"`
Nomor string `json:"nomor" bson:"nomor"`
} `json:"data" bson:"data"`
Message string `json:"message,omitempty" bson:"message,omitempty"`
}
type Payload struct {
Name string `json:"name"`
Username string `json:"username"`
Role string `json:"role"`
Nomor string `json:"nomor"`
Exp time.Time `json:"exp"`
Iat time.Time `json:"iat"`
Nbf time.Time `json:"nbf"`
}