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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type Brand

type Brand struct {
	Id           int64  `db:"id"`
	OwnBy        int64  `db:"own_by"`
	CategoryId   int64  `db:"category_id"`
	Name         string `db:"name"`
	Abbreviation string `db:"abbreviation"`
	CreatedAt    int64  `db:"created_at"`
	UpdatedAt    int64  `db:"updated_at"`
}

type BrandModel

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

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

func NewBrandModel

func NewBrandModel(conn sqlx.SqlConn, c cache.CacheConf) BrandModel

NewBrandModel 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