Documentation ¶
Index ¶
- Constants
- type ChangePasswordModel
- type CreateMultipleSettingsModel
- type CreateResetPassLinkModel
- type CreateSettingGroupModel
- type CreateVerifyTokenTokenModel
- type GetSettingsModel
- type LoginModel
- type MyProfileModel
- type ProfileUpdateModel
- type SettingGroupItemModel
- type Signup2TokenModel
- type SignupTokenModel
- type UserAuthError
- type UserAuthQueryModel
- type UserProfileModel
- type UserRegisterModel
- type UserSignupTokenModel
- type VerifySignup2Model
- type VerifySignupModel
Constants ¶
View Source
const (
UserAuthErrorUserNotVerified = "Auth/usersNotVerifide"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangePasswordModel ¶
type CreateMultipleSettingsModel ¶
type CreateMultipleSettingsModel struct {
List []CreateSettingGroupModel `json:"list"`
}
type CreateResetPassLinkModel ¶
type CreateResetPassLinkModel struct {
Email string `json:"email"`
}
type CreateSettingGroupModel ¶
type CreateSettingGroupModel struct { Type string `json:"type"` List []SettingGroupItemModel `json:"list"` }
type GetSettingsModel ¶
type LoginModel ¶
type MyProfileModel ¶
type MyProfileModel struct { ObjectId uuid.UUID `json:"objectId"` FullName string `json:"fullName"` Avatar string `json:"avatar"` Banner string `json:"banner"` TagLine string `json:"tagLine"` Birthday int64 `json:"birthday"` WebUrl string `json:"webUrl"` CompanyName string `json:"companyName"` FacebookId string `json:"facebookId"` InstagramId string `json:"instagramId"` TwitterId string `json:"twitterId"` AccessUserList []string `json:"accessUserList"` Permission constants.UserPermissionConst `json:"permission"` }
type ProfileUpdateModel ¶
type SettingGroupItemModel ¶
type Signup2TokenModel ¶
type Signup2TokenModel struct {
User UserSignupTokenModel `json:"user"`
}
type SignupTokenModel ¶
type SignupTokenModel struct { User UserSignupTokenModel `json:"user"` VerifyType string `json:"verifyType"` Recaptcha string `json:"g-recaptcha-response"` ResponseType string `json:"responseType"` }
type UserAuthError ¶
type UserAuthError struct {
Code string
}
UserAuthError is a custom error from Go built-in error
func (UserAuthError) ErrorResponse ¶
func (e UserAuthError) ErrorResponse() []byte
ErrorResponseF get error in json format for api response
type UserAuthQueryModel ¶
type UserAuthQueryModel struct { UserUID uuid.UUID `json:"uid"` Username string `json:"username"` Password []byte `json:"password"` AccessToken string `json:"access_token"` Role string `json:"role"` TokenExpires int `json:"token_expires"` CreatedDate time.Time `json:"created_date"` LastUpdated time.Time `json:"last_updated"` }
type UserProfileModel ¶
type UserProfileModel struct { ObjectId uuid.UUID `json:"objectId" bson:"objectId"` FullName string `json:"fullName" bson:"fullName"` SocialName string `json:"socialName" bson:"socialName"` Avatar string `json:"avatar" bson:"avatar"` Banner string `json:"banner" bson:"banner"` TagLine string `json:"tagLine" bson:"tagLine"` CreatedDate int64 `json:"created_date" bson:"created_date"` LastUpdated int64 `json:"last_updated" bson:"last_updated"` Email string `json:"email" bson:"email"` Birthday int64 `json:"birthday" bson:"birthday"` Birthdate string `json:"birthdate" bson:"birthdate"` Residency string `json:"residency" bson:"residency"` WebUrl string `json:"webUrl" bson:"webUrl"` CompanyName string `json:"companyName" bson:"companyName"` VoteCount int64 `json:"voteCount" bson:"voteCount"` FollowCount int64 `json:"followCount" bson:"followCount"` FollowerCount int64 `json:"followerCount" bson:"followerCount"` PostCount int64 `json:"postCount" bson:"postCount"` FacebookId string `json:"facebookId" bson:"facebookId"` InstagramId string `json:"instagramId" bson:"instagramId"` TwitterId string `json:"twitterId" bson:"twitterId"` AccessUserList []string `json:"accessUserList" bson:"accessUserList"` Permission constants.UserPermissionConst `json:"permission" bson:"permission"` }
type UserRegisterModel ¶
type UserSignupTokenModel ¶
type VerifySignup2Model ¶
type VerifySignup2Model struct {
Token string `json:"verificaitonSecret"`
}
type VerifySignupModel ¶
Source Files ¶
- change_password_model.go
- create_reset_pass_link_model.go
- create_setting_group_model.go
- create_verify_token_model.go
- get_settings_model.go
- login_model.go
- my_profile_model.go
- profile_update_model.go
- setting_group_item_model.go
- signup2_token_model.go
- signup_token_model.go
- user.go
- user_auth_errors.go
- user_auth_query_model.go
- user_profile_model.go
- verify_signup2_model.go
- verify_signup_model.go
Click to show internal directories.
Click to hide internal directories.