dto

package
v0.0.0-...-6a02b82 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateWalletDTO

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

type CreditOrDebitWalletDTO struct {
	Amount decimal.Decimal `json:"amount" form:"amount" binding:"required"`
}

type LoginDTO

type LoginDTO struct {
	Email    string `json:"email" form:"email" binding:"required,email"`
	Password string `json:"password" form:"password" binding:"required"`
}

type RegisterDTO

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

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

type UpdateWalletDTO struct {
	Amount decimal.Decimal `json:"amount" form:"amount" binding:"required"`
	UserID uint64          `json:"user_id,omitempty" form:"user_id,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL