mqtt

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MqttMsgRecordAddReq

type MqttMsgRecordAddReq struct {
	g.Meta     `path:"/mqttMsgRecord/add" tags:"MQTT的消息记录" method:"post" summary:"添加MQTT的消息记录"`
	DeviceSn   string `p:"deviceSn" `
	TopicId    int    `p:"topicId" `
	ClientName string `p:"clientName" v:"required#客户端名称不能为空"`
	ClientId   string `p:"clientId" `
	Qos        int    `p:"qos" `
	Payload    string `p:"payload" `
	CreatTime  uint   `p:"creatTime" v:"required#创建时间不能为空"`
}

MqttMsgRecordAddReq 添加操作请求参数

type MqttMsgRecordAddRes

type MqttMsgRecordAddRes struct {
}

type MqttMsgRecordDeleteReq

type MqttMsgRecordDeleteReq struct {
	g.Meta `path:"/mqttMsgRecord/delete" tags:"MQTT的消息记录" method:"delete" summary:"删除MQTT的消息记录"`
	Ids    []int `p:"ids"`
}

type MqttMsgRecordDeleteRes

type MqttMsgRecordDeleteRes struct {
}

type MqttMsgRecordEditReq

type MqttMsgRecordEditReq struct {
	g.Meta     `path:"/mqttMsgRecord/edit" tags:"MQTT的消息记录" method:"put" summary:"修改MQTT的消息记录"`
	Id         int    `p:"id" v:"required#主键ID不能为空"`
	DeviceSn   string `p:"deviceSn" `
	TopicId    int    `p:"topicId" `
	ClientName string `p:"clientName" v:"required#客户端名称不能为空"`
	ClientId   string `p:"clientId" `
	Qos        int    `p:"qos" `
	Payload    string `p:"payload" `
	CreatTime  uint   `p:"creatTime" v:"required#创建时间不能为空"`
}

MqttMsgRecordEditReq 修改操作请求参数

type MqttMsgRecordEditRes

type MqttMsgRecordEditRes struct {
}

type MqttMsgRecordGetReq

type MqttMsgRecordGetReq struct {
	g.Meta `path:"/mqttMsgRecord/get" tags:"MQTT的消息记录" method:"get" summary:"获取MQTT的消息记录数据"`
	Id     int `p:"id"`
}

type MqttMsgRecordGetRes

type MqttMsgRecordGetRes struct {
	g.Meta `mime:"application/json"`
	*entity.MqttMsgRecord
}

type MqttMsgRecordSearchReq

type MqttMsgRecordSearchReq struct {
	g.Meta     `path:"/mqttMsgRecord/list" tags:"MQTT的消息记录" method:"get" summary:"MQTT的消息记录列表"`
	DeviceSn   string `p:"deviceSn"`   //设备序列号
	TopicId    string `p:"topicId"`    //Topic的主键
	ClientName string `p:"clientName"` //客户端名称
	ClientId   string `p:"clientId"`   //客户端ID
	Qos        string `p:"qos"`        //Qos
	Payload    string `p:"payload"`    //传递的数据
	CreatTime  string `p:"creatTime"`  //创建时间
	BeginTime  string `p:"beginTime"`  //开始时间
	EndTime    string `p:"endTime"`    //结束时间
	commonApi.PageReq
}

MqttMsgRecordSearchReq 分页请求参数

type MqttMsgRecordSearchRes

type MqttMsgRecordSearchRes struct {
	g.Meta `mime:"application/json"`
	commonApi.ListRes
	List []*entity.MqttMsgRecord `json:"list"`
}

type MqttStatusAddReq

type MqttStatusAddReq struct {
	g.Meta   `path:"/mqttStatus/add" tags:"MQTT客户端连接状态" method:"post" summary:"添加MQTT客户端连接状态"`
	Name     string `p:"name" v:"required#设备名称不能为空"`
	ClientId string `p:"clientId" `
	Status   int    `p:"status" v:"required#MQTT连接的状态不能为空"`
	UserName string `p:"userName" `
}

MqttStatusAddReq 添加操作请求参数

type MqttStatusAddRes

type MqttStatusAddRes struct {
}

type MqttStatusDeleteReq

type MqttStatusDeleteReq struct {
	g.Meta `path:"/mqttStatus/delete" tags:"MQTT客户端连接状态" method:"delete" summary:"删除MQTT客户端连接状态"`
	Ids    []int `p:"ids"`
}

type MqttStatusDeleteRes

type MqttStatusDeleteRes struct {
}

type MqttStatusEditReq

