customer

package
v0.0.0-...-9fd7169 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 0 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 {
	Id         int32   `gorm:"primaryKey" json:"id"`
	NationalId string  `json:"national_id"`
	Name       string  `json:"name"`
	Balance    float64 `json:"balance"`
	CreatedAt  int64   `gorm:"autoCreateTime:false" json:"created_at"`
}

type CustomerPersistence

type CustomerPersistence interface {
	Create(data *Customer)
	Update(data *Customer)
	GetByNationalIdOrNil(nationalId string) *Customer
}

Jump to

Keyboard shortcuts

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