Discover Packages
github.com/saeedjhn/go-backend-clean-arch
internal
dto
user
package
Version:
v0.0.0-...-e4ee237
Opens a new window with list of versions in this module.
Published: Dec 26, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Data struct {
ID uint64 `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"`
}
type LoginRequest struct {
Mobile string `json:"mobile"`
Password string `json:"password"`
}
type LoginResponse struct {
Data Data `json:"data"`
Tokens Tokens `json:"tokens"`
FieldErrors map[string ]string `json:"field_errors,omitempty"`
}
type Pagination struct {
}
type ProfileRequest struct {
ID uint64 `json:"id"`
}
type ProfileResponse struct {
Data Data `json:"data"`
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 {
Data Data `json:"data"`
FieldErrors map[string ]string `json:"field_errors,omitempty"`
}
type Tokens struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.