Documentation ¶
Index ¶
Constants ¶
View Source
const ( OrderAes = iota //从久到近排序 OrderDesc //时间从近到久排序 )
View Source
const ( GatewayBind = 1 //绑定 GatewayUnbind = 2 //解绑 )
View Source
const ( True = 1 //是 False = 2 //否 )
View Source
const ( Enable = 1 //启用 Disable = 2 //禁用 )
View Source
const DeviceGroupLevel = 3
View Source
const Unknown = 0
Variables ¶
This section is empty.
Functions ¶
func ToBool ¶
func ToBool[boolType constraints.Integer](in boolType) bool
func ToIntBool ¶
func ToIntBool[boolType constraints.Integer](in bool) boolType
Types ¶
type DeviceStatus ¶ added in v0.3.0
type DeviceStatus = int64
const ( DeviceStatusInactive DeviceStatus = 0 // 未激活 DeviceStatusOnline DeviceStatus = 1 //在线 DeviceStatusOffline DeviceStatus = 2 //离线 )
type DeviceType ¶
type DeviceType = int64
const ( DeviceTypeDevice DeviceType = 1 //设备 DeviceTypeGateway DeviceType = 2 //网关 DeviceTypeSubset DeviceType = 3 //子设备 )
type PageInfo ¶
type PageInfo2 ¶
type PageInfo2 struct { TimeStart int64 `json:"timeStart"` TimeEnd int64 `json:"timeEnd"` Page int64 `json:"page" form:"page"` // 页码 Size int64 `json:"size" form:"size"` // 每页大小 }
func (PageInfo2) FmtSql ¶
func (p PageInfo2) FmtSql(sql sq.SelectBuilder) sq.SelectBuilder
func (PageInfo2) FmtWhere ¶
func (p PageInfo2) FmtWhere(sql sq.SelectBuilder) sq.SelectBuilder
func (PageInfo2) GetTimeEnd ¶
func (PageInfo2) GetTimeStart ¶
Click to show internal directories.
Click to hide internal directories.