x
This commit is contained in:
+40
-26
@@ -1,36 +1,40 @@
|
||||
package common
|
||||
|
||||
import "github.com/dop251/goja"
|
||||
|
||||
type Function struct {
|
||||
Rules []string `json:"-"`
|
||||
Params [][]string `json:"-"`
|
||||
ImType *Filter `json:"-"`
|
||||
UserId *Filter `json:"-"`
|
||||
GroupId *Filter `json:"-"`
|
||||
FindAll bool `json:"-"`
|
||||
Admin bool `json:"-"`
|
||||
Handle func(s Sender) interface{} `json:"-"`
|
||||
Cron string `json:"cron"`
|
||||
Priority int `json:"-"`
|
||||
Disable bool `json:"-"`
|
||||
Hidden bool `json:"-"`
|
||||
CronId int `json:"-"`
|
||||
Origin string `json:"-"`
|
||||
UUID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
Public bool `json:"public"`
|
||||
Icon string `json:"icon"`
|
||||
Version string `json:"version"`
|
||||
Author string `json:"author"`
|
||||
Status int `json:"status"` //0未安装 1可更新 2已安装
|
||||
Address string `json:"-"`
|
||||
CreateAt string `json:"create_at"`
|
||||
Module bool `json:"module"`
|
||||
Rules []string `json:"-"`
|
||||
Params [][]string `json:"-"`
|
||||
ImType *Filter `json:"-"`
|
||||
UserId *Filter `json:"-"`
|
||||
GroupId *Filter `json:"-"`
|
||||
FindAll bool `json:"-"`
|
||||
Admin bool `json:"-"`
|
||||
Handle func(Sender, func(vm *goja.Runtime)) interface{} `json:"-"`
|
||||
Cron string `json:"cron"`
|
||||
Priority int `json:"-"`
|
||||
Disable bool `json:"-"`
|
||||
Hidden bool `json:"-"`
|
||||
CronId int `json:"-"`
|
||||
Origin string `json:"-"`
|
||||
UUID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
Public bool `json:"public"`
|
||||
Icon string `json:"icon"`
|
||||
Version string `json:"version"`
|
||||
Author string `json:"author"`
|
||||
Status int `json:"status"` //0未安装 1可更新 2已安装
|
||||
Address string `json:"-"`
|
||||
CreateAt string `json:"create_at"`
|
||||
Module bool `json:"module"`
|
||||
// Web bool `json:"web"`
|
||||
Encrypt bool `json:"encrypt"`
|
||||
OnStart bool `json:"on_start"`
|
||||
PluginPublisher
|
||||
Running bool `json:"-"`
|
||||
Running bool `json:"-"`
|
||||
Http *Http `json:"-"`
|
||||
Reply *Reply `json:"-"`
|
||||
}
|
||||
type Filter struct {
|
||||
BlackMode bool
|
||||
@@ -42,3 +46,13 @@ type PluginPublisher struct {
|
||||
Organization string `json:"organization"`
|
||||
Identified bool `json:"identified"`
|
||||
}
|
||||
|
||||
type Http struct { //GET /abc
|
||||
Path string
|
||||
Method string
|
||||
}
|
||||
|
||||
type Reply struct { //wx 123 1234
|
||||
Platform string
|
||||
BotsID []string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user