go-bot/workers/worker.go
2024-04-01 09:42:29 +08:00

8 lines
162 B
Go

package workers
// Worker 接口描述了不同类的共同行为
type Worker interface {
CheckPermission() string
GetMsg() string
SendMsg(msg string) bool
}