IOTBind

package
v5.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckBind

func CheckBind(args *ArgsCheckBind) (err error)

CheckBind 验证设备绑定关系是否存在

func DeleteBind

func DeleteBind(args *ArgsDeleteBind) (err error)

DeleteBind 删除绑定

Types

type ArgsCheckBind

type ArgsCheckBind struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//设备ID
	DeviceID int64 `db:"device_id" json:"deviceID" check:"id"`
	//附加模块
	FromInfo CoreSQLFrom.FieldsFrom `db:"from_info" json:"fromInfo"`
}

ArgsCheckBind 验证设备绑定关系是否存在参数

type ArgsDeleteBind

type ArgsDeleteBind struct {
	//ID
	ID int64 `json:"id" check:"id"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
}

ArgsDeleteBind 删除绑定参数

type ArgsGetBindDevice

type ArgsGetBindDevice struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//设备ID
	DeviceID int64 `db:"device_id" json:"deviceID" check:"id"`
}

ArgsGetBindDevice 获取设备的所有绑定关系参数

type ArgsGetBindFrom

type ArgsGetBindFrom struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//附加模块
	FromInfo CoreSQLFrom.FieldsFrom `db:"from_info" json:"fromInfo"`
}

ArgsGetBindFrom 获取来源的所有绑定设备参数

type ArgsGetBindFromGroup

type ArgsGetBindFromGroup struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//附加模块
	FromInfo CoreSQLFrom.FieldsFrom `db:"from_info" json:"fromInfo"`
	//设备分组标识码
	DeviceGroupMark string `db:"device_group_mark" json:"deviceGroupMark" check:"mark"`
}

ArgsGetBindFromGroup 获取来源的所有绑定设备带设备分组过滤参数

type ArgsGetBindList

type ArgsGetBindList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//设备ID
	DeviceID int64 `db:"device_id" json:"deviceID" check:"id" empty:"true"`
	//附加模块
	FromInfo CoreSQLFrom.FieldsFrom `db:"from_info" json:"fromInfo"`
	//是否删除
	IsRemove bool `db:"is_remove" json:"isRemove" check:"bool"`
}

ArgsGetBindList 获取绑定列表参数

type ArgsSetBind

type ArgsSetBind struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//设备ID
	DeviceID int64 `db:"device_id" json:"deviceID" check:"id"`
	//附加模块
	FromInfo CoreSQLFrom.FieldsFrom `db:"from_info" json:"fromInfo"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
}

ArgsSetBind 设置绑定关系参数

type FieldsBind

type FieldsBind struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID"`
	//设备ID
	DeviceID int64 `db:"device_id" json:"deviceID"`
	//附加模块
	FromInfo CoreSQLFrom.FieldsFrom `db:"from_info" json:"fromInfo"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
}

FieldsBind 绑定关系

func GetBindByDeviceID

func GetBindByDeviceID(deviceID int64) (data FieldsBind, err error)

func GetBindDevice

func GetBindDevice(orgID int64, deviceID int64) (data FieldsBind, err error)

GetBindDevice 获取设备的所有绑定关系

func GetBindFrom

func GetBindFrom(args *ArgsGetBindFrom) (dataList []FieldsBind, err error)

GetBindFrom 获取来源的所有绑定设备

func GetBindFromGroup

func GetBindFromGroup(args *ArgsGetBindFromGroup) (dataList []FieldsBind, err error)

GetBindFromGroup 获取来源的所有绑定设备带设备分组过滤

func GetBindList

func GetBindList(args *ArgsGetBindList) (dataList []FieldsBind, dataCount int64, err error)

GetBindList 获取绑定列表

func SetBind

func SetBind(args *ArgsSetBind) (data FieldsBind, err error)

SetBind 设置绑定关系

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL