Documentation ¶
Index ¶
- func AddGroup(data map[string]interface{})
- func AddUser(data map[string]interface{})
- func AddUserToFriend(uid, fid int) bool
- func AddUserToGroup(uid, gid int) bool
- func CheckAdmin(uid int) bool
- func CheckAuth(username, password string) (int, bool)
- func ClearToken()
- func CloseDB()
- func ExistGroupByName(name string) int
- func ExistUserByName(name string) int
- func GetFrendidbyUid(uid int) (fids []int)
- func GetGroupidbyUid(uid int) (gids []int)
- func GetUserBytoken(s string) (int, bool)
- func OfflineUser(uid int)
- func OnlineUser(userid int, token string) bool
- type Group
- type Model
- type User
- type UserFriend
- type UserGroup
- type UserToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUserToFriend ¶
func AddUserToGroup ¶
func CheckAdmin ¶
func ClearToken ¶
func ClearToken()
func ExistGroupByName ¶
func ExistUserByName ¶
func GetFrendidbyUid ¶
func GetGroupidbyUid ¶
func GetUserBytoken ¶
func OfflineUser ¶
func OfflineUser(uid int)
func OnlineUser ¶
Types ¶
type Group ¶
type User ¶
type UserFriend ¶
Click to show internal directories.
Click to hide internal directories.