调整架构,新增微信模块服务
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user