model

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonRes

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

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

type ModuleInfo

type ModuleInfo struct {
	Name    string //插件英文名称
	Title   string //插件标题
	Intro   string //插件介绍
	Author  string //作者
	Version string //版本
}

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 SagooMqttData

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

Jump to

Keyboard shortcuts

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