model

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 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 added in v1.0.5

type DataReq struct {
	Data      []byte
	DataIdent string
}

DataReq 数据请求参数

type Frontend added in v1.0.7

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

Frontend 插件前端配置

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 added in v1.0.6

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

Param 属性

type PluginInfo added in v1.0.7

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 added in v1.0.6

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 added in v1.0.6

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