dto

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostHistoryReq

type PostHistoryReq struct {
	WalletID  string    `json:"wallet_id"`
	StartDate time.Time `json:"start_date"`
	EndDate   time.Time `json:"end_date"`
}

PostHistoryReq request format for POST /wallet-history

func (PostHistoryReq) Check

func (req PostHistoryReq) Check() error

Check checks params validity.

type PostHistoryResp

type PostHistoryResp struct {
	History []Wallet `json:"history"`
}

PostHistoryResp response format for POST /wallet-history

type PostResp

type PostResp struct {
	ID string `json:"id"`
}

PostResp response format for POST /wallet

type PostTxReq

type PostTxReq struct {
	WalletID string    `json:"wallet_id"`
	Sum      string    `json:"sum"`
	Date     time.Time `json:"date"`
}

PostTxReq request format for /POST tx

func (PostTxReq) Check

func (req PostTxReq) Check() error

Check checks params validity.

type Wallet

type Wallet struct {
	Date   time.Time `json:"date"`
	Amount string    `json:"amount"`
}

Wallet represents wallet domain type for API.

Jump to

Keyboard shortcuts

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