Back to

Package currency

Latest Go to latest

The latest major version is .

Published: Oct 5, 2020 | License: GPL3 | Module:


type Handler

type Handler struct {
	CurrencyService service.RegionCurrencyService
	View            View

func NewHandler

func NewHandler(p Params) Handler

func (*Handler) List

func (h *Handler) List(c echo.Context) error

swagger:route GET /region-currencies region_currencies listRegionCurrency

Lists all available region currencies

This endpoint lists all available region currencies

  default: HTTPError
  200: RegionCurrencyList
  400: HTTPError
  404: HTTPError
  500: HTTPError

type Item

type Item struct {
	// example: 12
	ID uint `json:"id"`

	// example: 2
	RegionID uint `json:"region_id"`

	// example: USD
	RegionCode string `json:"region_code"`

	// example: USD
	CurrencyCode string `json:"currency_code"`

	// example: $
	Grapheme string `json:"grapheme"`

	// example: 2020-06-19 11:00:08.340646 +0000 UTC
	UpdatedAt string `json:"updated_at"`

	// example: 2020-06-19 11:00:08.340646 +0000 UTC
	CreatedAt string `json:"created_at"`

	// example: false
	IsActiveForUsers bool `json:"is_active_for_users"`

	// example: true
	IsActiveForDevelopers bool `json:"is_active_for_developers"`

	// example: true
	IsStandardRelation bool `json:"is_standard_relation"`

	// example: true
	IsDefault bool `json:"is_default"`

swagger:model RegionCurrency

type List

type List []Item

swagger:model RegionCurrencyList

type Params

type Params struct {

	CurrencyService service.RegionCurrencyService
	View            View

type View

type View struct{}

func NewView

func NewView() View

func (View) View

func (v View) View(item entity.RegionCurrency) Item

func (View) ViewList

func (v View) ViewList(items []entity.RegionCurrency) List

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier