Documentation
¶
Index ¶
- Variables
- type AddCommentInput
- type AddThreadInput
- type Comment
- type CommentRevision
- type DeleteCommentResult
- type DeleteThreadResult
- type Service
- func (s *Service) AddComment(ctx context.Context, input AddCommentInput) (Comment, error)
- func (s *Service) AddThread(ctx context.Context, input AddThreadInput) (Thread, error)
- func (s *Service) ListCommentRevisions(ctx context.Context, projectID, threadID, commentID uuid.UUID) ([]CommentRevision, error)
- func (s *Service) ListThreadRevisions(ctx context.Context, projectID, threadID uuid.UUID) ([]ThreadRevision, error)
- func (s *Service) ListThreads(ctx context.Context, projectID uuid.UUID) ([]Thread, error)
- func (s *Service) RemoveComment(ctx context.Context, projectID, threadID, commentID uuid.UUID) (DeleteCommentResult, error)
- func (s *Service) RemoveThread(ctx context.Context, projectID, threadID uuid.UUID) (DeleteThreadResult, error)
- func (s *Service) UpdateComment(ctx context.Context, input UpdateCommentInput) (Comment, error)
- func (s *Service) UpdateThread(ctx context.Context, input UpdateThreadInput) (Thread, error)
- type Status
- type Thread
- type ThreadRevision
- type UpdateCommentInput
- type UpdateThreadInput
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AddCommentInput ¶
type AddThreadInput ¶
type Comment ¶
type Comment struct {
ID uuid.UUID `json:"id"`
ThreadID uuid.UUID `json:"thread_id"`
BodyMarkdown string `json:"body_markdown"`
CreatedBy string `json:"created_by"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
EditedAt *time.Time `json:"edited_at,omitempty"`
EditCount int `json:"edit_count"`
LastEditedBy *string `json:"last_edited_by,omitempty"`
IsDeleted bool `json:"is_deleted"`
DeletedAt *time.Time `json:"deleted_at,omitempty"`
DeletedBy *string `json:"deleted_by,omitempty"`
}
type CommentRevision ¶
type CommentRevision struct {
ID uuid.UUID `json:"id"`
CommentID uuid.UUID `json:"comment_id"`
RevisionNumber int `json:"revision_number"`
BodyMarkdown string `json:"body_markdown"`
EditedBy string `json:"edited_by"`
EditedAt time.Time `json:"edited_at"`
EditReason *string `json:"edit_reason,omitempty"`
}
type DeleteCommentResult ¶
type DeleteThreadResult ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AddComment ¶
func (*Service) ListCommentRevisions ¶
func (*Service) ListThreadRevisions ¶
func (*Service) ListThreads ¶
func (*Service) RemoveComment ¶
func (*Service) RemoveThread ¶
func (*Service) UpdateComment ¶
func (*Service) UpdateThread ¶
type Thread ¶
type Thread struct {
ID uuid.UUID `json:"id"`
ProjectID uuid.UUID `json:"project_id"`
Status Status `json:"status"`
Title string `json:"title"`
BodyMarkdown string `json:"body_markdown"`
CreatedBy string `json:"created_by"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
EditedAt *time.Time `json:"edited_at,omitempty"`
EditCount int `json:"edit_count"`
LastEditedBy *string `json:"last_edited_by,omitempty"`
IsDeleted bool `json:"is_deleted"`
DeletedAt *time.Time `json:"deleted_at,omitempty"`
DeletedBy *string `json:"deleted_by,omitempty"`
LastActivityAt time.Time `json:"last_activity_at"`
CommentCount int `json:"comment_count"`
Comments []Comment `json:"comments"`
}
type ThreadRevision ¶
type ThreadRevision struct {
ID uuid.UUID `json:"id"`
ThreadID uuid.UUID `json:"thread_id"`
RevisionNumber int `json:"revision_number"`
Status Status `json:"status"`
Title string `json:"title"`
BodyMarkdown string `json:"body_markdown"`
EditedBy string `json:"edited_by"`
EditedAt time.Time `json:"edited_at"`
EditReason *string `json:"edit_reason,omitempty"`
}
type UpdateCommentInput ¶
Click to show internal directories.
Click to hide internal directories.