user

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: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterCreateFollow

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

func AfterCreateUser

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

func AfterUpdateFollow

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

func AfterUpdateUser

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

func Follow

func Follow(currentUid uint64, followingUid uint64) error

func GetFollowers

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

func GetFollowings

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

func GetUser

func GetUser(currentUid uint64, uid uint64) (*entity.UserEntity, error)

func Login

func Login(username string, password string) (*entity.UserEntity, uint64, error)

func Register

func Register(username string, password string) (*entity.UserEntity, error)

func RenderUser

func RenderUser(currentUid uint64, user *entity.User) (*entity.UserEntity, error)

func RenderUsers

func RenderUsers(currentUid uint64, users []*entity.User) ([]*entity.UserEntity, error)

func RenderUsersById

func RenderUsersById(currentUid uint64, uids []uint64) ([]*entity.UserEntity, error)

func UnFollow

func UnFollow(currentUid uint64, followingUid uint64) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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