Documentation ¶
Index ¶
- type DeviceCategoryDataAddReq
- type DeviceCategoryDataAddRes
- type DeviceCategoryDataComm
- type DeviceCategoryDataDeleteReq
- type DeviceCategoryDataDeleteRes
- type DeviceCategoryDataEditReq
- type DeviceCategoryDataEditRes
- type DeviceCategoryDataGetReq
- type DeviceCategoryDataGetRes
- type DeviceCategoryDataHistoryReq
- type DeviceCategoryDataHistoryRes
- type DeviceCategoryDataRecentReq
- type DeviceCategoryDataRecentRes
- type DeviceCategoryDataSearchReq
- type DeviceCategoryDataSearchRes
- type DeviceCategotyAddReq
- type DeviceCategotyAddRes
- type DeviceCategotyDeleteReq
- type DeviceCategotyDeleteRes
- type DeviceCategotyEditReq
- type DeviceCategotyEditRes
- type DeviceCategotyGetReq
- type DeviceCategotyGetRes
- type DeviceCategotySearchReq
- type DeviceCategotySearchRes
- type DeviceDataAddReq
- type DeviceDataAddRes
- type DeviceDataGetReq
- type DeviceDataGetRes
- type DeviceGroupAddReq
- type DeviceGroupAddRes
- type DeviceGroupDeleteReq
- type DeviceGroupDeleteRes
- type DeviceGroupEditReq
- type DeviceGroupEditRes
- type DeviceGroupGetReq
- type DeviceGroupGetRes
- type DeviceGroupSearchReq
- type DeviceGroupSearchRes
- type DeviceInfoAddReq
- type DeviceInfoAddRes
- type DeviceInfoDeleteReq
- type DeviceInfoDeleteRes
- type DeviceInfoEditReq
- type DeviceInfoEditRes
- type DeviceInfoGetReq
- type DeviceInfoGetRes
- type DeviceInfoSearchReq
- type DeviceInfoSearchRes
- type DeviceKindAddReq
- type DeviceKindAddRes
- type DeviceKindDeleteReq
- type DeviceKindDeleteRes
- type DeviceKindEditReq
- type DeviceKindEditRes
- type DeviceKindGetReq
- type DeviceKindGetRes
- type DeviceKindSearchReq
- type DeviceKindSearchRes
- type DeviceLabelAddReq
- type DeviceLabelAddRes
- type DeviceLabelDataAddReq
- type DeviceLabelDataAddRes
- type DeviceLabelDataDeleteReq
- type DeviceLabelDataDeleteRes
- type DeviceLabelDataEditReq
- type DeviceLabelDataEditRes
- type DeviceLabelDataGetReq
- type DeviceLabelDataGetRes
- type DeviceLabelDataSearchReq
- type DeviceLabelDataSearchRes
- type DeviceLabelDeleteReq
- type DeviceLabelDeleteRes
- type DeviceLabelEditReq
- type DeviceLabelEditRes
- type DeviceLabelGetReq
- type DeviceLabelGetRes
- type DeviceLabelSearchReq
- type DeviceLabelSearchRes
- type DeviceStatusAddReq
- type DeviceStatusAddRes
- type DeviceStatusDeleteReq
- type DeviceStatusDeleteRes
- type DeviceStatusEditReq
- type DeviceStatusEditRes
- type DeviceStatusGetReq
- type DeviceStatusGetRes
- type DeviceStatusSearchReq
- type DeviceStatusSearchRes
- type DeviceStatusStatusReq
- type DeviceStatusStatusRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceCategoryDataAddReq ¶
type DeviceCategoryDataAddReq struct { g.Meta `path:"/deviceCategoryData/add" tags:"设备数据" method:"post" summary:"添加设备数据"` CategoryId int `p:"categoryId" v:"required#数据类别主键不能为空"` DeviceId int `p:"deviceId" v:"required#设备主键不能为空"` DataInt uint `p:"dataInt" ` DataStr string `p:"dataStr" ` DataDouble float64 `p:"dataDouble" ` CreatedAt *gtime.Time `p:"time"` // 创建时间 }
DeviceCategoryDataAddReq 添加操作请求参数
type DeviceCategoryDataAddRes ¶
type DeviceCategoryDataAddRes struct { }
type DeviceCategoryDataComm ¶
type DeviceCategoryDataDeleteRes ¶
type DeviceCategoryDataDeleteRes struct { }
type DeviceCategoryDataEditReq ¶
type DeviceCategoryDataEditReq struct { g.Meta `path:"/deviceCategoryData/edit" tags:"设备数据" method:"put" summary:"修改设备数据"` Id int `p:"id" v:"required#主键ID不能为空"` CategoryId int `p:"categoryId" v:"required#数据类别主键不能为空"` DeviceId int `p:"deviceId" v:"required#设备主键不能为空"` DataInt uint `p:"dataInt" ` DataStr string `p:"dataStr" ` DataDouble float64 `p:"dataDouble" ` }
DeviceCategoryDataEditReq 修改操作请求参数
type DeviceCategoryDataEditRes ¶
type DeviceCategoryDataEditRes struct { }
type DeviceCategoryDataGetRes ¶
type DeviceCategoryDataGetRes struct { g.Meta `mime:"application/json"` *entity.DeviceCategoryData }
type DeviceCategoryDataHistoryReq ¶
type DeviceCategoryDataHistoryReq struct { g.Meta `path:"/deviceCategoryData/history" tags:"设备数据" method:"get" summary:"设备历史数据列表"` CategoryId int `p:"categoryId"` //数据类别主键 DeviceId int `p:"deviceId"` //设备主键 BeginTime string `p:"beginTime"` //开始时间 EndTime string `p:"endTime"` //结束时间 commonApi.PageReq }
type DeviceCategoryDataHistoryRes ¶
type DeviceCategoryDataHistoryRes struct { g.Meta `mime:"application/json"` Total int `json:"total"` Data []*DeviceCategoryDataComm }
type DeviceCategoryDataRecentReq ¶
type DeviceCategoryDataRecentReq struct { g.Meta `path:"/deviceCategoryData/recent" tags:"设备数据" method:"get" summary:"设备最近数据列表"` CategoryId int `p:"categoryId"` //数据类别主键 DeviceId int `p:"deviceId"` //设备主键 BeginTime string `p:"beginTime"` //开始时间 EndTime string `p:"endTime"` //结束时间 commonApi.PageReq }
type DeviceCategoryDataRecentRes ¶
type DeviceCategoryDataRecentRes struct { g.Meta `mime:"application/json"` commonApi.ListRes Data []*DeviceCategoryDataComm }
type DeviceCategoryDataSearchReq ¶
type DeviceCategoryDataSearchReq struct { g.Meta `path:"/deviceCategoryData/list" tags:"设备数据" method:"get" summary:"设备数据列表"` CategoryId int `p:"categoryId"` //数据类别主键 DeviceId int `p:"deviceId"` //设备主键 DataInt string `p:"dataInt"` //int型数据 DataStr string `p:"dataStr"` //字符串型数据 DataDouble float64 `p:"dataDouble"` //double型数据 BeginTime string `p:"beginTime"` //开始时间 EndTime string `p:"endTime"` //结束时间 Top int `p:"top"` //最新的多少个 commonApi.PageReq }
DeviceCategoryDataSearchReq 分页请求参数
type DeviceCategotyAddReq ¶
type DeviceCategotyAddReq struct { g.Meta `path:"/deviceCategoty/add" tags:"设备类别" method:"post" summary:"添加设备类别"` KindId int `p:"kindId" ` Name string `p:"name" v:"required#数据名称不能为空"` Mark string `p:"mark" ` DataType int `p:"dataType" ` Unit string `p:"unit" ` Ratio string `p:"ratio" ` Format string `p:"format" ` HomeShow int `p:"homeShow" ` Remark string `p:"remark" ` }
DeviceCategotyAddReq 添加操作请求参数
type DeviceCategotyAddRes ¶
type DeviceCategotyAddRes struct { }
type DeviceCategotyDeleteReq ¶
type DeviceCategotyDeleteRes ¶
type DeviceCategotyDeleteRes struct { }
type DeviceCategotyEditReq ¶
type DeviceCategotyEditReq struct { g.Meta `path:"/deviceCategoty/edit" tags:"设备类别" method:"put" summary:"修改设备类别"` Id int `p:"id" v:"required#主键ID不能为空"` KindId int `p:"kindId" ` Name string `p:"name" v:"required#数据名称不能为空"` Mark string `p:"mark" ` DataType int `p:"dataType" ` Unit string `p:"unit" ` Ratio string `p:"ratio" ` Format string `p:"format" ` HomeShow int `p:"homeShow" ` Remark string `p:"remark" ` }
DeviceCategotyEditReq 修改操作请求参数
type DeviceCategotyEditRes ¶
type DeviceCategotyEditRes struct { }
type DeviceCategotyGetReq ¶
type DeviceCategotyGetRes ¶
type DeviceCategotyGetRes struct { g.Meta `mime:"application/json"` *entity.DeviceCategoty }
type DeviceCategotySearchReq ¶
type DeviceCategotySearchReq struct { g.Meta `path:"/deviceCategoty/list" tags:"设备类别" method:"get" summary:"设备类别列表"` KindId int `p:"kindId"` //数据模板的主键 Name string `p:"name"` //数据名称 Mark string `p:"mark"` //数据标识 DataType string `p:"dataType"` //数据类型 Unit string `p:"unit"` //数据单位 Ratio string `p:"ratio"` //变比系数 Format string `p:"format"` //格式化显示 HomeShow string `p:"homeShow"` //首页是否展示 BeginTime string `p:"beginTime"` //开始时间 EndTime string `p:"endTime"` //结束时间 commonApi.PageReq }
DeviceCategotySearchReq 分页请求参数
type DeviceCategotySearchRes ¶
type DeviceCategotySearchRes struct { g.Meta `mime:"application/json"` commonApi.ListRes List []*entity.DeviceCategoty `json:"list"` Kind *entity.DeviceKind `json:"kind"` }
type DeviceDataAddReq ¶
type DeviceDataAddReq struct { g.Meta `path:"/deviceData/add" tags:"设备数据API" method:"post" summary:"设备API"` DeviceId int `p:"deviceId" ` DeviceSn string `p:"deviceSn" ` DevicePwd string `p:"devicePwd" ` Time string `p:"time" ` Event interface{} `p:"event" ` Property interface{} `p:"property" ` }
DeviceCategoryDataAddReq 添加操作请求参数
type DeviceDataAddRes ¶
type DeviceDataAddRes struct { }
type DeviceDataGetReq ¶
type DeviceDataGetRes ¶
type DeviceGroupAddReq ¶
type DeviceGroupAddReq struct { g.Meta `path:"/deviceGroup/add" tags:"设备分组" method:"post" summary:"添加设备分组"` Name string `p:"name" v:"required#组名不能为空"` }
DeviceGroupAddReq 添加操作请求参数
type DeviceGroupAddRes ¶
type DeviceGroupAddRes struct { }
type DeviceGroupDeleteReq ¶
type DeviceGroupDeleteRes ¶
type DeviceGroupDeleteRes struct { }
type DeviceGroupEditReq ¶
type DeviceGroupEditReq struct { g.Meta `path:"/deviceGroup/edit" tags:"设备分组" method:"put" summary:"修改设备分组"` Id int `p:"id" v:"required#主键ID不能为空"` Name string `p:"name" v:"required#组名不能为空"` }
DeviceGroupEditReq 修改操作请求参数
type DeviceGroupEditRes ¶
type DeviceGroupEditRes struct { }
type DeviceGroupGetReq ¶
type DeviceGroupGetRes ¶
type DeviceGroupGetRes struct { g.Meta `mime:"application/json"` *entity.DeviceGroup }
type DeviceGroupSearchReq ¶
type DeviceGroupSearchReq struct { g.Meta `path:"/deviceGroup/list" tags:"设备分组" method:"get" summary:"设备分组列表"` Id int `p:"id"` //Id Name string `p:"name"` //组名 BeginTime string `p:"beginTime"` //开始时间 EndTime string `p:"endTime"` //结束时间 commonApi.PageReq }
DeviceGroupSearchReq 分页请求参数
type DeviceGroupSearchRes ¶
type DeviceInfoAddReq ¶
type DeviceInfoAddReq struct { g.Meta `path:"/deviceInfo/add" tags:"设备信息" method:"post" summary:"添加设备信息"` Name string `p:"name" v:"required#设备名称不能为空"` Group int `p:"group" v:"required#设备组不能为空"` Sn string `p:"sn" v:"required#SN不能为空"` Pwd string `p:"pwd" ` Kind int `p:"kind" v:"required#设备类别不能为空"` Logo string `p:"logo" ` Monitor int `p:"monitor" ` Location int `p:"location" ` }
DeviceInfoAddReq 添加操作请求参数
type DeviceInfoAddRes ¶
type DeviceInfoAddRes struct { }
type DeviceInfoDeleteReq ¶
type DeviceInfoDeleteRes ¶
type DeviceInfoDeleteRes struct { }
type DeviceInfoEditReq ¶
type DeviceInfoEditReq struct { g.Meta `path:"/deviceInfo/edit" tags:"设备信息" method:"put" summary:"修改设备信息"` Id int `p:"id" v:"required#主键ID不能为空"` Name string `p:"name" v:"required#设备名称不能为空"` Group int `p:"group" v:"required#设备组不能为空"` Sn string `p:"sn" v:"required#SN不能为空"` Pwd string `p:"pwd" ` Kind int `p:"kind" v:"required#设备类别不能为空"` Logo string `p:"logo" ` Monitor int `p:"monitor" ` Location int `p:"location" ` }
DeviceInfoEditReq 修改操作请求参数
type DeviceInfoEditRes ¶
type DeviceInfoEditRes struct { }
type DeviceInfoGetReq ¶
type DeviceInfoGetRes ¶
type DeviceInfoGetRes struct { g.Meta `mime:"application/json"` Info *model.DeviceInfoExtern `json:"info"` Kind *entity.DeviceKind `json:"kind"` CategoryList []*entity.DeviceCategoty `json:"categoryList"` }
type DeviceInfoSearchReq ¶
type DeviceInfoSearchReq struct { g.Meta `path:"/deviceInfo/list" tags:"设备信息" method:"get" summary:"设备信息列表"` Name string `p:"name"` //设备名称 Group string `p:"group"` //设备组 Sn string `p:"sn"` //SN Pwd string `p:"pwd"` //密码 Kind string `p:"kind"` //设备类别 Logo string `p:"logo"` //logo Monitor string `p:"monitor"` //是否监视 Status int `p:"status"` // 状态 Location string `p:"location"` //地理位置 //CreatedAt *gtime.Time `p:"createdAt"` //创建时间 BeginTime string `p:"beginTime"` //开始时间 EndTime string `p:"endTime"` //结束时间 commonApi.PageReq }
DeviceInfoSearchReq 分页请求参数
type DeviceInfoSearchRes ¶
type DeviceKindAddReq ¶
type DeviceKindAddReq struct { g.Meta `path:"/deviceKind/add" tags:"设备种类" method:"post" summary:"添加设备种类"` Name string `p:"name" v:"required#设备种类名称不能为空"` Mark string `p:"mark" ` TimeOut int `p:"timeOut" v:"required#超时时间不能为空"` }
DeviceKindAddReq 添加操作请求参数
type DeviceKindAddRes ¶
type DeviceKindAddRes struct { }
type DeviceKindDeleteReq ¶
type DeviceKindDeleteRes ¶
type DeviceKindDeleteRes struct { }
type DeviceKindEditReq ¶
type DeviceKindEditReq struct { g.Meta `path:"/deviceKind/edit" tags:"设备种类" method:"put" summary:"修改设备种类"` Id int `p:"id" v:"required#主键ID不能为空"` Name string `p:"name" v:"required#设备种类名称不能为空"` Mark string `p:"mark" ` TimeOut int `p:"timeOut" v:"required#超时时间不能为空"` }
DeviceKindEditReq 修改操作请求参数
type DeviceKindEditRes ¶
type DeviceKindEditRes struct { }
type DeviceKindGetReq ¶
type DeviceKindGetRes ¶
type DeviceKindGetRes struct { g.Meta `mime:"application/json"` *entity.DeviceKind }
type DeviceKindSearchReq ¶
type DeviceKindSearchReq struct { g.Meta `path:"/deviceKind/list" tags:"设备种类" method:"get" summary:"设备种类列表"` Id int `p:"id"` //Id Name string `p:"name"` //设备种类名称 Mark string `p:"mark"` //设备名称标记 TimeOut string `p:"timeOut"` //超时时间 BeginTime string `p:"beginTime"` //开始时间 EndTime string `p:"endTime"` //结束时间 commonApi.PageReq }
DeviceKindSearchReq 分页请求参数
type DeviceKindSearchRes ¶
type DeviceLabelAddReq ¶
type DeviceLabelAddReq struct { g.Meta `path:"/deviceLabel/add" tags:"设备标签" method:"post" summary:"添加设备标签"` Name string `p:"name" v:"required#标签内容不能为空"` }
DeviceLabelAddReq 添加操作请求参数
type DeviceLabelAddRes ¶
type DeviceLabelAddRes struct { }
type DeviceLabelDataAddReq ¶
type DeviceLabelDataAddReq struct { g.Meta `path:"/deviceLabelData/add" tags:"设备标签数据" method:"post" summary:"添加设备标签数据"` LabelId int `p:"labelId" ` DeviceId int `p:"deviceId" ` }
DeviceLabelDataAddReq 添加操作请求参数
type DeviceLabelDataAddRes ¶
type DeviceLabelDataAddRes struct { }
type DeviceLabelDataDeleteRes ¶
type DeviceLabelDataDeleteRes struct { }
type DeviceLabelDataEditReq ¶
type DeviceLabelDataEditReq struct { g.Meta `path:"/deviceLabelData/edit" tags:"设备标签数据" method:"put" summary:"修改设备标签数据"` Id int `p:"id" v:"required#主键ID不能为空"` LabelId int `p:"labelId" ` DeviceId int `p:"deviceId" ` }
DeviceLabelDataEditReq 修改操作请求参数
type DeviceLabelDataEditRes ¶
type DeviceLabelDataEditRes struct { }
type DeviceLabelDataGetReq ¶
type DeviceLabelDataGetRes ¶
type DeviceLabelDataGetRes struct { g.Meta `mime:"application/json"` *entity.DeviceLabelData }
type DeviceLabelDataSearchReq ¶
type DeviceLabelDataSearchReq struct { g.Meta `path:"/deviceLabelData/list" tags:"设备标签数据" method:"get" summary:"设备标签数据列表"` LabelId string `p:"labelId"` //标签主键 DeviceId string `p:"deviceId"` //设备主键 BeginTime string `p:"beginTime"` //开始时间 EndTime string `p:"endTime"` //结束时间 commonApi.PageReq }
DeviceLabelDataSearchReq 分页请求参数
type DeviceLabelDeleteReq ¶
type DeviceLabelDeleteRes ¶
type DeviceLabelDeleteRes struct { }
type DeviceLabelEditReq ¶
type DeviceLabelEditReq struct { g.Meta `path:"/deviceLabel/edit" tags:"设备标签" method:"put" summary:"修改设备标签"` Id int `p:"id" v:"required#主键ID不能为空"` Name string `p:"name" v:"required#标签内容不能为空"` }
DeviceLabelEditReq 修改操作请求参数
type DeviceLabelEditRes ¶
type DeviceLabelEditRes struct { }
type DeviceLabelGetReq ¶
type DeviceLabelGetRes ¶
type DeviceLabelGetRes struct { g.Meta `mime:"application/json"` *entity.DeviceLabel }
type DeviceLabelSearchReq ¶
type DeviceLabelSearchReq struct { g.Meta `path:"/deviceLabel/list" tags:"设备标签" method:"get" summary:"设备标签列表"` Name string `p:"name"` //标签内容 BeginTime string `p:"beginTime"` //开始时间 EndTime string `p:"endTime"` //结束时间 commonApi.PageReq }
DeviceLabelSearchReq 分页请求参数
type DeviceLabelSearchRes ¶
type DeviceStatusAddReq ¶
type DeviceStatusAddReq struct { g.Meta `path:"/deviceStatus/add" tags:"设备状态" method:"post" summary:"添加设备状态"` DeviceId int `p:"deviceId" v:"required#设备ID不能为空"` Status int `p:"status" v:"required#状态不能为空"` TimeOut int `p:"timeOut" v:"required#超时时间不能为空"` UpTime int `p:"upTime" ` DownTime int `p:"downTime" ` LastDataUpdateTime uint `p:"lastDataUpdateTime" v:"required#最新一次数据更新时间不能为空"` }
DeviceStatusAddReq 添加操作请求参数
type DeviceStatusAddRes ¶
type DeviceStatusAddRes struct { }
type DeviceStatusDeleteReq ¶
type DeviceStatusDeleteRes ¶
type DeviceStatusDeleteRes struct { }
type DeviceStatusEditReq ¶
type DeviceStatusEditReq struct { g.Meta `path:"/deviceStatus/edit" tags:"设备状态" method:"put" summary:"修改设备状态"` Id int `p:"id" v:"required#主键ID不能为空"` DeviceId int `p:"deviceId" v:"required#设备ID不能为空"` Status int `p:"status" v:"required#状态不能为空"` TimeOut int `p:"timeOut" v:"required#超时时间不能为空"` UpTime int `p:"upTime" ` DownTime int `p:"downTime" ` LastDataUpdateTime uint `p:"lastDataUpdateTime" v:"required#最新一次数据更新时间不能为空"` }
DeviceStatusEditReq 修改操作请求参数
type DeviceStatusEditRes ¶
type DeviceStatusEditRes struct { }
type DeviceStatusGetReq ¶
type DeviceStatusGetRes ¶
type DeviceStatusGetRes struct { g.Meta `mime:"application/json"` *entity.DeviceStatus }
type DeviceStatusSearchReq ¶
type DeviceStatusSearchReq struct { g.Meta `path:"/deviceStatus/list" tags:"设备状态" method:"get" summary:"设备状态列表"` DeviceId string `p:"deviceId"` //设备ID Status string `p:"status"` //状态 TimeOut string `p:"timeOut"` //超时时间 UpTime string `p:"upTime"` //上线时间 DownTime string `p:"downTime"` //离线时间 LastDataUpdateTime string `p:"lastDataUpdateTime"` //最新一次数据更新时间 BeginTime string `p:"beginTime"` //开始时间 EndTime string `p:"endTime"` //结束时间 commonApi.PageReq }
DeviceStatusSearchReq 分页请求参数
type DeviceStatusSearchRes ¶
type DeviceStatusStatusReq ¶
type DeviceStatusStatusReq struct { g.Meta `path:"/deviceStatus/status" tags:"设备状态" method:"put" summary:"修改设备状态状态"` Id int `p:"id" v:"required#主键ID不能为空"` Status int `p:"status" v:"required#状态不能为空"` }
DeviceStatusStatusReq 设置用户状态参数
type DeviceStatusStatusRes ¶
type DeviceStatusStatusRes struct { }