dto

package
v0.0.0-...-aef14cd Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Unlicense Imports: 1 Imported by: 0

Documentation

Overview

Package dto TODO.

Package dto TODO.

Package dto TODO.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Field string `json:"field"`
	Tag   string `json:"tag"`
	Value string `json:"value,omitempty"`
}

func ValidateStruct

func ValidateStruct[T any](payload T) []*ErrorResponse

type Favorites

type Favorites struct {
	ID        string `json:"id"`
	Isin      string `json:"isin" validate:"required"`
	AssetType string `json:"asset_type" validate:"required"`
}

type SignInRequest

type SignInRequest struct {
	UserName string `json:"user_name"  validate:"required"`
	Password string `json:"password"  validate:"required"`
}

Jump to

Keyboard shortcuts

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