Add InitBuffer annotation

This commit is contained in:
whale
2020-03-08 16:40:04 +08:00
parent 4af90e00ff
commit 5f43cf4f00
5 changed files with 59 additions and 1 deletions

View File

@@ -7,6 +7,8 @@ namespace Module\TestMod;
use Framework\Console;
use ZM\Annotation\CQ\CQCommand;
use ZM\Annotation\CQ\CQNotice;
use ZM\Annotation\Http\Controller;
use ZM\Annotation\Http\RequestMapping;
use ZM\Annotation\Swoole\SwooleEventAt;
use ZM\Connection\CQConnection;
use ZM\ModBase;
@@ -14,6 +16,7 @@ use ZM\ModBase;
/**
* Class CQTest
* @package Module\TestMod
* @Controller("/view/test2")
*/
class CQTest extends ModBase
{
@@ -36,6 +39,16 @@ class CQTest extends ModBase
return "我也不知道".$arg[0]."是什么呀";
}
/**
* @RequestMapping("/ping")
*/
public function ping(){}
/**
* @RequestMapping("/pong")
*/
public function pong(){}
/**
* @CQNotice(notice_type="group_admin")
*/