models

package
v0.0.0-...-6853f2c Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessDetails

type AccessDetails struct {
	AccessUuid string
	UserId     uint64
}

type Account

type Account struct {
	gorm.Model
	Name    string  `gorm:"column:name"`
	Cpf     string  `gorm:"unique"`
	Secret  string  `gorm:"column:secrect"`
	Balance float32 `gorm:"column:balance"`
}

type AuthCredentialsInput

type AuthCredentialsInput struct {
	Cpf    string `json:"cpf" binding:"required"`
	Secret string `json:"secret" binding:"required"`
}

type CreateAccountInput

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

type DoTransferInput

type DoTransferInput struct {
	AccountDestinationId string  `json:"destination" binding:"required"`
	Amount               float32 `json:"amount" binding:"required"`
}

type TokenDetails

type TokenDetails struct {
	AccessToken  string
	RefreshToken string
	AccessUuid   string
	RefreshUuid  string
	AtExpires    int64
	RtExpires    int64
}

type Transfer

type Transfer struct {
	gorm.Model
	AccountOriginId      string  `gorm:"column:accountoriginid"`
	AccountDestinationId string  `gorm:"column:accountdestinationid"`
	Amount               float32 `gorm:"column:amount"`
}

Jump to

Keyboard shortcuts

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