调整架构,新增微信模块服务

This commit is contained in:
JaguarJack
2020-06-24 09:10:24 +08:00
parent 0e7453a6fe
commit 2d95212973
6 changed files with 109 additions and 16 deletions

View File

@@ -2,22 +2,46 @@
namespace catchAdmin\wechat;
use catchAdmin\wechat\command\SyncUsersCommand;
use catcher\ModuleService;
use think\Service;
class CatchWechatService extends Service
class CatchWechatService extends ModuleService
{
public function boot()
{}
/**
* register
*
* @time 2020年06月24日
* @return void
*/
public function register()
{
parent::register();
$this->registerCommand();
}
/**
* register command
*
* @time 2020年06月24日
* @return void
*/
public function registerCommand()
{
$this->commands([
SyncUsersCommand::class,
]);
}
/**
* loaded router from
*
* @time 2020年06月24日
* @return string
*/
public function loadRouteFrom()
{
// TODO: Implement loadRouteFrom() method.
return __DIR__ . DIRECTORY_SEPARATOR . 'route.php';
}
}