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.
Click to show internal directories.
Click to hide internal directories.