vendingMachineDto

package
v0.0.0-...-32905a6 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetVendingMachineByIdRequestDto

type GetVendingMachineByIdRequestDto struct {
	MachineID int `json:"id"`
}

func (*GetVendingMachineByIdRequestDto) ValidateGetVendingMachineByIdRequestDto

func (gmDto *GetVendingMachineByIdRequestDto) ValidateGetVendingMachineByIdRequestDto() error

type InsertCoinRequestDto

type InsertCoinRequestDto struct {
	MachineID int `json:"machine_id"`
}

func (*InsertCoinRequestDto) ValidateInsertCoinRequestDto

func (icDto *InsertCoinRequestDto) ValidateInsertCoinRequestDto() error

type InsertCoinResponseDto

type InsertCoinResponseDto struct {
	MachineID int    `json:"id"`
	Message   string `json:"message"`
	Status    string `json:"status"`
	Cola      int    `json:"cola"`
	Coffee    int    `json:"coffee"`
}

type SelectProductRequestDto

type SelectProductRequestDto struct {
	MachineID int    `json:"id"`
	Product   string `json:"product"`
}

func (*SelectProductRequestDto) ValidateSelectProductRequestDto

func (spDto *SelectProductRequestDto) ValidateSelectProductRequestDto() error

type SelectProductResponseDto

type SelectProductResponseDto struct {
	MachineID int    `json:"id"`
	Message   string `json:"message"`
	Status    string `json:"status"`
}

Jump to

Keyboard shortcuts

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