forumservice

package
v1.11.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 2

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 profileservice.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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL