x
This commit is contained in:
@@ -19,6 +19,8 @@ type Function struct {
|
||||
Origin string `json:"-"`
|
||||
UUID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Type string `json:"type"` //脚本类型
|
||||
Suffix string `json:"suffix"` //脚本后缀
|
||||
Description string `json:"description"`
|
||||
Public bool `json:"public"`
|
||||
Icon string `json:"icon"`
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
package common
|
||||
|
||||
import "time"
|
||||
|
||||
type Sender interface {
|
||||
GetID() string
|
||||
GetTime() time.Time
|
||||
SetID()
|
||||
GetUserID() string
|
||||
GetChatID() string
|
||||
GetBotID() string
|
||||
@@ -51,7 +56,7 @@ type Sender interface {
|
||||
SetLevel(int)
|
||||
GetLevel() int
|
||||
Event() map[string]interface{}
|
||||
Action(map[string]interface{}) (interface{}, string)
|
||||
Action(map[string]interface{}) (interface{}, error)
|
||||
}
|
||||
|
||||
type FakerSenderParams struct {
|
||||
|
||||
Reference in New Issue
Block a user