model

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transaction

type Transaction struct {
	ID     int
	Date   string
	Type   string
	Amount float64
	LoanID string
}

Transaction ...

type User

type User struct {
	ID                int
	Email             string
	Password          string
	EncryptedPassword string
}

User ...

func TestUser

func TestUser(t *testing.T) *User

TestUser ...

func (*User) BeforeCreate

func (u *User) BeforeCreate() error

BeforeCreate ...

func (*User) ComparePassword

func (u *User) ComparePassword(password string) bool

ComparePassword ...

func (*User) Sanitize

func (u *User) Sanitize()

Sanitize ...

func (*User) Validate

func (u *User) Validate() error

Validate ...

Jump to

Keyboard shortcuts

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