Documentation ¶
Index ¶
- type Post
- func GetCategoryPosts(categoryId int32, offset int32, limit int32) (success bool, foundPosts []*Post, err error)
- func GetFeed(offset int32, limit int32) (success bool, foundPosts []*Post, err error)
- func GetPostById(requesterId int32, postId int32) (bool, *Post, error)
- func GetUserAllPosts(ownerId int32, offset int32, limit int32) (success bool, foundPosts []*Post, err error)
- func GetUserPublishedPosts(requesterId int32, userId int32, offset int32, limit int32) (success bool, foundPosts []*Post, err error)
- func GetUserUnPublishedPosts(ownerId int32, offset int32, limit int32) (success bool, foundPosts []*Post, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Post ¶
type Post struct { ID int32 `db:"id"` AuthorId int32 `db:"author_id"` ParentId int32 `db:"parent_id"` Title string `db:"title"` Published bool `db:"published"` UpVote int32 `db:"up_vote"` Content string `db:"content"` CreatedAt int32 `db:"created_at"` UpdatedAt int32 `db:"updated_at"` PublishedAt int32 `db:"published_at"` }
func GetCategoryPosts ¶
func GetCategoryPosts(categoryId int32, offset int32, limit int32) (success bool, foundPosts []*Post, err error)
GetCategoryPosts func
func GetPostById ¶
GetPostById func
func GetUserAllPosts ¶
func GetUserAllPosts(ownerId int32, offset int32, limit int32) (success bool, foundPosts []*Post, err error)
GetUserAllPosts func
Click to show internal directories.
Click to hide internal directories.