35 lines
595 B
PHP
35 lines
595 B
PHP
<?php
|
|
|
|
|
|
declare (strict_types = 1);
|
|
|
|
namespace app;
|
|
|
|
use crmeb\services\SystemConfigService;
|
|
use crmeb\services\GroupDataService;
|
|
use crmeb\utils\Json;
|
|
use think\Service;
|
|
|
|
/**
|
|
* 应用服务类
|
|
*/
|
|
class AppService extends Service
|
|
{
|
|
public $bind = [
|
|
// 'json' => Json::class,
|
|
'sysConfig' => SystemConfigService::class,
|
|
'sysGroupData' => GroupDataService::class
|
|
];
|
|
|
|
public function register()
|
|
{
|
|
defined('TOP_PRECISION') || define('TOP_PRECISION', 2);
|
|
// 服务注册
|
|
}
|
|
|
|
public function boot()
|
|
{
|
|
// 服务启动
|
|
}
|
|
}
|