model

package
v0.0.0-...-748419f Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type Organization

type Organization struct {
	Id           int64     `db:"id"`
	Name         string    `db:"name"`
	Abbreviation string    `db:"abbreviation"`
	CreatedAt    time.Time `db:"created_at"`
	UpdatedAt    time.Time `db:"updated_at"`
}

type OrganizationModel

type OrganizationModel interface {
	// contains filtered or unexported methods
}

OrganizationModel is an interface to be customized, add more methods here, and implement the added methods in customOrganizationModel.

func NewOrganizationModel

func NewOrganizationModel(conn sqlx.SqlConn, c cache.CacheConf) OrganizationModel

NewOrganizationModel returns a model for the database table.

Jump to

Keyboard shortcuts

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