Documentation
¶
Index ¶
- func AfterCreateFollow(former canal.Row, row canal.Row) error
- func AfterCreateUser(former canal.Row, row canal.Row) error
- func AfterUpdateFollow(former canal.Row, row canal.Row) error
- func AfterUpdateUser(former canal.Row, row canal.Row) error
- func Follow(currentUid uint64, followingUid uint64) error
- func GetFollowers(currentUid uint64, uid uint64, start int32, length int32) ([]*entity.UserEntity, int32, error)
- func GetFollowings(currentUid uint64, uid uint64, start int32, length int32) ([]*entity.UserEntity, int32, error)
- func GetUser(currentUid uint64, uid uint64) (*entity.UserEntity, error)
- func Login(username string, password string) (*entity.UserEntity, uint64, error)
- func Register(username string, password string) (*entity.UserEntity, error)
- func RenderUser(currentUid uint64, user *entity.User) (*entity.UserEntity, error)
- func RenderUsers(currentUid uint64, users []*entity.User) ([]*entity.UserEntity, error)
- func RenderUsersById(currentUid uint64, uids []uint64) ([]*entity.UserEntity, error)
- func UnFollow(currentUid uint64, followingUid uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFollowers ¶
func GetFollowings ¶
func RenderUser ¶
func RenderUsers ¶
func RenderUsersById ¶
func RenderUsersById(currentUid uint64, uids []uint64) ([]*entity.UserEntity, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.