routes

package
v0.0.0-...-cff5d44 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountCreateReq

type AccountCreateReq struct {
	Name     string `json:"name" validate:"required,min=3,max=255"`
	Owner    string `json:"owner" validate:"required,min=3,max=255"`
	Currency string `json:"currency" validate:"required,currency"`
}

type AccountCreditReq

type AccountCreditReq struct {
	AccountId uuid.UUID `json:"account_id"  params:"account_id" validate:"required,uuid"`
	Amount    string    `json:"amount" validate:"required,amount"`
}

type AccountDebitReq

type AccountDebitReq struct {
	AccountId uuid.UUID `json:"account_id"  params:"account_id" validate:"required,uuid"`
	Amount    string    `json:"amount" validate:"required,amount"`
}

type AccountDetailReq

type AccountDetailReq struct {
	ID string `json:"account_id" params:"account_id" validate:"required,uuid"`
}

type AccountRoutes

type AccountRoutes struct {
	Tracer         trace.Tracer
	ValidationSrv  *validation.Srv
	AccountUseCase *usecase.AccountUseCase
	Rest           *restsrv.Srv
}

func (*AccountRoutes) Register

func (r *AccountRoutes) Register(router fiber.Router)

func (*AccountRoutes) Suspent

func (r *AccountRoutes) Suspent(c *fiber.Ctx) error

type AccountTransferReq

type AccountTransferReq struct {
	AccountId   uuid.UUID `json:"account_id" validate:"required,uuid"`
	Amount      string    `json:"amount" validate:"required,amount"`
	ToIban      string    `json:"to_iban" validate:"required,iban"`
	ToOwner     string    `json:"to_owner" validate:"required,min=3,max=255"`
	Description string    `json:"description" validate:"required,min=3,max=255"`
}

type AuthLoginReq

type AuthLoginReq struct {
	Code string `json:"code" validate:"required,numeric,len=4"`
}

type AuthLoginStartReq

type AuthLoginStartReq struct {
	Email string `json:"email" validate:"required,email"`
}

type AuthRegisterReq

type AuthRegisterReq struct {
	Name  string `json:"name" validate:"required"`
	Email string `json:"email" validate:"required,email"`
}

type AuthRegistrationVerifyReq

type AuthRegistrationVerifyReq struct {
	Token string `params:"token" validate:"required,uuid"`
}

type AuthRoutes

type AuthRoutes struct {
	Tracer        trace.Tracer
	ValidationSrv *validation.Srv
	AuthUseCase   *usecase.AuthUseCase
	Rest          *restsrv.Srv
	Domain        string
}

func (*AuthRoutes) Register

func (r *AuthRoutes) Register(router fiber.Router)

Jump to

Keyboard shortcuts

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