/
struct.go
67 lines (56 loc) · 1.74 KB
/
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
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
package backenduser1
import (
pasproj "github.com/e-dumas-sukasari/webpasetobackend"
)
type Report struct {
Title string `json:"title"`
Description string `json:"description"`
DateOccurred string `json:"dateOccurred"`
FileAttachment string `json:"fileAttachment"`
}
type ResponseBack struct {
Status int `json:"status"`
Message string `json:"message"`
Data []string `json:"data"`
}
type ResponseEmployee struct {
Status int `json:"status"`
Message string `json:"message"`
Data Employee `json:"data"`
}
type ResponseEmployeeBanyak struct {
Status int `json:"status"`
Message string `json:"message"`
Data []Employee `json:"data"`
}
type Employee struct {
EmployeeId string `json:"employeeid" bson:"employeeid,omitempty"`
Name string `json:"name" bson:"name,omitempty"`
Email string `json:"email" bson:"email,omitempty"`
Phone string `json:"phone" bson:"phone,omitempty"`
Division Division `json:"division" bson:"division,omitempty"`
Account pasproj.User `json:"account" bson:"account,omitempty"`
Salary Salary `json:"salary" bson:"salary"`
}
type Division struct {
DivId int `json:"divId" bson:"divId"`
DivName string `json:"divName" bson:"divName"`
}
type Updated struct {
Email string `json:"email" bson:"email"`
Phone string `json:"phone" bson:"phone"`
}
type Salary struct {
BasicSalary int `bson:"basic-salary" json:"basic-salary"`
HonorDivision int `bson:"honor-division" json:"honor-division"`
}
type Cred struct {
Status int `json:"status"`
Message string `json:"message"`
}
type ReqUsers struct {
Username string `json:"username"`
}
type RequestEmployee struct {
EmployeeId string `json:"employeeid"`
}