107 lines
1.6 KiB
Go
107 lines
1.6 KiB
Go
package im
|
|
|
|
type Sender interface {
|
|
GetUserID() int
|
|
GetChatID() int
|
|
GetImType() string
|
|
GetMessageID() int
|
|
GetUsername() string
|
|
IsReply() bool
|
|
GetReplySenderUserID() int
|
|
GetRawMessage() interface{}
|
|
SetMatch([]string)
|
|
SetAllMatch([][]string)
|
|
GetMatch() []string
|
|
GetAllMatch() [][]string
|
|
Get(...int) string
|
|
GetContent() string
|
|
IsAdmin() bool
|
|
IsMedia() bool
|
|
Reply(interface{}) error
|
|
RecallGroupMessage() error
|
|
}
|
|
|
|
type Config struct {
|
|
Type string
|
|
Masters []int
|
|
Groups []int
|
|
Token string
|
|
CustomConfig string
|
|
}
|
|
|
|
type Faker struct {
|
|
Message interface{}
|
|
matches [][]string
|
|
}
|
|
|
|
func (sender *Faker) GetContent() string {
|
|
return ""
|
|
}
|
|
|
|
func (sender *Faker) GetUserID() int {
|
|
return 0
|
|
}
|
|
|
|
func (sender *Faker) GetChatID() int {
|
|
return 0
|
|
}
|
|
|
|
func (sender *Faker) GetImType() string {
|
|
return ""
|
|
}
|
|
|
|
func (sender *Faker) GetMessageID() int {
|
|
return 0
|
|
}
|
|
|
|
func (sender *Faker) GetUsername() string {
|
|
return ""
|
|
}
|
|
|
|
func (sender *Faker) IsReply() bool {
|
|
return false
|
|
}
|
|
|
|
func (sender *Faker) GetReplySenderUserID() int {
|
|
return 0
|
|
}
|
|
|
|
func (sender *Faker) GetRawMessage() interface{} {
|
|
return nil
|
|
}
|
|
|
|
func (sender *Faker) SetMatch(ss []string) {
|
|
|
|
}
|
|
func (sender *Faker) SetAllMatch(ss [][]string) {
|
|
|
|
}
|
|
|
|
func (sender *Faker) GetMatch() []string {
|
|
return nil
|
|
}
|
|
|
|
func (sender *Faker) GetAllMatch() [][]string {
|
|
return nil
|
|
}
|
|
|
|
func (sender *Faker) Get(index ...int) string {
|
|
return ""
|
|
}
|
|
|
|
func (sender *Faker) IsAdmin() bool {
|
|
return true
|
|
}
|
|
|
|
func (sender *Faker) IsMedia() bool {
|
|
return false
|
|
}
|
|
|
|
func (sender *Faker) Reply(msg interface{}) error {
|
|
return nil
|
|
}
|
|
|
|
func (sender *Faker) RecallGroupMessage() error {
|
|
return nil
|
|
}
|