/
helpdesk_struct.go
39 lines (33 loc) · 1.57 KB
/
helpdesk_struct.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
package hdbackend
import (
"go.mongodb.org/mongo-driver/bson/primitive"
)
type DataComplain struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
Sistemcomp string `bson:"sistemcomp,omitempty" json:"sistemcomp,omitempty"`
Status string `bson:"status,omitempty" json:"status,omitempty"`
Biodata User `bson:"user,omitempty" json:"user,omitempty"`
}
type User struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
Nama string `bson:"nama,omitempty" json:"nama,omitempty"`
Email string `bson:"email,omitempty" json:"email,omitempty"`
Handphone string `bson:"handphone,omitempty" json:"handphone,omitempty"`
}
type Helper struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
Helpid string `bson:"helpid,omitempty" json:"helpid,omitempty"`
Username string `bson:"username,omitempty" json:"username,omitempty"`
Nama string `bson:"nama,omitempty" json:"nama,omitempty"`
Email string `bson:"email,omitempty" json:"email,omitempty"`
Handphone string `bson:"handphone,omitempty" json:"handphone,omitempty"`
}
type JumlahComplain struct {
Tahun string `bson:"tahun,omitempty" json:"tahun,omitempty"`
Bulan string `bson:"bulan,omitempty" json:"bulan,omitempty"`
Jumlah string `bson:"jumlah,omitempty" json:"jumlah,omitempty"`
}
type Critics struct {
Name string `bson:"name" json:"name"`
CriticVal string `bson:"critics" json:"critics"`
}