@@ -38,14 +38,54 @@ type Country struct {
38
38
Added uint64 `json:"added"`
39
39
}
40
40
41
+ type Event struct {
42
+ EventID string `json:"eventID"`
43
+ ID string `json:"id"`
44
+ Description string `json:"description"`
45
+ TypeID string `json:"typeID"`
46
+ StartTime string `json:"startTime"`
47
+ EndTime string `json:"endTime"`
48
+ CustomerID string `json:"customerID"`
49
+ ContactID string `json:"contactID"`
50
+ ProjectID string `json:"projectID"`
51
+ EmployeeID string `json:"employeeID"`
52
+ SubmitterID string `json:"submitterID"`
53
+ SupplierID string `json:"supplierID"`
54
+ SupplierName string `json:"supplierName"`
55
+ StatusID string `json:"statusID"`
56
+ ResourceID string `json:"resourceID"`
57
+ Notes string `json:"notes"`
58
+ LastModified string `json:"lastModified"`
59
+ ContactName string `json:"contactName"`
60
+ CustomerName string `json:"customerName"`
61
+ EmployeeName string `json:"employeeName"`
62
+ SubmitterName string `json:"submitterName"`
63
+ ProjectName string `json:"projectName"`
64
+ ResourceName string `json:"resourceName"`
65
+ StatusName string `json:"statusName"`
66
+ TypeName string `json:"typeName"`
67
+ Completed string `json:"completed"`
68
+ }
69
+
70
+ type GetEventsResponse struct {
71
+ Status sharedCommon.Status `json:"status"`
72
+ Events []Event `json:"records"`
73
+ }
74
+
75
+ type SaveEventResponse struct {
76
+ Status sharedCommon.Status
77
+ Records []struct {
78
+ EventID int `json:"eventID"`
79
+ } `json:"records"`
80
+ }
41
81
type Employee struct {
42
- EmployeeID string `json:"employeeID"`
43
- FullName string `json:"fullName"`
44
- EmployeeName string `json:"employeeName"`
45
- FirstName string `json:"firstName"`
46
- LastName string `json:"lastName"`
47
- Phone string `json:"phone"`
48
- Mobile string `json:"mobile"`
82
+ EmployeeID string `json:"employeeID"`
83
+ FullName string `json:"fullName"`
84
+ EmployeeName string `json:"employeeName"`
85
+ FirstName string `json:"firstName"`
86
+ LastName string `json:"lastName"`
87
+ Phone string `json:"phone"`
88
+ Mobile string `json:"mobile"`
49
89
Email string `json:"email"`
50
90
Fax string `json:"fax"`
51
91
Code string `json:"code"`
0 commit comments