data

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreatedStatus   = "created"
	AcceptedStatus  = "accepted"
	ProcessedStatus = "processed"
)
View Source
const (
	ColStatus        = "status"
	ColName          = "name"
	ColSurname       = "surname"
	ColIDNum         = "id_num"
	ColBirthday      = "birthday"
	ColCitizen       = "citizen"
	ColVisited       = "visited"
	ColPurpose       = "purpose"
	ColCountry       = "country"
	ColCity          = "city"
	ColAddress       = "address"
	ColPostal        = "postal"
	ColPhone         = "phone"
	ColEmail         = "email"
	ColImage         = "image"
	ColPassportImage = "passport_image"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Form

type Form struct {
	ID            string         `db:"id"`
	Nullifier     string         `db:"nullifier"`
	Status        string         `db:"status"`
	Name          string         `db:"name"`
	Surname       string         `db:"surname"`
	IDNum         string         `db:"id_num"`
	Birthday      string         `db:"birthday"`
	Citizen       string         `db:"citizen"`
	Visited       string         `db:"visited"`
	Purpose       string         `db:"purpose"`
	Country       string         `db:"country"`
	City          string         `db:"city"`
	Address       string         `db:"address"`
	Postal        string         `db:"postal"`
	Phone         string         `db:"phone"`
	Email         string         `db:"email"`
	Image         string         `db:"image"`
	PassportImage sql.NullString `db:"passport_image"`
	CreatedAt     time.Time      `db:"created_at"`
	UpdatedAt     time.Time      `db:"updated_at"`
}

type FormsQ

type FormsQ interface {
	New() FormsQ
	Insert(Form) error

	Update(map[string]interface{}) error

	Select() ([]Form, error)

	Get() (*Form, error)
	Last() (*Form, error)

	FilterByID(ids ...string) FormsQ
	FilterByStatus(status ...string) FormsQ
	FilterByNullifier(nullifiers ...string) FormsQ
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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