Documentation
¶
Index ¶
Constants ¶
View Source
const ( OrderAes = iota //从久到近排序 OrderDesc //时间从近到久排序 )
View Source
const ( True = 1 //是 False = 2 //否 )
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 DeviceType ¶
type DeviceType = int64
const ( DeviceTypeDevice DeviceType = 1 //设备 DeviceTypeGateway DeviceType = 2 //网关 DeviceTypeSubset DeviceType = 3 //子设备 )
type PageInfo ¶
type PageInfo2 ¶
type PageInfo2 struct {
TimeStart int64
TimeEnd int64
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.