package
Version:
v0.0.0-...-6a02b82
Opens a new window with list of versions in this module.
Published: Apr 1, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CreateWalletDTO struct {
ID uint64 `json:"id" form:"id" binding:"required"`
Amount decimal.Decimal `json:"amount" form:"amount" binding:"required"`
UserID uint64 `json:"user_id,omitempty" form:"user_id,omitempty"`
}
type CreditOrDebitWalletDTO struct {
Amount decimal.Decimal `json:"amount" form:"amount" binding:"required"`
}
type LoginDTO struct {
Email string `json:"email" form:"email" binding:"required,email"`
Password string `json:"password" form:"password" binding:"required"`
}
type RegisterDTO struct {
Name string `json:"name" form:"name" binding:"required"`
Email string `json:"email" form:"email" binding:"required,email"`
Password string `json:"password" form:"password" binding:"required"`
}
type UpdateUserDTO struct {
ID uint64 `json:"id" form:"id" binding:"required"`
Name string `json:"name" form:"name" binding:"required"`
Email string `json:"email" form:"email" binding:"required,email"`
Password string `json:"password,omitempty" form:"password,omitempty"`
}
type UpdateWalletDTO struct {
Amount decimal.Decimal `json:"amount" form:"amount" binding:"required"`
UserID uint64 `json:"user_id,omitempty" form:"user_id,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.