Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentService ¶
type CommentService interface { CreateCommentThread(ctx context.Context, userId uint64, elemTitle string) error CreateComment(ctx context.Context, userId uint64, elemTitle string, message string) error GetCommentThread(ctx context.Context, userId uint64, elemTitle string, start uint64, end uint64) (uint64, []ForumContent, error) DeleteCommentThread(ctx context.Context, userId uint64, elemTitle string) error DeleteComment(ctx context.Context, userId uint64, elemTitle string, commentId uint64) error CreateMessageRight(ctx context.Context, userId uint64) bool DeleteRight(ctx context.Context, userId uint64) bool }
type ForumContent ¶
type ForumContent struct { Id uint64 Creator service.UserProfile Date string Text string }
type ForumService ¶
type ForumService interface { CreateThread(ctx context.Context, userId uint64, title string, message string) (uint64, error) CreateMessage(ctx context.Context, userId uint64, threadId uint64, message string) error GetThread(ctx context.Context, userId uint64, threadId uint64, start uint64, end uint64, filter string) (uint64, ForumContent, []ForumContent, error) GetThreads(ctx context.Context, userId uint64, start uint64, end uint64, filter string) (uint64, []ForumContent, error) DeleteThread(ctx context.Context, userId uint64, threadId uint64) error DeleteMessage(ctx context.Context, userId uint64, threadId uint64, messageId uint64) error CreateThreadRight(ctx context.Context, userId uint64) bool CreateMessageRight(ctx context.Context, userId uint64) bool DeleteRight(ctx context.Context, userId uint64) bool }
type FullForumService ¶
type FullForumService interface { ForumService CommentService }
Click to show internal directories.
Click to hide internal directories.