-
Notifications
You must be signed in to change notification settings - Fork 0
/
report_vo.go
69 lines (61 loc) · 2.3 KB
/
report_vo.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
68
69
package commonvo
type Event struct {
Category string `json:"category"`
Type string `json:"type"`
Timestamp int64 `json:"timestamp,string"`
TraceId string `json:"traceId"`
Payload interface{} `json:"payload"`
}
type OrgEvent struct {
OrgId int64 `json:"orgId"`
New interface{} `json:"new"`
}
type DataEvent struct {
OrgId int64 `json:"orgId"`
AppId int64 `json:"appId,string"`
ProjectId int64 `json:"projectId"`
TableId int64 `json:"tableId,string"`
DataId int64 `json:"dataId,string"`
IssueId int64 `json:"issueId"`
UserId int64 `json:"userId"`
New map[string]interface{} `json:"new,omitempty"`
Old map[string]interface{} `json:"old,omitempty"`
Incremental map[string]interface{} `json:"incremental,omitempty"`
Decremental map[string]interface{} `json:"decremental,omitempty"`
UpdatedColumns []string `json:"updatedColumns,omitempty"`
UserDepts interface{} `json:"userDepts,omitempty"`
TriggerBy string `json:"triggerBy"`
}
type TableEvent struct {
OrgId int64 `json:"orgId"`
AppId int64 `json:"appId,string"`
ProjectId int64 `json:"projectId"`
TableId int64 `json:"tableId,string"`
UserId int64 `json:"userId"`
New interface{} `json:"new,omitempty"`
Old interface{} `json:"old,omitempty"`
}
type AppEvent struct {
OrgId int64 `json:"orgId"`
AppId int64 `json:"appId,string"`
ProjectId int64 `json:"projectId"`
UserId int64 `json:"userId"`
App interface{} `json:"app,omitempty"`
Project interface{} `json:"project,omitempty"`
Chat interface{} `json:"chat,omitempty"`
}
type UserEvent struct {
OrgId int64 `json:"orgId"`
UserId int64 `json:"userId"`
New interface{} `json:"new,omitempty"`
}
type ReportAppEventReq struct {
EventType int32 `json:"eventType"`
TraceId string `json:"traceId"`
AppEvent *AppEvent `json:"appEvent"`
}
type ReportTableEventReq struct {
EventType int32 `json:"eventType"`
TraceId string `json:"traceId"`
TableEvent *TableEvent `json:"tableEvent"`
}