File size: 1,223 Bytes
2d9d20d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
package models

type SuccessResponse struct {
	Status   string `json:"status"`
	Message  string `json:"message"`
	Data     any    `json:"data"`
	MetaData any    `json:"meta_data"`
}

type ErrorResponse struct {
	Status   string    `json:"status"`
	Message  string    `json:"message"`
	Errors   Exception `json:"errors"`
	MetaData any       `json:"meta_data"`
}
type AuthenticatedUser struct {
	Account Account `json:"account"`
	Token   string  `json:"token"`
}

type EventDetailResponse struct {
	Data           *Events
	RegisterStatus int `json:"register_status"`
}

type Options struct {
	OptionCategory OptionCategory `json:"option_category"`
	OptionValues   []OptionValues `json:"option_values"`
}
type OptionsResponse struct {
	Options []Options `json:"options"`
}

type UserProfileResponse struct {
	Account Account        `json:"account"`
	Details AccountDetails `json:"details"`
}

type AcademyMaterialResponse struct {
	Materials AcademyMaterial
	Contents  []AcademyContent
}
type AcademyResponse struct {
	Academy   Academy                   `json:"academy"`
	Materials []AcademyMaterialResponse `json:"academy_materials"`
}

type AllAcademyResponse struct {
	Academies []AcademyResponse `json:"academy_dasar"`
}