Documentation ¶
Overview ¶
Message
model.go
review.go
user
Index ¶
Constants ¶
View Source
const ( AuthPhone = AuthType("phone") AuthIdCard = AuthType("id_card") AuthDriveLicense = AuthType("driver_license") AuthVehicleLicense = AuthType("vehicle_license") AuthOthers = AuthType("vehicle_license") AuthVerified = AuthStatus("verified") AuthVerifying = AuthStatus("verifying") AuthUnverified = AuthStatus("unverified") AuthRefused = AuthStatus("refused") )
Variables ¶
View Source
var ( DB *mgo.Database C_User = "UserInfo" C_Review = "Reviews" )
Functions ¶
This section is empty.
Types ¶
type AuthStatus ¶
type AuthStatus string
type User ¶
type User struct { Id bson.ObjectId `bson:"_id"` Userid string Password string Email string Nickname string `json:"nikename"` Phone string `bson:"phone,omitempty"` Profile string `bson:",omitempty"` Photos []string `bson:",omitempty"` RegTime time.Time `bson:"reg_time"` AuthStatus map[string]string `bson:"auth_status,omitempty"` Role string `bson:"role,omitempty"` Online bool LastAccess time.Time `bson:"last_access"` AccessToken string `bson:"access_token,omitempty"` }
func (*User) LoginCheck ¶
Click to show internal directories.
Click to hide internal directories.