-
Notifications
You must be signed in to change notification settings - Fork 10
/
types.go
45 lines (39 loc) · 1.43 KB
/
types.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
// Steve Phillips / elimisteve
// 2018.04.24
package main
import "time"
type Pursuance struct {
ID int `json:"id"`
MinilockID *string `json:"minilock_id"`
Name string `json:"name"`
NameEnc string `json:"name_enc"`
Mission string `json:"mission"`
MissionEnc string `json:"mission_enc"`
IsEncrypted bool `json:"is_encrypted"`
Created time.Time `json:"created"`
}
type User struct {
Username string `json:"username"`
MinilockID *string `json:"minilock_id"`
Created time.Time `json:"created"`
EmailID *string `json:"email_id"`
}
type Task struct {
Gid string `json:"gid"`
PursuanceID int `json:"pursuance_id"`
ID int `json:"id"`
Title string `json:"title"`
TitleEnc string `json:"title_enc"`
Deliverables string `json:"deliverables"`
DeliverablesEnc string `json:"deliverables_enc"`
AssignedTo string `json:"assigned_to"`
AssignedToPursuanceID int `json:"assigned_to_pursuance_id"`
DueDate *time.Time `json:"due_date"`
Created time.Time `json:"created"`
ParentTaskGid string `json:"parent_task_gid"`
Status string `json:"status"`
// Used in email templates
PursuanceName string `json:"-"`
DiscussURL string `json:"-"`
DueDateFmt string `json:"-"`
}