Documentation ¶
Index ¶
Constants ¶
View Source
const ( USER_ID uint64 = 1 << iota USER_NAME USER_AGE USER_FOLLOWINGS USER_FOLLOWERS UserTable = "user" UserIdCol = "id" UserNameCol = "name" UserAgeCol = "age" UserFollowingsCol = "followings" UserFollowersCol = "followers" )
View Source
const ( FOLLOW_USERID uint64 = 1 << iota FOLLOW_FOLLOWUSERID FollowTable = "user_follow" FollowUserIdCol = "user_id" FollowFollowUserIdCol = "follow_user_id" )
Variables ¶
View Source
var ( ErrFollowed = httperrs.Conflict.NewS("already followed") ErrNonFollow = httperrs.NotFound.NewS("non follow") )
View Source
var ( ErrDuplicateUserName = httperrs.Conflict.NewS("user name already exists") ErrNoUser = httperrs.NotFound.NewS("user not found") )
View Source
var (
DB = gomodel.NewDB()
)
View Source
var (
FollowInstance = new(Follow)
)
View Source
var (
UserInstance = new(User)
)
Functions ¶
func DeleteUserById ¶
Types ¶
type Follow ¶
Click to show internal directories.
Click to hide internal directories.