model

package
v0.0.0-...-3458964 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataReq

type DataReq struct {
	Data      []byte
	DataIdent string
}

DataReq 数据请求参数

type EncodeModel

type EncodeModel struct {
	Data  string `json:"data"`
	IsHex bool   `json:"isHex"`
}

EncodeModel 主结构

type Frontend

type Frontend struct {
	Ui            bool   `json:"ui"`
	Url           string `json:"url"`
	Configuration bool   `json:"configuration"`
}

Frontend 插件前端配置

type InfoReq

type InfoReq struct {
	Data      []byte
	DataIdent string
}

InfoReq 插件信息REQ结构

type JsonRes

type JsonRes struct {
	Code    int         `json:"code"`    // 错误码((0:成功, 1:失败, >1:错误码))
	Message string      `json:"message"` // 提示信息
	Data    interface{} `json:"data"`    // 返回数据(业务接口定义具体数据结构)
}

JsonRes 数据返回通用JSON数据结构

type NoticeData

type NoticeData struct {
	Config    map[interface{}]interface{}
	SendParam map[string]interface{}
	Msg       NoticeInfoData
}

type NoticeInfoData

type NoticeInfoData struct {
	ConfigId   string `orm:"config_id"   json:"config_id"`   //
	ComeFrom   string `orm:"come_from"   json:"come_from"`   //
	Method     string `orm:"method"      json:"method"`      //
	MethodCron string `orm:"method_cron" json:"method_cron"` //
	MethodNum  int    `orm:"method_num"  json:"method_num"`  //
	MsgTitle   string `orm:"msg_title"   json:"msg_title"`   //
	MsgBody    string `orm:"msg_body"    json:"msg_body"`    //
	MsgUrl     string `orm:"msg_url"     json:"msg_url"`     //
	UserIds    string `orm:"user_ids"    json:"user_ids"`    //
	PartyIds   string `orm:"party_ids"   json:"party_ids"`   //
	Totag      string `orm:"totag"       json:"totag"`       //
}

type NoticeSendObject

type NoticeSendObject struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type Param

type Param struct {
	Value interface{} `json:"value"`
	Time  int64       `json:"time"`
}

Param 属性

type PluginInfo

type PluginInfo struct {
	Types       string   `json:"types"`
	HandleType  string   `json:"handleType"`
	Name        string   `json:"name"`
	Title       string   `json:"title"`
	Description string   `json:"description"`
	Version     string   `json:"version"`
	Author      string   `json:"author"`
	Icon        string   `json:"icon"`
	Link        string   `json:"link"`
	Command     string   `json:"command"`
	Args        []string `json:"args"`
	Root        bool     `json:"root"`
	Frontend    Frontend `json:"frontend"`
}

PluginInfo 插件信息结构

type SagooMqttData

type SagooMqttData struct {
	Attr       map[string]any `json:"attr"`
	DeviceID   string         `json:"device_id"`
	ReturnTime int64          `json:"return_time"`
}

type SagooMqttModel

type SagooMqttModel struct {
	Id                string           `json:"id"`
	Version           string           `json:"version"`
	Sys               SysInfo          `json:"sys"`
	Params            map[string]Param `json:"params"`
	Method            string           `json:"method"`
	ModelFuncName     string           `json:"model_func_name"`
	ModelFuncIdentify string           `json:"model_func_identify"`
}

SagooMqttModel 主结构

type SysInfo

type SysInfo struct {
	Ack int `json:"ack"`
}

SagooMqttModel 主结构

Jump to

Keyboard shortcuts

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