type MqttStatusEditReq struct {
	g.Meta   `path:"/mqttStatus/edit" tags:"MQTT客户端连接状态" method:"put" summary:"修改MQTT客户端连接状态"`
	Id       int    `p:"id" v:"required#主键ID不能为空"`
	Name     string `p:"name" v:"required#设备名称不能为空"`
	ClientId string `p:"clientId" `
	Status   int    `p:"status" v:"required#MQTT连接的状态不能为空"`
	UserName string `p:"userName" `
}

MqttStatusEditReq 修改操作请求参数

type MqttStatusEditRes

type MqttStatusEditRes struct {
}

type MqttStatusGetReq

type MqttStatusGetReq struct {
	g.Meta `path:"/mqttStatus/get" tags:"MQTT客户端连接状态" method:"get" summary:"获取MQTT客户端连接状态数据"`
	Id     int `p:"id"`
}

type MqttStatusGetRes

type MqttStatusGetRes struct {
	g.Meta `mime:"application/json"`
	*entity.MqttStatus
}

type MqttStatusSearchReq

type MqttStatusSearchReq struct {
	g.Meta    `path:"/mqttStatus/list" tags:"MQTT客户端连接状态" method:"get" summary:"MQTT客户端连接状态列表"`
	Name      string `p:"name"`      //设备名称
	ClientId  string `p:"clientId"`  //MQTT连接的客户端Id
	Status    string `p:"status"`    //MQTT连接的状态
	UserName  string `p:"userName"`  //登录名
	BeginTime string `p:"beginTime"` //开始时间
	EndTime   string `p:"endTime"`   //结束时间
	commonApi.PageReq
}

MqttStatusSearchReq 分页请求参数

type MqttStatusSearchRes

type MqttStatusSearchRes struct {
	g.Meta `mime:"application/json"`
	commonApi.ListRes
	List []*entity.MqttStatus `json:"list"`
}

type MqttStatusStatusReq

type MqttStatusStatusReq struct {
	g.Meta `path:"/mqttStatus/status" tags:"MQTT客户端连接状态" method:"put" summary:"修改MQTT客户端连接状态状态"`
	Id     int `p:"id" v:"required#主键ID不能为空"`
	Status int `p:"status" v:"required#MQTT连接的状态不能为空"`
}

MqttStatusStatusReq 设置用户状态参数

type MqttStatusStatusRes

type MqttStatusStatusRes struct {
}

type MqttStatusUpdateReq

type MqttStatusUpdateReq struct {
	g.Meta   `path:"/mqttStatus/edit" tags:"MQTT客户端连接状态" method:"put" summary:"修改MQTT客户端连接状态"`
	Id       int    `p:"id" v:"required#主键ID不能为空"`
	Name     string `p:"name" v:"required#设备名称不能为空"`
	ClientId string `p:"clientId" `
	Status   int    `p:"status" v:"required#MQTT连接的状态不能为空"`
	UserName string `p:"userName" `
}

type MqttStatusUpdateRes

type MqttStatusUpdateRes struct {
}

type MqttTopicAddReq

type MqttTopicAddReq struct {
	g.Meta       `path:"/mqttTopic/add" tags:"MQTT客户端的订阅信息" method:"post" summary:"添加MQTT客户端的订阅信息"`
	Name         string `p:"name" v:"required#设备名称不能为空"`
	ClientId     string `p:"clientId" v:"required#设备Id不能为空"`
	Topic        string `p:"topic" `
	Qos          int    `p:"qos" `
	RetainAsPub  bool   `p:"retainAsPub" `
	RetainHandle byte   `p:"retainHandle" `
}

MqttTopicAddReq 添加操作请求参数

type MqttTopicAddRes

type MqttTopicAddRes struct {
}

type MqttTopicDeleteByTopicReq

type MqttTopicDeleteByTopicReq struct {
	g.Meta   ``     /* 126-byte string literal not displayed */
	ClientId string `p:"clientId" v:"required#设备Id不能为空"`
	Topic    string `p:"topic" v:"required#Topic不能为空"`
}

type MqttTopicDeleteByTopicRes

type MqttTopicDeleteByTopicRes struct {
}

type MqttTopicDeleteReq

type MqttTopicDeleteReq struct {
	g.Meta `path:"/mqttTopic/delete" tags:"MQTT客户端的订阅信息" method:"delete" summary:"删除MQTT客户端的订阅信息"`
	Ids    []int `p:"ids"`
}

type MqttTopicDeleteRes

type MqttTopicDeleteRes struct {
}

type MqttTopicEditReq

