types

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PageData

type PageData struct {
	Page     int64       `json:"Page,omitempty"`
	PageSize int64       `json:"PageSize,omitempty"`
	Search   interface{} `json:"Search"`
	Count    int64       `json:"Count"`
	Data     interface{} `json:"Data,omitempty"`
	DataList interface{} `json:"DataList"`
}

func NewPageData

func NewPageData() *PageData

type PageReq

type PageReq struct {
	Page     int64 `json:"Page"`
	PageSize int64 `json:"PageSize"`
}

type PublishMsg

type PublishMsg struct {

	// 主题
	TopicName string
	// 内容
	TopicMsg string
	// 保留标识
	Retain bool
	// Qos级别
	Qos uint8
}

发布消息请求

type Response

type Response struct {
	Code int64       `json:"Code"`
	Msg  string      `json:"Msg"`
	Data interface{} `json:"Data,omitempty"`
}

响应结构体

func NewResponse

func NewResponse() *Response

Jump to

Keyboard shortcuts

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