Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostsSortType ¶
type PostsSortType string
const ( FlatSort PostsSortType = "flat" TreeSort PostsSortType = "tree" ParentTreeSort PostsSortType = "parent_tree" )
type Repository ¶
type Repository interface { CreatePostsInThread(thread models.Thread, posts models.Posts) (models.Posts, error) GetPostByID(id int64) (models.Post, error) UpdatePostByID(post models.Post) (models.Post, error) GetSortedPostsByThreadSlugOrID(threadID int32, sincePostID *int64, sort PostsSortType, desc bool, limit int64) (models.Posts, error) }
type UseCase ¶
type UseCase interface { CreatePostsByThreadSlugOrID(threadSlugOrID string, posts models.Posts) (models.Posts, error) GetPostInfoByID(id int64, related []string) (models.PostFullInfo, error) UpdatePostByID(post models.Post) (models.Post, error) GetSortedPostsByThreadSlugOrID(threadSlugOrID, sincePostID, sort, desc, limit string) (models.Posts, error) }
Click to show internal directories.
Click to hide internal directories.