package
Version:
v0.0.0-...-9186f8b
Opens a new window with list of versions in this module.
Published: Jan 12, 2024
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CreateTransferRequest struct {
FromAccountID int64 `json:"fromAccountId" binding:"required,min=1"`
ToAccountID int64 `json:"toAccountId" binding:"required,min=1"`
Amount int64 `json:"amount" binding:"required,gt=0"`
Currency string `json:"currency" binding:"required,currency"`
}
type CreateUserRequest struct {
Username string `json:"username" binding:"required,alphanum"`
Password string `json:"password" binding:"required,min=8"`
Name string `json:"name" binding:"required"`
LastName string `json:"last_name" binding:"required"`
Email string `json:"email" binding:"required,email"`
}
type LoginRequest struct {
Username string `json:"username" binding:"required,alphanum"`
Password string `json:"password" binding:"required,min=8"`
}
type LoginResponse struct {
AccessToken string `json:"access_token"`
User UserResponse `json:"user"`
}
type UserResponse struct {
Username string `json:"username"`
Name string `json:"name"`
LastName string `json:"last_name"`
Email string `json:"email"`
PasswordChangedAt time.Time `json:"password_changed_at"`
CreatedAt time.Time `json:"created_at"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.