Documentation
¶
Index ¶
- func AfterCreatePost(former canal.Row, row canal.Row) error
- func AfterUpdatePost(former canal.Row, row canal.Row) error
- func CreatePost(uid uint64, text string) (*entity.PostEntity, error)
- func DeletePost(currentUid uint64, pid uint64) error
- func GetFollowingTimeline(currentUid uint64, start int32, length int32) ([]*entity.PostEntity, int32, error)
- func GetPost(currentUid uint64, pid uint64) (*entity.PostEntity, error)
- func GetUserTimeline(currentUid uint64, uid uint64, start int32, length int32) ([]*entity.PostEntity, int32, error)
- func RenderPost(currentUid uint64, post *entity.Post) (*entity.PostEntity, error)
- func RenderPosts(currentUid uint64, posts []*entity.Post) ([]*entity.PostEntity, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePost ¶
func CreatePost(uid uint64, text string) (*entity.PostEntity, error)
func DeletePost ¶
func GetFollowingTimeline ¶
func GetUserTimeline ¶
func RenderPost ¶
func RenderPosts ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.