package
Version:
v0.0.0-...-68c7a61
Opens a new window with list of versions in this module.
Published: Jan 2, 2024
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CreateAccountRequest struct {
Currency string `json:"currency" validate:"required,currency"`
}
type CreateUserRequest struct {
Username string `json:"username" binding:"required,alphanum"`
Password string `json:"password" binding:"required,min=6"`
FullName string `json:"full_name" binding:"required"`
Email string `json:"email" binding:"required,email"`
}
type GetAccountRequest struct {
ID int64 `param:"id" validate:"required,min=1"`
}
type ListAccountRequest struct {
PageID int32 `json:"page_id" validate:"required,min=1"`
PageSize int32 `json:"page_size" validate:"required,min=5,max=10"`
}
type TransferRequest struct {
FromAccountId int64 `json:"from_account_id" validate:"required,min=1"`
ToAccountId int64 `json:"to_account_id" validate:"required,min=1"`
Amount int64 `json:"amount" validate:"required,gt=0"`
Currency string `json:"currency" validate:"required,oneof=USD EUR CAD"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.