package
Version:
v0.0.0-...-02269d1
Opens a new window with list of versions in this module.
Published: Feb 12, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type LoginRequest struct {
Mobile string `json:"mobile"`
Password string `json:"password"`
}
type LoginResponse struct {
UserInfo UserInfo `json:"user"`
Tokens Tokens `json:"tokens"`
FieldErrors map[string]string `json:"field_errors,omitempty"`
}
type ProfileRequest struct {
ID types.ID `json:"id"`
}
type ProfileResponse struct {
UserInfo UserInfo `json:"user"`
FieldErrors map[string]string `json:"field_errors,omitempty"`
}
type RefreshTokenRequest struct {
RefreshToken string `form:"refresh_token" json:"refresh_token"`
}
type RefreshTokenResponse struct {
Tokens Tokens `json:"tokens"`
FieldErrors map[string]string `json:"field_errors,omitempty"`
}
type RegisterRequest struct {
Name string `json:"name"`
Mobile string `json:"mobile"`
Password string `json:"password"`
}
type RegisterResponse struct {
UserInfo UserInfo `json:"user"`
FieldErrors map[string]string `json:"field_errors,omitempty"`
}
type Tokens struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
}
type UserInfo struct {
ID types.ID `json:"id"`
Name string `json:"name"`
Mobile string `json:"mobile"`
Email string `json:"email"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.