Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChangePasswordPara ¶
type ChangePasswordPara struct { UserID string `json:"user_id"` OldPassword string `json:"old_password"` NewPassword string `json:"new_password"` }
ChangePasswordPara contains the paramters to change user password
type GeneralEcho ¶
GeneralEcho is a general echo
type RegisterPara ¶
type RegisterPara struct { Email string `json:"email"` Name string `json:"name"` Password string `json:"password"` }
RegisterPara contains the parameters for registration
type SessionInfo ¶
type SessionInfo struct { SessionID string `json:"session_id"` UserID string `json:"user_id"` CreatedAt time.Time `json:"created_at"` }
SessionInfo contains information of a session
type SessionPara ¶
type SessionPara struct {
SessionID string `json:"session_id"`
}
SessionPara contains the parameters for existing session
type SuccessEcho ¶
type SuccessEcho struct { Result bool `json:"result"` UserInfo UserInfo `json:"user"` SessionInfo SessionInfo `json:"session"` }
SuccessEcho is an echo with information of user and session when succeeded
Click to show internal directories.
Click to hide internal directories.