Documentation ¶
Index ¶
- func CheckBind(args *ArgsCheckBind) (err error)
- func DeleteBind(args *ArgsDeleteBind) (err error)
- type ArgsCheckBind
- type ArgsDeleteBind
- type ArgsGetBindDevice
- type ArgsGetBindFrom
- type ArgsGetBindFromGroup
- type ArgsGetBindList
- type ArgsSetBind
- type FieldsBind
- func GetBindByDeviceID(deviceID int64) (data FieldsBind, err error)
- func GetBindDevice(orgID int64, deviceID int64) (data FieldsBind, err error)
- func GetBindFrom(args *ArgsGetBindFrom) (dataList []FieldsBind, err error)
- func GetBindFromGroup(args *ArgsGetBindFromGroup) (dataList []FieldsBind, err error)
- func GetBindList(args *ArgsGetBindList) (dataList []FieldsBind, dataCount int64, err error)
- func SetBind(args *ArgsSetBind) (data FieldsBind, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 获取绑定列表
Click to show internal directories.
Click to hide internal directories.