mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 10:32:48 +08:00
增加测试机制;完善DebugMysql日志逻辑;更新debug_log表字段格式;发布新版本
This commit is contained in:
32
extend/base/common/service/TestServiceBase.php
Normal file
32
extend/base/common/service/TestServiceBase.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace base\common\service;
|
||||
|
||||
use Exception;
|
||||
|
||||
class TestServiceBase
|
||||
{
|
||||
public const NAME = null;
|
||||
|
||||
public const DESC = null;
|
||||
|
||||
public const RUN = 'run';
|
||||
|
||||
public function getName()
|
||||
{
|
||||
if ($this::NAME === null) {
|
||||
throw new Exception('name is not set');
|
||||
}
|
||||
|
||||
return $this::NAME;
|
||||
}
|
||||
|
||||
public function getDesc()
|
||||
{
|
||||
if ($this::DESC === null) {
|
||||
throw new Exception('desc is not set');
|
||||
}
|
||||
|
||||
return $this::DESC;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user