/
model.go
26 lines (23 loc) · 1.01 KB
/
model.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
package comment
import (
commonmodel "github.com/openline-ai/openline-customer-os/packages/server/events-processing-platform/domain/common/model"
"time"
)
type Comment struct {
ID string `json:"id"`
Tenant string `json:"tenant"`
Content string `json:"content"`
ContentType string `json:"contentType,omitempty"`
AuthorUserId string `json:"authorUserId,omitempty"`
CommentedIssueId string `json:"commentedIssueId,omitempty"`
Source commonmodel.Source `json:"source"`
ExternalSystems []commonmodel.ExternalSystem `json:"externalSystem"`
CreatedAt time.Time `json:"createdAt,omitempty"`
UpdatedAt time.Time `json:"updatedAt,omitempty"`
}
type CommentDataFields struct {
Content string
ContentType string
AuthorUserId *string
CommentedIssueId *string
}