From fe8aaf91701d296afe95439a0f48b193732252f1 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Tue, 4 Apr 2023 14:12:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/imodule.go | 5 +++++ modules/practice/module.go | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/comm/imodule.go b/comm/imodule.go index aa57d5304..1d8bc5dd8 100644 --- a/comm/imodule.go +++ b/comm/imodule.go @@ -14,6 +14,10 @@ type ( ITaskComplete interface { TaskComplete(session IUserSession, taskid int32) } + //功能开启通知 + IOpenCmdNotice interface { + OpenCmdNotice(session IUserSession, key string) + } ) /* @@ -439,6 +443,7 @@ type ( //练功房 IPractice interface { ITaskComplete + IOpenCmdNotice //添加武馆资源 AddItems(session IUserSession, items map[string]int32, bPush bool) (code pb.ErrorCode) //pvp切磋结果通知 diff --git a/modules/practice/module.go b/modules/practice/module.go index 35d74fe2d..db1077e9f 100644 --- a/modules/practice/module.go +++ b/modules/practice/module.go @@ -55,6 +55,7 @@ func (this *Practice) Init(service core.IService, module core.IModule, options c this.service = service.(base.IRPCXService) return } + func (this *Practice) Start() (err error) { err = this.ModuleBase.Start() var module core.IModule @@ -189,6 +190,10 @@ func (this *Practice) TaskComplete(session comm.IUserSession, taskid int32) { } } +func (this *Practice) OpenCmdNotice(session comm.IUserSession, key string) { + +} + func (this *Practice) ChallengeResults(bid, red, bule string, winSide int32) { this.Debug("ChallengeResults", log.Field{Key: "bid", Value: bid},