genModel

package
v0.0.0-...-3f3ae68 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 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 DeviceBasic

type DeviceBasic struct {
	Id              int64          `db:"id"`
	CreatedAt       sql.NullTime   `db:"created_at"`
	UpdatedAt       sql.NullTime   `db:"updated_at"`
	DeletedAt       sql.NullTime   `db:"deleted_at"`
	Identity        sql.NullString `db:"identity"`
	ProductIdentity sql.NullString `db:"product_identity"`
	Name            sql.NullString `db:"name"`
	Key             sql.NullString `db:"key"`
	Secret          sql.NullString `db:"secret"`
	LastOnlineTime  sql.NullInt64  `db:"last_online_time"`
}

type DeviceBasicModel

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

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

func NewDeviceBasicModel

func NewDeviceBasicModel(conn sqlx.SqlConn, c cache.CacheConf) DeviceBasicModel

NewDeviceBasicModel 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