post

package
v0.0.0-...-0864a4c Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: GPL-3.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterCreatePost

func AfterCreatePost(former canal.Row, row canal.Row) error

canal handler

func AfterUpdatePost

func AfterUpdatePost(former canal.Row, row canal.Row) error

func CreatePost

func CreatePost(uid uint64, text string) (*entity.PostEntity, error)

func DeletePost

func DeletePost(currentUid uint64, pid uint64) error

func GetFollowingTimeline

func GetFollowingTimeline(currentUid uint64, start int32, length int32) ([]*entity.PostEntity, int32, error)

func GetPost

func GetPost(currentUid uint64, pid uint64) (*entity.PostEntity, error)

func GetUserTimeline

func GetUserTimeline(currentUid uint64, uid uint64, start int32, length int32) ([]*entity.PostEntity, int32, error)

func RenderPost

func RenderPost(currentUid uint64, post *entity.Post) (*entity.PostEntity, error)

func RenderPosts

func RenderPosts(currentUid uint64, posts []*entity.Post) ([]*entity.PostEntity, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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