models

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

type Customer struct {
	CustomerId int32     `json:"customerId" bson:"customerId"`
	FirstName  string    `json:"firstName" bson:"firstname"`
	LastName   string    `json:"lastName" bson:"lastname"`
	BankId     int32     `json:"bankId" bson:"bankId"`
	Balance    float64   `json:"balance" bson:"balance"`
	CreatedAt  time.Time `json:"createdAt" bson:"createdAt"`
	UpdatedAt  time.Time `json:"updatedAt" bson:"updatedAt"`
	IsActive   bool      `json:"isActive" bson:"isActive"`
}

type DBResponse

type DBResponse struct {
	CustomerId int32     `json:"customerId" bson:"customerId"`
	CreatedAt  time.Time `json:"createdAt" bson:"createdAt"`
}

type Transaction added in v1.0.2

type Transaction struct {
	TransactionId string `json:"transaction_id" bson:"transaction_id"`
	FromId        string `json:"from_id" bson:"from_id"`
	ToId          string `json:"to_id" bson:"to_id"`
	Amount        int64  `json:"amount" bson:"amount"`
}

type TransactionDbResponse added in v1.0.2

type TransactionDbResponse struct {
	// ID            primitive.ObjectID `json:"id" bson:"_id"`
	TransactionId string `json:"transaction_id" bson:"transaction_id"`
	FromId        string `json:"from_id" bson:"from_id"`
	ToId          string `json:"to_id" bson:"to_id"`
	Amount        int64  `json:"amount" bson:"amount"`
}

Jump to

Keyboard shortcuts

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