httpAccount

package
v0.0.0-...-20a34b2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: GPL-2.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 AcccountRespBody

type AcccountRespBody struct {
	ID        string    `json:"id"`
	Name      string    `json:"name"`
	CPF       string    `json:"cpf"`
	Balance   float64   `json:"balance"`
	CreatedAt time.Time `json:"created_at"`
}

type AccountHandler

type AccountHandler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(r chi.Router, usecase account.Service) *AccountHandler

Account routes

func (AccountHandler) CreateAccount

func (h AccountHandler) CreateAccount(w http.ResponseWriter, r *http.Request)

func (AccountHandler) GetAccount

func (h AccountHandler) GetAccount(w http.ResponseWriter, r *http.Request)

func (AccountHandler) ShowAccounts

func (h AccountHandler) ShowAccounts(w http.ResponseWriter, r *http.Request)

type AccountReqBody

type AccountReqBody struct {
	Name   string `json:"name" validate:"required"`
	Cpf    string `json:"cpf" validate:"required"`
	Secret string `json:"secret" validate:"required"`
}

Jump to

Keyboard shortcuts

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