ICommand增加配置方法,支持覆盖全局配置
This commit is contained in:
@ -7,7 +7,10 @@
|
||||
// Date : 2021-03-27 6:34 下午
|
||||
package abstract
|
||||
|
||||
import "github.com/go-developer/websocket/context"
|
||||
import (
|
||||
"github.com/go-developer/websocket/config"
|
||||
"github.com/go-developer/websocket/context"
|
||||
)
|
||||
|
||||
// ICommand 指令
|
||||
//
|
||||
@ -21,6 +24,12 @@ type ICommand interface {
|
||||
//
|
||||
// Date : 7:21 下午 2021/3/27
|
||||
GetCommand() string
|
||||
// GetConfigOption 获取指令的配置
|
||||
//
|
||||
// Author : go_developer@163.com<张德满>
|
||||
//
|
||||
// Date : 2:49 下午 2021/4/17
|
||||
GetConfigOption() []config.SetCommandConfig
|
||||
// Execute 执行指令的逻辑
|
||||
//
|
||||
// Author : go_developer@163.com<张德满>
|
||||
|
Reference in New Issue
Block a user