Documentation
¶
Overview ¶
Code generated by goctl. DO NOT EDIT.
Index ¶
- type ConfigResp
- type DeviceAuthAccessReq
- type DeviceAuthLoginReq
- type DeviceAuthRootCheckReq
- type DeviceCore
- type DeviceCountReq
- type DeviceCountResp
- type DeviceGateWayIndexReq
- type DeviceGateWayIndexResp
- type DeviceGateWayMultiCreateReq
- type DeviceGateWayMultiDeleteReq
- type DeviceInfo
- type DeviceInfoCount
- type DeviceInfoCreateReq
- type DeviceInfoDeleteReq
- type DeviceInfoIndexReq
- type DeviceInfoIndexResp
- type DeviceInfoReadReq
- type DeviceInfoUpdateReq
- type DeviceInteractSendActionReq
- type DeviceInteractSendActionResp
- type DeviceInteractSendMsgReq
- type DeviceInteractSendPropertyReq
- type DeviceInteractSendPropertyResp
- type DeviceMsgEventIndex
- type DeviceMsgEventIndexResp
- type DeviceMsgEventLogIndexReq
- type DeviceMsgHubLogIndex
- type DeviceMsgHubLogIndexReq
- type DeviceMsgHubLogIndexResp
- type DeviceMsgPropertyIndex
- type DeviceMsgPropertyIndexResp
- type DeviceMsgPropertyLatestIndexReq
- type DeviceMsgPropertyLogIndexReq
- type DeviceMsgSdkIndex
- type DeviceMsgSdkIndexResp
- type DeviceMsgSdkLogIndexReq
- type DeviceTypeCount
- type GroupDeviceIndexReq
- type GroupDeviceIndexResp
- type GroupDeviceMultiCreateReq
- type GroupDeviceMultiDeleteReq
- type GroupInfo
- type GroupInfoCreateReq
- type GroupInfoDeleteReq
- type GroupInfoIndexReq
- type GroupInfoIndexResp
- type GroupInfoReadReq
- type GroupInfoUpdateReq
- type JwtToken
- type Map
- type MenuCreateReq
- type MenuData
- type MenuDeleteReq
- type MenuIndexReq
- type MenuIndexResp
- type MenuUpdateReq
- type PageInfo
- type Point
- type ProductInfo
- type ProductInfoCreateReq
- type ProductInfoDeleteReq
- type ProductInfoIndexReq
- type ProductInfoIndexResp
- type ProductInfoReadReq
- type ProductInfoUpdateReq
- type ProductRemoteConfig
- type ProductRemoteConfigCreateReq
- type ProductRemoteConfigIndexReq
- type ProductRemoteConfigIndexResp
- type ProductRemoteConfigLastestReadReq
- type ProductRemoteConfigLastestReadResp
- type ProductRemoteConfigPushAllReq
- type ProductSchemaCreateReq
- type ProductSchemaDeleteReq
- type ProductSchemaIndexReq
- type ProductSchemaIndexResp
- type ProductSchemaInfo
- type ProductSchemaTslImportReq
- type ProductSchemaTslReadReq
- type ProductSchemaTslReadResp
- type ProductSchemaUpdateReq
- type RoleCreateReq
- type RoleDeleteReq
- type RoleIndexData
- type RoleIndexReq
- type RoleIndexResp
- type RoleMenuUpdateReq
- type RoleUpdateReq
- type SchemaAction
- type SchemaDefine
- type SchemaEvent
- type SchemaParam
- type SchemaProperty
- type SchemaSpec
- type Tag
- type UserCaptchaReq
- type UserCaptchaResp
- type UserCreateReq
- type UserCreateResp
- type UserDeleteReq
- type UserIndexReq
- type UserIndexResp
- type UserInfo
- type UserLoginReq
- type UserLoginResp
- type UserReadReq
- type UserReadResp
- type UserResourceReadResp
- type UserUpdateReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigResp ¶ added in v0.3.0
type ConfigResp struct {
Map Map `json:"map"` //设备地图相关配置
}
type DeviceAuthAccessReq ¶
type DeviceAuthLoginReq ¶
type DeviceAuthRootCheckReq ¶
type DeviceAuthRootCheckReq struct {
Username string `json:"username,omitempty"` //用户名
Password string `json:"password,optional,omitempty"` //密码
ClientID string `json:"clientID,omitempty"` //clientID
Ip string `json:"ip,omitempty"` //访问的ip地址
Certificate []byte `json:"certificate,optional,omitempty"` //客户端证书
}
type DeviceCore ¶ added in v0.3.0
type DeviceCountReq ¶ added in v0.3.0
type DeviceCountResp ¶ added in v0.3.0
type DeviceCountResp struct {
DeviceInfoCount DeviceInfoCount `json:"deviceCount"`
DeviceTypeCount DeviceTypeCount `json:"deviceTypeCount"`
}
type DeviceGateWayIndexReq ¶ added in v0.3.0
type DeviceGateWayIndexResp ¶ added in v0.3.0
type DeviceGateWayIndexResp struct {
List []*DeviceInfo `json:"list"` //分组信息
Total int64 `json:"total"` //总数(只有分页的时候会返回)
}
type DeviceGateWayMultiCreateReq ¶ added in v0.3.0
type DeviceGateWayMultiCreateReq struct {
GateWayProductID string `json:"gateWayProductID"` //产品ID
GateWayDeviceName string `json:"gateWaydeviceName"` //设备名称
List []*DeviceCore `json:"list,optional"` //分组tag
}
type DeviceGateWayMultiDeleteReq ¶ added in v0.3.0
type DeviceGateWayMultiDeleteReq struct {
GateWayProductID string `json:"gateWayProductID"` //产品ID
GateWayDeviceName string `json:"gateWaydeviceName"` //设备名称
List []*DeviceCore `json:"list,optional"` //分组tag
}
type DeviceInfo ¶
type DeviceInfo struct {
ProductID string `json:"productID"` //产品id 只读
DeviceName string `json:"deviceName"` //设备名称 读写
CreatedTime int64 `json:"createdTime,optional,string"` //创建时间 只读
Secret string `json:"secret,optional"` //设备秘钥 只读
FirstLogin int64 `json:"firstLogin,optional,string"` //激活时间 只读
LastLogin int64 `json:"lastLogin,optional,string"` //最后上线时间 只读
Version *string `json:"version,optional"` // 固件版本 读写
LogLevel int64 `json:"logLevel,optional"` // 日志级别:1)关闭 2)错误 3)告警 4)信息 5)调试 读写
Cert string `json:"cert,optional"` // 设备证书 只读
Tags []*Tag `json:"tags,optional"` // 设备tag
IsOnline int64 `json:"isOnline,optional"` // 在线状态 1离线 2在线 只读
Address *string `json:"address,optional"` //所在地址
Position *Point `json:"position,optional"` //设备定位,默认百度坐标系
}
type DeviceInfoCount ¶ added in v0.3.0
type DeviceInfoCreateReq ¶
type DeviceInfoCreateReq struct {
ProductID string `json:"productID"` //产品id 只读
DeviceName string `json:"deviceName"` //设备名称 读写
LogLevel int64 `json:"logLevel,optional"` // 日志级别:1)关闭 2)错误 3)告警 4)信息 5)调试 读写
Address *string `json:"address,optional"` //所在地址
Position *Point `json:"position,optional"` //设备定位,默认百度坐标系
Tags []*Tag `json:"tags,optional"` // 设备tag
}
type DeviceInfoDeleteReq ¶
type DeviceInfoIndexReq ¶
type DeviceInfoIndexReq struct {
Page *PageInfo `json:"page,optional"` //分页信息 只获取一个则不填
ProductID string `json:"productID,optional"` //产品id 为空时获取所有产品
DeviceName string `json:"deviceName,optional"` //过滤条件:模糊查询 设备名
Position *Point `json:"position,optional"` //设备定位,默认百度坐标系,用于获取以该点为中心,Range范围内的设备列表,与Range连用
Range int64 `json:"range,optional"` //过滤条件:距离坐标点固定范围内的设备 单位:米
Tags []*Tag `json:"tags,optional"` // key tag过滤查询,非模糊查询 为tag的名,value为tag对应的值
}
type DeviceInfoIndexResp ¶
type DeviceInfoIndexResp struct {
List []*DeviceInfo `json:"list"` //设备信息
Total int64 `json:"total"` //总数(只有分页的时候会返回)
Num int64 `json:"num"` //返回的数量
}
type DeviceInfoReadReq ¶
type DeviceInfoUpdateReq ¶
type DeviceInfoUpdateReq struct {
ProductID string `json:"productID"` //产品id 只读
DeviceName string `json:"deviceName"` //设备名称 读写
LogLevel int64 `json:"logLevel,optional"` // 日志级别:1)关闭 2)错误 3)告警 4)信息 5)调试 读写
Address *string `json:"address,optional"` //所在地址
Position *Point `json:"position,optional"` //设备定位,默认百度坐标系
Tags []*Tag `json:"tags,optional"` // 设备tag
}
type DeviceInteractSendPropertyReq ¶
type DeviceInteractSendPropertyReq struct {
ProductID string `json:"productID"` //产品id 获取产品id下的所有设备信息
DeviceName string `json:"deviceName"` //设备名
Data string `json:"data"` //属性数据, JSON格式字符串, 注意字段需要在物模型属性里定义
DataTimestamp int64 `json:"dataTimestamp"` //上报数据UNIX时间戳, 仅对Method:reported有效
Method string `json:"method"` //请求类型 , 不填该参数或者 desired 表示下发属性给设备, reported 表示模拟设备上报属性
}
type DeviceMsgEventIndex ¶
type DeviceMsgEventIndexResp ¶
type DeviceMsgEventIndexResp struct {
List []*DeviceMsgEventIndex `json:"list"` //数据
Total int64 `json:"total"` //总数
}
type DeviceMsgEventLogIndexReq ¶
type DeviceMsgEventLogIndexReq struct {
DeviceNames []string `json:"deviceNames,optional"` //设备名(不填获取产品下所有设备)
ProductID string `json:"productID,optional"` //产品id 获取产品id下的所有设备信息
DataID string `json:"dataID,optional,omitempty"` //获取的具体标识符的数据 如果不指定则获取所有属性数据,一个属性一条,如果没有获取到的不会返回值
TimeStart int64 `json:"timeStart,string,optional,omitempty"` //获取时间的开始
TimeEnd int64 `json:"timeEnd,string,optional,omitempty"` //时间的结束
Page *PageInfo `json:"page,optional"` //分页信息
Types []string `json:"types,optional"` //类型 事件类型: 信息:info 告警alert 故障:fault
}
type DeviceMsgHubLogIndex ¶
type DeviceMsgHubLogIndex struct {
Timestamp int64 `json:"timestamp,string"`
Action string `json:"action"` //connected:上线 disconnected:下线 property:属性 event:事件 action:操作 thing:物模型提交的操作为匹配的日志
RequestID string `json:"requestID"`
TranceID string `json:"tranceID"`
Topic string `json:"topic"`
Content string `json:"content"`
ResultType int64 `json:"resultType,string"`
}
type DeviceMsgHubLogIndexReq ¶
type DeviceMsgHubLogIndexReq struct {
DeviceName string `json:"deviceName,omitempty"` //设备名
ProductID string `json:"productID,omitempty"` //产品id 获取产品id下的所有设备信息
TimeStart int64 `json:"timeStart,string,optional,omitempty"` //获取时间的开始
TimeEnd int64 `json:"timeEnd,string,optional,omitempty"` //时间的结束
Page *PageInfo `json:"page,optional"` //分页信息
Actions []string `json:"actions,optional"` //过滤操作类型 connected:上线 disconnected:下线 property:属性 event:事件 action:操作 thing:物模型提交的操作为匹配的日志
Topics []string `json:"topics,optional"` //过滤主题
Content string `json:"content,optional"` //过滤内容
RequestID string `json:"requestID,optional"` //过滤请求ID
}
type DeviceMsgHubLogIndexResp ¶
type DeviceMsgHubLogIndexResp struct {
List []*DeviceMsgHubLogIndex `json:"list"` //数据
Total int64 `json:"total"` //总数
}
type DeviceMsgPropertyIndex ¶
type DeviceMsgPropertyIndexResp ¶
type DeviceMsgPropertyIndexResp struct {
List []*DeviceMsgPropertyIndex `json:"list"` //数据
Total int64 `json:"total"` //总数
}
type DeviceMsgPropertyLogIndexReq ¶
type DeviceMsgPropertyLogIndexReq struct {
DeviceNames []string `json:"deviceNames,omitempty"` //设备名(不填获取产品下所有设备)
ProductID string `json:"productID,omitempty"` //产品id 获取产品id下的所有设备信息
DataID string `json:"dataID,optional,omitempty"` //获取的具体标识符的数据 如果不指定则获取所有属性数据,一个属性一条,如果没有获取到的不会返回值
TimeStart int64 `json:"timeStart,string,optional,omitempty"` //获取时间的开始
TimeEnd int64 `json:"timeEnd,string,optional,omitempty"` //时间的结束
Page *PageInfo `json:"page,optional"` //分页信息
Interval int64 `json:"interval,optional"` //分页信息
ArgFunc string `json:"argFunc,optional"` //分页信息
Fill string `json:"fill,optional"` //填充模式 参考:https://docs.taosdata.com/taos-sql/distinguished/
Order int32 `json:"order,optional"` //时间排序 0:aes(默认,从久到近排序) 1:desc(时间从近到久排序)
}
type DeviceMsgSdkIndex ¶
type DeviceMsgSdkIndexResp ¶
type DeviceMsgSdkIndexResp struct {
List []*DeviceMsgSdkIndex `json:"list"` //数据
Total int64 `json:"total"` //总数
}
type DeviceMsgSdkLogIndexReq ¶
type DeviceMsgSdkLogIndexReq struct {
DeviceName string `json:"deviceName,omitempty"` //设备名
ProductID string `json:"productID,omitempty"` //产品id 获取产品id下的所有设备信息
TimeStart int64 `json:"timeStart,string,optional,omitempty"` //获取时间的开始
TimeEnd int64 `json:"timeEnd,string,optional,omitempty"` //时间的结束
LogLevel int `json:"logLevel,optional"` //等级
Page *PageInfo `json:"page,optional"` //分页信息
}
type DeviceTypeCount ¶ added in v0.3.0
type GroupDeviceIndexReq ¶
type GroupDeviceIndexResp ¶
type GroupDeviceIndexResp struct {
List []*DeviceInfo `json:"list"` //分组信息
Total int64 `json:"total"` //总数(只有分页的时候会返回)
}
type GroupDeviceMultiCreateReq ¶ added in v0.3.0
type GroupDeviceMultiCreateReq struct {
GroupID int64 `json:"groupID,string"` //分组ID
List []*DeviceCore `json:"list,optional"` //分组tag
}
type GroupDeviceMultiDeleteReq ¶ added in v0.3.0
type GroupDeviceMultiDeleteReq struct {
GroupID int64 `json:"groupID,string"` //分组ID
List []*DeviceCore `json:"list,optional"` //分组tag
}
type GroupInfoCreateReq ¶
type GroupInfoDeleteReq ¶
type GroupInfoDeleteReq struct {
GroupID int64 `json:"groupID,string"` //分组ID
}
type GroupInfoIndexReq ¶
type GroupInfoIndexResp ¶
type GroupInfoReadReq ¶
type GroupInfoReadReq struct {
GroupID int64 `json:"groupID,string"` //分组ID
}
type GroupInfoUpdateReq ¶
type MenuCreateReq ¶
type MenuCreateReq struct {
Name string `json:"name"` // 菜单名称
ParentID int64 `json:"parentID,optional"` // 父菜单ID,一级菜单为1
Type int64 `json:"type,optional"` // 类型 1:目录 2:菜单 3:按钮
Path string `json:"path,optional"` // 系统的path
Component string `json:"component,optional"` // 页面
Icon string `json:"icon,optional"` // 菜单图标
Redirect string `json:"redirect,optional"` // 路由重定向
Order int64 `json:"order,optional"` // 左侧table排序序号
HideInMenu int64 `json:"hideInMenu,optional"` // 菜单是否隐藏 1:是 2:否
}
type MenuData ¶
type MenuData struct {
ID int64 `json:"id"` // 编号
Name string `json:"name"` // 菜单名称
ParentID int64 `json:"parentID"` // 父菜单ID,一级菜单为1
Type int64 `json:"type"` // 类型 1:目录 2:菜单 3:按钮
Path string `json:"path"` // 系统的path
Component string `json:"component"` // 页面
Icon string `json:"icon"` // 菜单图标
Redirect string `json:"redirect"` // 路由重定向
CreateTime int64 `json:"createTime"` // 创建时间
Order int64 `json:"order"` // 左侧table排序序号
HideInMenu int64 `json:"hideInMenu,optional"` // 菜单是否隐藏 1:是 2:否
}
type MenuDeleteReq ¶
type MenuDeleteReq struct {
ID int64 `json:"id"` // 编号
}
type MenuIndexReq ¶
type MenuIndexResp ¶
type MenuIndexResp struct {
List []*MenuData `json:"list"` //菜单列表
}
type MenuUpdateReq ¶
type MenuUpdateReq struct {
ID int64 `json:"id"` // 编号
Name string `json:"name"` // 菜单名称
ParentID int64 `json:"parentID"` // 父菜单ID,一级菜单为1
Type int64 `json:"type,optional"` // 类型 1:目录 2:菜单 3:按钮
Path string `json:"path,optional"` // 系统的path
Component string `json:"component,optional"` // 页面
Icon string `json:"icon,optional"` // 菜单图标
Redirect string `json:"redirect,optional"` // 路由重定向
Order int64 `json:"order"` // 左侧table排序序号
HideInMenu int64 `json:"hideInMenu,optional"` // 菜单是否隐藏 1:是 2:否
}
type ProductInfo ¶
type ProductInfo struct {
CreatedTime int64 `json:"createdTime,optional,string"` //创建时间 只读
ProductID string `json:"productID,optional"` //产品id 只读
ProductName string `json:"productName,optional"` //产品名称
AuthMode int64 `json:"authMode,optional"` //认证方式:1:账密认证,2:秘钥认证
DeviceType int64 `json:"deviceType,optional"` //设备类型:1:设备,2:网关,3:子设备
CategoryID int64 `json:"categoryID,optional"` //产品品类
NetType int64 `json:"netType,optional"` //通讯方式:1:其他,2:wi-fi,3:2G/3G/4G,4:5G,5:BLE,6:LoRaWAN
DataProto int64 `json:"dataProto,optional"` //数据协议:1:自定义,2:数据模板
AutoRegister int64 `json:"autoRegister,optional"` //动态注册:1:关闭,2:打开,3:打开并自动创建设备
Secret string `json:"secret,optional"` //动态注册产品秘钥 只读
Desc *string `json:"desc,optional"` //描述
Tags []*Tag `json:"tags,optional"` // 产品tag
}
type ProductInfoCreateReq ¶
type ProductInfoCreateReq struct {
ProductName string `json:"productName"` //产品名称
AuthMode int64 `json:"authMode,optional"` //认证方式:1:账密认证,2:秘钥认证
DeviceType int64 `json:"deviceType,optional"` //设备类型:1:设备,2:网关,3:子设备
CategoryID int64 `json:"categoryID,optional"` //产品品类
NetType int64 `json:"netType,optional"` //通讯方式:1:其他,2:wi-fi,3:2G/3G/4G,4:5G,5:BLE,6:LoRaWAN
DataProto int64 `json:"dataProto,optional"` //数据协议:1:自定义,2:数据模板
AutoRegister int64 `json:"autoRegister,optional"` //动态注册:1:关闭,2:打开,3:打开并自动创建设备
Desc *string `json:"desc,optional"` //描述
Tags []*Tag `json:"tags,optional"` // 产品tag
}
type ProductInfoDeleteReq ¶
type ProductInfoDeleteReq struct {
ProductID string `json:"productID"` //产品id 只读
}
type ProductInfoIndexReq ¶
type ProductInfoIndexReq struct {
Page *PageInfo `json:"page,optional"` //分页信息,只获取一个则不填
ProductName string `json:"productName,optional"` //过滤产品名称
DeviceType int64 `json:"deviceType,optional"` //过滤设备类型:0:全部,1:设备,2:网关,3:子设备
ProductIDs []string `json:"productIDs,optional"` //过滤产品id列表
Tags []*Tag `json:"tags,optional"` // key tag过滤查询,非模糊查询 为tag的名,value为tag对应的值
}
type ProductInfoIndexResp ¶
type ProductInfoIndexResp struct {
List []*ProductInfo `json:"list"` //产品信息
Total int64 `json:"total,optional"` //拥有的总数
Num int64 `json:"num,optional"` //返回的数量
}
type ProductInfoReadReq ¶
type ProductInfoReadReq struct {
ProductID string `json:"productID"` //产品id
}
type ProductInfoUpdateReq ¶
type ProductInfoUpdateReq struct {
ProductID string `json:"productID"` //产品id 只读
ProductName string `json:"productName,optional"` //产品名称
AuthMode int64 `json:"authMode,optional"` //认证方式:1:账密认证,2:秘钥认证
DeviceType int64 `json:"deviceType,optional"` //设备类型:1:设备,2:网关,3:子设备
CategoryID int64 `json:"categoryID,optional"` //产品品类
NetType int64 `json:"netType,optional"` //通讯方式:1:其他,2:wi-fi,3:2G/3G/4G,4:5G,5:BLE,6:LoRaWAN
DataProto int64 `json:"dataProto,optional"` //数据协议:1:自定义,2:数据模板
AutoRegister int64 `json:"autoRegister,optional"` //动态注册:1:关闭,2:打开,3:打开并自动创建设备
Desc *string `json:"desc,optional"` //描述
Tags []*Tag `json:"tags,optional"` // 产品tag
}
type ProductRemoteConfig ¶ added in v0.3.0
type ProductRemoteConfigCreateReq ¶ added in v0.3.0
type ProductRemoteConfigIndexReq ¶ added in v0.3.0
type ProductRemoteConfigIndexResp ¶ added in v0.3.0
type ProductRemoteConfigIndexResp struct {
List []*ProductRemoteConfig `json:"list"` //产品信息
Total int64 `json:"total"` //拥有的总数
}
type ProductRemoteConfigLastestReadReq ¶ added in v0.3.0
type ProductRemoteConfigLastestReadReq struct {
ProductID string `json:"productID"` //产品id
}
type ProductRemoteConfigLastestReadResp ¶ added in v0.3.0
type ProductRemoteConfigLastestReadResp struct {
ProductRemoteConfig
}
type ProductRemoteConfigPushAllReq ¶ added in v0.3.0
type ProductRemoteConfigPushAllReq struct {
ProductID string `json:"productID"` //产品id
}
type ProductSchemaCreateReq ¶
type ProductSchemaCreateReq struct {
*ProductSchemaInfo
}
type ProductSchemaDeleteReq ¶
type ProductSchemaIndexReq ¶
type ProductSchemaIndexReq struct {
Page *PageInfo `json:"page,optional"` //分页信息,只获取一个则不填
ProductID string `json:"productID"` //产品id
Type int64 `json:"type,optional"` //物模型类型 1:property属性 2:event事件 3:action行为
Tag int64 `json:"tag,optional"` //过滤条件: 物模型标签 1:自定义 2:可选 3:必选
Identifiers []string `json:"identifiers,optional"` //过滤标识符列表
}
type ProductSchemaIndexResp ¶
type ProductSchemaIndexResp struct {
List []*ProductSchemaInfo `json:"list"` //分页信息,只获取一个则不填
Total int64 `json:"total"` //总数(只有分页的时候会返回)
}
type ProductSchemaInfo ¶
type ProductSchemaInfo struct {
ProductID string `json:"productID"` //产品id 只读
Type int64 `json:"type"` //物模型类型 1:property属性 2:event事件 3:action行为
Tag int64 `json:"tag"` //物模型标签 1:自定义 2:可选 3:必选 必选不可删除
Identifier string `json:"identifier"` //标识符
Name *string `json:"name,optional"` //功能名称
Desc *string `json:"desc,optional"` //描述
Required int64 `json:"required,optional"` //是否必须 1:是 2:否
Affordance *string `json:"affordance,optional"` //各功能类型的详细参数定义
}
type ProductSchemaTslReadReq ¶
type ProductSchemaTslReadReq struct {
ProductID string `json:"productID"` //产品id
}
type ProductSchemaTslReadResp ¶
type ProductSchemaTslReadResp struct {
Tsl string `json:"tsl"` //物模型tsl
}
type ProductSchemaUpdateReq ¶
type ProductSchemaUpdateReq struct {
*ProductSchemaInfo
}
type RoleCreateReq ¶
type RoleDeleteReq ¶
type RoleDeleteReq struct {
ID int64 `json:"id"` //编号
}
type RoleIndexData ¶
type RoleIndexReq ¶
type RoleIndexResp ¶
type RoleIndexResp struct {
List []*RoleIndexData `json:"list"` //角色列表数据
Total int64 `json:"total"` //角色列表总数
}
type RoleMenuUpdateReq ¶
type RoleUpdateReq ¶
type SchemaAction ¶
type SchemaAction struct {
Input []*SchemaParam `json:"input,optional"` //调用参数
Output []*SchemaParam `json:"output,optional"` //返回参数
}
type SchemaDefine ¶
type SchemaDefine struct {
Type string `json:"type"` //参数类型: bool int string struct float timestamp array enum
Mapping map[string]string `json:"mapping,omitempty"` //枚举及bool类型:bool enum
Min string `json:"min,omitempty"` //数值最小值:int float
Max string `json:"max,omitempty"` //数值最大值:int string float
Start string `json:"start,omitempty"` //初始值:int float
Step string `json:"step,omitempty"` //步长:int float
Unit string `json:"unit,omitempty"` //单位:int float
Specs []*SchemaSpec `json:"specs,omitempty"` //结构体:struct
ArrayInfo *SchemaDefine `json:"arrayInfo,omitempty"` //数组:array
}
type SchemaEvent ¶
type SchemaEvent struct {
Type string `json:"type"` //事件类型: 信息:info 告警alert 故障:fault
Params []*SchemaParam `json:"params,optional"` //事件参数
}
type SchemaParam ¶
type SchemaParam struct {
Identifier string `json:"identifier"` //参数标识符
Name string `json:"name"` //参数名称
Define *SchemaDefine `json:"define,omitempty"` //参数定义
}
type SchemaProperty ¶
type SchemaProperty struct {
Mode string `json:"mode,optional"` //读写类型: r(只读) rw(可读可写)
Define *SchemaDefine `json:"define"` //参数定义
}
type SchemaSpec ¶
type SchemaSpec struct {
Identifier string `json:"identifier"` //参数标识符
Name string `json:"name"` //参数名称
DataType *SchemaDefine `json:"dataType"` //参数定义
}
type UserCaptchaReq ¶
type UserCaptchaResp ¶
type UserCreateReq ¶
type UserCreateReq struct {
ReqType string `json:"reqType,options=phone|wxopen|wxin|wxminip|pwd"` //注册方式: phone手机号注册 wxopen 微信开放平台登录 wxin 微信内登录 wxminip 微信小程序 密码方式 pwd 账密方式 必输
UserName string `json:"userName"` //手机号注册时填写手机号,账密登录时填写用户账号 必输
Password string `json:"password"` //明文密码 必输,且做大小写校验
Wechat string `json:"wechat,optional"` // 微信UnionID
LastIP string `json:"lastIP,optional"` // 最后登录ip
RegIP string `json:"regIP,optional"` // 注册ip
NickName string `json:"nickName,optional"` // 用户的昵称
City string `json:"city,optional"` // 用户所在城市
Country string `json:"country,optional"` // 用户所在国家
Province string `json:"province,optional"` // 用户所在省份
Language string `json:"language,optional"` // 用户的语言,简体中文为zh_CN
HeadImgUrl string `json:"headImgUrl,optional"` // 用户头像
CreatedTime int64 `json:"createdTime,string,optional"` // 创建时间
Role int64 `json:"role"` // 用户角色
Sex int64 `json:"sex,optional"` // 用户的性别,值为1时是男性,值为2时是女性,值为0时是未知
}
type UserCreateResp ¶
type UserCreateResp struct {
Uid int64 `json:"uid,string"` //用户id
}
type UserDeleteReq ¶
type UserDeleteReq struct {
Uid string `json:"uid,omitempty"` //用户id
}
type UserIndexReq ¶
type UserIndexResp ¶
type UserInfo ¶
type UserInfo struct {
Uid int64 `json:"uid,string,optional"` // 用户id
UserName string `json:"userName,optional"` // 用户名(唯一)
Password string `json:"password,omitempty"` // 登录密码
Email string `json:"email,optional"` // 邮箱
Phone string `json:"phone,optional"` // 手机号
Wechat string `json:"wechat,optional"` // 微信UnionID
LastIP string `json:"lastIP,optional"` // 最后登录ip
RegIP string `json:"regIP,optional"` // 注册ip
NickName string `json:"nickName,optional"` // 用户的昵称
City string `json:"city,optional"` // 用户所在城市
Country string `json:"country,optional"` // 用户所在国家
Province string `json:"province,optional"` // 用户所在省份
Language string `json:"language,optional"` // 用户的语言,简体中文为zh_CN
HeadImgUrl string `json:"headImgUrl,optional"` // 用户头像
CreatedTime int64 `json:"createdTime,string,optional"` // 创建时间
Role int64 `json:"role"` // 用户角色
Sex int64 `json:"sex,optional"` // 用户的性别,值为1时是男性,值为2时是女性,值为0时是未知
}
type UserLoginReq ¶
type UserLoginReq struct {
UserID string `json:"userID"` //登录账号(支持用户名,手机号登录) 账号密码登录时需要填写
PwdType int32 `json:"pwdType"` //账号密码登录时需要填写.1,无密码 2,明文 3,md5加密
Password string `json:"password"` //密码,建议md5转换 密码登录时需要填写
LoginType string `json:"loginType,options=sms|pwd|wxopen|wxin|wxminip"` //验证类型 sms 短信验证码 pwd 账号密码登录 wxopen 微信开放平台登录 wxin 微信内登录 wxminip 微信小程序
Code string `json:"code,optional"` //验证码 微信登录填code
CodeID string `json:"codeID,optional"` //验证码编号 微信登录填state
}
type UserLoginResp ¶
type UserReadReq ¶
type UserReadReq struct {
Uid int64 `json:"uid,string"` // 用户id
}
type UserReadResp ¶
type UserReadResp struct {
Uid int64 `json:"uid,string,optional"` // 用户id
UserName string `json:"userName,optional"` // 用户名(唯一)
Email string `json:"email,optional"` // 邮箱
Phone string `json:"phone,optional"` // 手机号
Wechat string `json:"wechat,optional"` // 微信UnionID
LastIP string `json:"lastIP,optional"` // 最后登录ip
RegIP string `json:"regIP,optional"` // 注册ip
NickName string `json:"nickName,optional"` // 用户的昵称
City string `json:"city,optional"` // 用户所在城市
Country string `json:"country,optional"` // 用户所在国家
Province string `json:"province,optional"` // 用户所在省份
Language string `json:"language,optional"` // 用户的语言,简体中文为zh_CN
HeadImgUrl string `json:"headImgUrl,optional"` // 用户头像
CreatedTime int64 `json:"createdTime,string,optional"` // 创建时间
Role int64 `json:"role"` // 用户角色
Sex int64 `json:"sex,optional"` // 用户的性别,值为1时是男性,值为2时是女性,值为0时是未知
}
type UserResourceReadResp ¶
type UserResourceReadResp struct {
Menu []*MenuData `json:"menu"` //菜单资源
}
type UserUpdateReq ¶
type UserUpdateReq struct {
Uid int64 `json:"uid,string"` // 用户id
UserName string `json:"userName,optional"` // 用户名(唯一)
Email string `json:"email,optional"` // 邮箱
NickName string `json:"nickName,optional"` // 用户的昵称
City string `json:"city,optional"` // 用户所在城市
Country string `json:"country,optional"` // 用户所在国家
Province string `json:"province,optional"` // 用户所在省份
Language string `json:"language,optional"` // 用户的语言,简体中文为zh_CN
HeadImgUrl string `json:"headImgUrl,optional"` // 用户头像
Sex int64 `json:"sex,optional"` // 用户的性别,值为1时是男性,值为2时是女性,值为0时是未知
Role int64 `json:"role,optional"` // 用户角色
}
Click to show internal directories.
Click to hide internal directories.