type MqttTopicEditReq struct {
	g.Meta   `path:"/mqttTopic/edit" tags:"MQTT客户端的订阅信息" method:"put" summary:"修改MQTT客户端的订阅信息"`
	Id       int    `p:"id" v:"required#主键ID不能为空"`
	Name     string `p:"name" v:"required#设备名称不能为空"`
	ClientId string `p:"clientId" v:"required#设备Id不能为空"`
	Topic    string `p:"topic" `
	Qos      int    `p:"qos" `
}

MqttTopicEditReq 修改操作请求参数

type MqttTopicEditRes

type MqttTopicEditRes struct {
}

type MqttTopicGetReq

type MqttTopicGetReq struct {
	g.Meta `path:"/mqttTopic/get" tags:"MQTT客户端的订阅信息" method:"get" summary:"获取MQTT客户端的订阅信息数据"`
	Id     int `p:"id"`
}

type MqttTopicGetRes

type MqttTopicGetRes struct {
	g.Meta `mime:"application/json"`
	*entity.MqttTopic
}

type MqttTopicRecordAddReq

type MqttTopicRecordAddReq struct {
	g.Meta    ``     /* 126-byte string literal not displayed */
	Name      string `p:"name" v:"required#设备名称不能为空"`
	Topic     string `p:"topic" `
	Qos       int    `p:"qos" `
	Remark    string `p:"remark" `
	CreatTime uint   `p:"creatTime" v:"required#创建时间不能为空"`
}

MqttTopicRecordAddReq 添加操作请求参数

type MqttTopicRecordAddRes

type MqttTopicRecordAddRes struct {
}

type MqttTopicRecordDeleteReq

type MqttTopicRecordDeleteReq struct {
	g.Meta ``    /* 131-byte string literal not displayed */
	Ids    []int `p:"ids"`
}

type MqttTopicRecordDeleteRes

type MqttTopicRecordDeleteRes struct {
}

type MqttTopicRecordEditReq

type MqttTopicRecordEditReq struct {
	g.Meta    ``     /* 126-byte string literal not displayed */
	Id        int    `p:"id" v:"required#主键ID不能为空"`
	Name      string `p:"name" v:"required#设备名称不能为空"`
	Topic     string `p:"topic" `
	Qos       int    `p:"qos" `
	Remark    string `p:"remark" `
	CreatTime uint   `p:"creatTime" v:"required#创建时间不能为空"`
}

MqttTopicRecordEditReq 修改操作请求参数

type MqttTopicRecordEditRes

type MqttTopicRecordEditRes struct {
}

type MqttTopicRecordGetReq

type MqttTopicRecordGetReq struct {
	g.Meta ``  /* 131-byte string literal not displayed */
	Id     int `p:"id"`
}

type MqttTopicRecordGetRes

type MqttTopicRecordGetRes struct {
	g.Meta `mime:"application/json"`
	*entity.MqttTopicRecord
}

type MqttTopicRecordSearchReq

type MqttTopicRecordSearchReq struct {
	g.Meta    ``     /* 126-byte string literal not displayed */
	Name      string `p:"name"`      //设备名称
	Topic     string `p:"topic"`     //Topic
	Qos       string `p:"qos"`       //Qos
	CreatTime string `p:"creatTime"` //创建时间
	BeginTime string `p:"beginTime"` //开始时间
	EndTime   string `p:"endTime"`   //结束时间
	commonApi.PageReq
}

MqttTopicRecordSearchReq 分页请求参数

type MqttTopicRecordSearchRes

type MqttTopicRecordSearchRes struct {
	g.Meta `mime:"application/json"`
	commonApi.ListRes
	List []*entity.MqttTopicRecord `json:"list"`
}

type MqttTopicSearchReq

type MqttTopicSearchReq struct {
	g.Meta    `path:"/mqttTopic/list" tags:"MQTT客户端的订阅信息" method:"get" summary:"MQTT客户端的订阅信息列表"`
	Name      string `p:"name"`  //设备名称
	Topic     string `p:"topic"` //订阅的Topic信息
	ClientId  string `p:"clientId" `
	Qos       string `p:"qos"`       //等级
	BeginTime string `p:"beginTime"` //开始时间
	EndTime   string `p:"endTime"`   //结束时间
	commonApi.PageReq
}

MqttTopicSearchReq 分页请求参数

type MqttTopicSearchRes

type MqttTopicSearchRes struct {
	g.Meta `mime:"application/json"`
	commonApi.ListRes
	List []*entity.MqttTopic `json:"list"`
}

Jump to

Keyboard shortcuts

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