ikurotime / gitgud

public
main / internal/domain/issue.go
472 B · Go Raw
 1package domain
 2
 3import "time"
 4
 5type IssueState string
 6
 7const (
 8	IssueOpen   IssueState = "open"
 9	IssueClosed IssueState = "closed"
10)
11
12type Issue struct {
13	ID         int64
14	RepoID     int64
15	Number     int
16	AuthorID   int64
17	AuthorName string
18	Title      string
19	Body       string
20	State      IssueState
21	CreatedAt  time.Time
22}
23
24type IssueComment struct {
25	ID         int64
26	IssueID    int64
27	AuthorID   int64
28	AuthorName string
29	Body       string
30	CreatedAt  time.Time
31}