Discover Packages
github.com/noartem/bllt/server
handlers
contracts
package
Version:
v0.0.0-...-f8ea5e8
Opens a new window with list of versions in this module.
Published: Sep 13, 2019
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type AddFeedBackReq struct {
Message string `json:"message" example:"Feedback message"`
}
type AddOAuthServiceReq struct {
RegisterID string `json:"register_id" example:"oauth registration id"`
}
type AdminEditUserReq struct {
Key string `json:"key" example:"name/email/nick/password"`
Value string `json:"value" example:"Value for replace"`
}
type EditUserPasswordReq struct {
Current string `json:"current" example:"Current password"`
New string `json:"new" example:"New password"`
}
type EditUserReq struct {
Email string `json:"email" example:"user new email"`
Name string `json:"name" example:"user new name"`
Picture string `json:"picture" example:"link to user avatar picture"`
}
type LoginReq struct {
Login string `json:"login" example:"user email/nick"`
Password string `json:"password" example:"user password"`
}
type LoginRes struct {
Token string `json:"token" example:"Auth token"`
RefreshToken string `json:"refresh_token" example:"Refresh token"`
User models .User `json:"user" example:"Information about user"`
ExpiredIn int64 `json:"expired_in" example:"Time when token will become expired"`
}
type OAuthRegisterReq struct {
Name string `json:"name" example:"user name"`
Nick string `json:"nick" example:"user nick"`
Email string `json:"email" example:"user email"`
Password string `json:"password" example:"user password"`
RegisterID string `json:"register_id" example:"registerId"`
}
type RefreshReq struct {
RefreshToken string `json:"token" example:"token"`
}
type RegisterReq struct {
Name string `json:"name" example:"user name"`
Nick string `json:"nick" example:"user nick"`
Email string `json:"email" example:"user email"`
Password string `json:"password" example:"user password"`
}
type VIPRes struct {
Message string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.