ICommand增加配置方法,支持覆盖全局配置

This commit is contained in:
2021-04-17 15:04:43 +08:00
parent 18e1719e86
commit c26624befb
5 changed files with 97 additions and 3 deletions

View File

@ -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<张德满>