Skip to content

Commit

Permalink
修复一些注解常量值
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Oct 31, 2023
1 parent 15c0da2 commit 5381c00
Show file tree
Hide file tree
Showing 100 changed files with 216 additions and 212 deletions.
2 changes: 1 addition & 1 deletion src/Aop/Aop/FilterArgAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class FilterArgAop
*
* @return mixed
*/
#[PointCut(type: 2, allow: ['Imi\\Aop\\Annotation\\FilterArg'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Aop\\Annotation\\FilterArg'])]
#[Before]
public function parse(JoinPoint $joinPoint)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Aop/Aop/InjectArgAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
use Imi\Bean\BeanFactory;
use Imi\Util\ClassObject;

#[Aspect(priority: 19940312)]
#[Aspect(priority: \Imi\Util\ImiPriority::IMI_MAX)]
class InjectArgAop
{
/**
* 方法参数注入.
*
* @return mixed
*/
#[PointCut(type: 2, allow: ['Imi\\Aop\\Annotation\\InjectArg'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Aop\\Annotation\\InjectArg'])]
#[Around]
public function parse(AroundJoinPoint $joinPoint)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Async/Aop/AsyncAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AsyncAop
*
* @return mixed
*/
#[PointCut(type: 2, allow: ['Imi\\Async\\Annotation\\Async'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Async\\Annotation\\Async'])]
#[Around]
public function parseAsync(AroundJoinPoint $joinPoint)
{
Expand All @@ -39,7 +39,7 @@ public function parseAsync(AroundJoinPoint $joinPoint)
*
* @return mixed
*/
#[PointCut(type: 2, allow: ['Imi\\Async\\Annotation\\Defer'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Async\\Annotation\\Defer'])]
#[Around]
public function parseDefer(AroundJoinPoint $joinPoint)
{
Expand All @@ -57,7 +57,7 @@ public function parseDefer(AroundJoinPoint $joinPoint)
*
* @return mixed
*/
#[PointCut(type: 2, allow: ['Imi\\Async\\Annotation\\DeferAsync'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Async\\Annotation\\DeferAsync'])]
#[Around]
public function parseDeferAsync(AroundJoinPoint $joinPoint)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Cache/Aop/CacheEvictAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CacheEvictAop
*
* @return mixed
*/
#[PointCut(type: 2, allow: ['Imi\\Cache\\Annotation\\CacheEvict'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Cache\\Annotation\\CacheEvict'])]
#[Around]
public function parseCacheEvict(AroundJoinPoint $joinPoint)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Cache/Aop/CachePutAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CachePutAop
*
* @return mixed
*/
#[PointCut(type: 2, allow: ['Imi\\Cache\\Annotation\\CachePut'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Cache\\Annotation\\CachePut'])]
#[Around]
public function parseCachePut(AroundJoinPoint $joinPoint)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Cache/Aop/CacheableAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CacheableAop
*
* @return mixed
*/
#[PointCut(type: 2, allow: ['Imi\\Cache\\Annotation\\Cacheable'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Cache\\Annotation\\Cacheable'])]
#[Around]
public function parseCacheable(AroundJoinPoint $joinPoint)
{
Expand Down
14 changes: 7 additions & 7 deletions src/Cli/Tools/Imi/Imi.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class Imi extends BaseCommand
* 构建框架预加载缓存.
*/
#[CommandAction(name: 'buildImiRuntime', description: '构建框架预加载缓存')]
#[Option(name: 'file', type: 'string', comments: '可以指定生成到目标文件')]
#[Option(name: 'runtimeMode', type: 'string', comments: '指定运行时模式')]
#[Option(name: 'file', type: \Imi\Cli\ArgType::STRING, comments: '可以指定生成到目标文件')]
#[Option(name: 'runtimeMode', type: \Imi\Cli\ArgType::STRING, comments: '指定运行时模式')]
public function buildImiRuntime(?string $file, ?string $runtimeMode = null): void
{
if (null === $file)
Expand All @@ -39,7 +39,7 @@ public function buildImiRuntime(?string $file, ?string $runtimeMode = null): voi
* 清除框架预加载缓存.
*/
#[CommandAction(name: 'clearImiRuntime', description: '清除框架预加载缓存')]
#[Option(name: 'runtimeMode', type: 'string', comments: '指定运行时模式')]
#[Option(name: 'runtimeMode', type: \Imi\Cli\ArgType::STRING, comments: '指定运行时模式')]
public function clearImiRuntime(?string $runtimeMode = null): void
{
$file = ImiUtil::getModeRuntimePath($runtimeMode, 'imi-runtime');
Expand All @@ -58,9 +58,9 @@ public function clearImiRuntime(?string $runtimeMode = null): void
*/
#[PoolClean]
#[CommandAction(name: 'buildRuntime', description: '构建项目预加载缓存')]
#[Option(name: 'changedFilesFile', type: 'string', comments: '保存改变的文件列表的文件,一行一个')]
#[Option(name: 'confirm', type: 'boolean', default: false, comments: '是否等待输入y后再构建')]
#[Option(name: 'runtimeMode', type: 'string', comments: '指定运行时模式')]
#[Option(name: 'changedFilesFile', type: \Imi\Cli\ArgType::STRING, comments: '保存改变的文件列表的文件,一行一个')]
#[Option(name: 'confirm', type: \Imi\Cli\ArgType::BOOLEAN, default: false, comments: '是否等待输入y后再构建')]
#[Option(name: 'runtimeMode', type: \Imi\Cli\ArgType::STRING, comments: '指定运行时模式')]
public function buildRuntime(?string $changedFilesFile, bool $confirm, ?string $runtimeMode = null): void
{
if (null !== $runtimeMode)
Expand Down Expand Up @@ -95,7 +95,7 @@ public function buildRuntime(?string $changedFilesFile, bool $confirm, ?string $
* 清除项目预加载缓存.
*/
#[CommandAction(name: 'clearRuntime', description: '清除项目预加载缓存')]
#[Option(name: 'runtimeMode', type: 'string', comments: '指定运行时模式')]
#[Option(name: 'runtimeMode', type: \Imi\Cli\ArgType::STRING, comments: '指定运行时模式')]
public function clearRuntime(?string $runtimeMode = null): void
{
$file = \Imi\Util\Imi::getModeRuntimePath($runtimeMode, 'runtime');
Expand Down
4 changes: 2 additions & 2 deletions src/Components/apidoc/src/Tool/DocTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class DocTool extends BaseCommand
* 生成 API 接口文档.
*/
#[CommandAction(name: 'api')]
#[Argument(name: 'to', type: 'string', required: true, comments: '生成到的目标文件名')]
#[Option(name: 'namespace', type: 'string', comments: '指定扫描的命名空间,多个用半角逗号分隔')]
#[Argument(name: 'to', type: \Imi\Cli\ArgType::STRING, required: true, comments: '生成到的目标文件名')]
#[Option(name: 'namespace', type: \Imi\Cli\ArgType::STRING, comments: '指定扫描的命名空间,多个用半角逗号分隔')]
public function api(string $to, ?string $namespace): void
{
$directory = $controllerClasses = [];
Expand Down
4 changes: 2 additions & 2 deletions src/Components/fpm/src/Server/Cli/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class Server extends BaseCommand
* 启动 php 内置服务器.
*/
#[CommandAction(name: 'start', description: '启动 php 内置服务器')]
#[Option(name: 'host', type: 'string', default: '0.0.0.0', comments: '主机名')]
#[Option(name: 'port', type: 'int', default: 8080, comments: '端口')]
#[Option(name: 'host', type: \Imi\Cli\ArgType::STRING, default: '0.0.0.0', comments: '主机名')]
#[Option(name: 'port', type: \Imi\Cli\ArgType::INT, default: 8080, comments: '端口')]
public function start(string $host, int $port): void
{
if (\function_exists('pcntl_signal'))
Expand Down
2 changes: 1 addition & 1 deletion src/Components/grpc/src/Listener/GrpcInit.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Imi\Event\EventParam;
use Imi\Event\IEventListener;

#[Listener(eventName: 'IMI.MAIN_SERVER.WORKER.START', priority: -19940312, one: true)]
#[Listener(eventName: 'IMI.MAIN_SERVER.WORKER.START', priority: \Imi\Util\ImiPriority::IMI_MIN, one: true)]
class GrpcInit implements IEventListener
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Components/grpc/src/Listener/WorkerExit.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Imi\Rpc\Client\Pool\RpcClientSyncPool;
use Imi\Swoole\Util\Coroutine;

#[Listener(eventName: 'IMI.MAIN_SERVER.WORKER.EXIT', priority: -19940312)]
#[Listener(eventName: 'IMI.MAIN_SERVER.WORKER.EXIT', priority: \Imi\Util\ImiPriority::IMI_MIN)]
#[Listener(eventName: 'IMI.PROCESS.END', priority: -19940311)]
class WorkerExit implements IEventListener
{
Expand Down
2 changes: 1 addition & 1 deletion src/Components/jwt/src/Aop/JWTValidationAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class JWTValidationAop
*
* @return mixed
*/
#[PointCut(type: 2, allow: ['Imi\\JWT\\Annotation\\JWTValidation'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\JWT\\Annotation\\JWTValidation'])]
#[Around]
public function around(AroundJoinPoint $joinPoint)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Close事件后置处理.
*/
#[ClassEventListener(className: \Imi\Server\MQTT\Server::class, eventName: 'close', priority: -19940312)]
#[ClassEventListener(className: \Imi\Server\MQTT\Server::class, eventName: 'close', priority: \Imi\Util\ImiPriority::IMI_MIN)]
class AfterClose extends \Imi\Swoole\Server\TcpServer\Listener\AfterClose
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Close事件前置处理.
*/
#[ClassEventListener(className: \Imi\Server\MQTT\Server::class, eventName: 'close', priority: 19940312)]
#[ClassEventListener(className: \Imi\Server\MQTT\Server::class, eventName: 'close', priority: \Imi\Util\ImiPriority::IMI_MAX)]
class BeforeClose extends \Imi\Swoole\Server\TcpServer\Listener\BeforeClose
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Connect事件前置处理.
*/
#[ClassEventListener(className: \Imi\Server\MQTT\Server::class, eventName: 'connect', priority: 19940312)]
#[ClassEventListener(className: \Imi\Server\MQTT\Server::class, eventName: 'connect', priority: \Imi\Util\ImiPriority::IMI_MAX)]
class BeforeConnect extends \Imi\Swoole\Server\TcpServer\Listener\BeforeConnect
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* Receive事件前置处理.
*/
#[ClassEventListener(className: \Imi\Server\MQTT\Server::class, eventName: 'receive', priority: 19940312)]
#[ClassEventListener(className: \Imi\Server\MQTT\Server::class, eventName: 'receive', priority: \Imi\Util\ImiPriority::IMI_MAX)]
class BeforeReceive extends \Imi\Swoole\Server\TcpServer\Listener\BeforeReceive
{
/**
Expand Down
28 changes: 14 additions & 14 deletions src/Components/pgsql/src/Model/Cli/Model/ModelGenerate.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ class ModelGenerate extends BaseCommand
* @param string|bool $config
*/
#[CommandAction(name: 'pgModel')]
#[Argument(name: 'namespace', type: 'string', required: true, comments: '生成的Model所在命名空间')]
#[Argument(name: 'baseClass', type: 'string', default: 'Imi\\Pgsql\\Model\\PgModel', comments: '生成的Model所继承的基类,默认\\Imi\\Model\\Model,可选')]
#[Option(name: 'database', type: 'string', comments: '数据库名,不传则取连接池默认配置的库名')]
#[Option(name: 'poolName', type: 'string', comments: '连接池名称,不传则取默认连接池')]
#[Option(name: 'prefix', type: 'array', default: [], comments: '传值则去除该表前缀,以半角逗号分隔多个前缀')]
#[Option(name: 'include', type: 'array', default: [], comments: '要包含的表名,以半角逗号分隔')]
#[Option(name: 'exclude', type: 'array', default: [], comments: '要排除的表名,以半角逗号分隔')]
#[Option(name: 'override', type: 'string', default: false, comments: '是否覆盖已存在的文件,请慎重!true-全覆盖;false-不覆盖;base-覆盖基类;model-覆盖模型类;默认缺省状态为false')]
#[Option(name: 'config', type: 'string', default: true, comments: '配置文件。true-项目配置;false-忽略配置;php配置文件名-使用该配置文件。默认为true')]
#[Option(name: 'basePath', type: 'string', comments: '指定命名空间对应的基准路径,可选')]
#[Option(name: 'entity', type: 'boolean', default: true, comments: '序列化时是否使用驼峰命名(true or false),默认true,可选')]
#[Option(name: 'lengthCheck', type: 'boolean', default: false, comments: '是否检查字符串字段长度,可选')]
#[Option(name: 'bean', type: 'boolean', comments: '模型对象是否作为 bean 类使用', default: true)]
#[Option(name: 'incrUpdate', type: 'boolean', comments: '模型是否启用增量更新', default: false)]
#[Argument(name: 'namespace', type: \Imi\Cli\ArgType::STRING, required: true, comments: '生成的Model所在命名空间')]
#[Argument(name: 'baseClass', type: \Imi\Cli\ArgType::STRING, default: 'Imi\\Pgsql\\Model\\PgModel', comments: '生成的Model所继承的基类,默认\\Imi\\Model\\Model,可选')]
#[Option(name: 'database', type: \Imi\Cli\ArgType::STRING, comments: '数据库名,不传则取连接池默认配置的库名')]
#[Option(name: 'poolName', type: \Imi\Cli\ArgType::STRING, comments: '连接池名称,不传则取默认连接池')]
#[Option(name: 'prefix', type: \Imi\Cli\ArgType::ARRAY, default: [], comments: '传值则去除该表前缀,以半角逗号分隔多个前缀')]
#[Option(name: 'include', type: \Imi\Cli\ArgType::ARRAY, default: [], comments: '要包含的表名,以半角逗号分隔')]
#[Option(name: 'exclude', type: \Imi\Cli\ArgType::ARRAY, default: [], comments: '要排除的表名,以半角逗号分隔')]
#[Option(name: 'override', type: \Imi\Cli\ArgType::STRING, default: false, comments: '是否覆盖已存在的文件,请慎重!true-全覆盖;false-不覆盖;base-覆盖基类;model-覆盖模型类;默认缺省状态为false')]
#[Option(name: 'config', type: \Imi\Cli\ArgType::STRING, default: true, comments: '配置文件。true-项目配置;false-忽略配置;php配置文件名-使用该配置文件。默认为true')]
#[Option(name: 'basePath', type: \Imi\Cli\ArgType::STRING, comments: '指定命名空间对应的基准路径,可选')]
#[Option(name: 'entity', type: \Imi\Cli\ArgType::BOOLEAN, default: true, comments: '序列化时是否使用驼峰命名(true or false),默认true,可选')]
#[Option(name: 'lengthCheck', type: \Imi\Cli\ArgType::BOOLEAN, default: false, comments: '是否检查字符串字段长度,可选')]
#[Option(name: 'bean', type: \Imi\Cli\ArgType::BOOLEAN, comments: '模型对象是否作为 bean 类使用', default: true)]
#[Option(name: 'incrUpdate', type: \Imi\Cli\ArgType::BOOLEAN, comments: '模型是否启用增量更新', default: false)]
public function generate(string $namespace, string $baseClass, ?string $database, ?string $poolName, array $prefix, array $include, array $exclude, $override, $config, ?string $basePath, bool $entity, bool $lengthCheck, bool $bean, bool $incrUpdate): void
{
$db = Db::getInstance($poolName);
Expand Down
6 changes: 3 additions & 3 deletions src/Components/queue/src/Tool/QueueTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QueueTool extends BaseCommand
* 获取队列状态
*/
#[CommandAction(name: 'status', description: '获取队列状态')]
#[Argument(name: 'queue', type: 'string', required: true)]
#[Argument(name: 'queue', type: \Imi\Cli\ArgType::STRING, required: true)]
public function status(string $queue): void
{
fwrite(\STDOUT, json_encode(Queue::getQueue($queue)->status(), \JSON_PRETTY_PRINT | \JSON_THROW_ON_ERROR | \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE) . \PHP_EOL);
Expand All @@ -27,7 +27,7 @@ public function status(string $queue): void
* 将失败消息恢复到队列.
*/
#[CommandAction(name: 'restoreFail', description: '将失败消息恢复到队列')]
#[Argument(name: 'queue', type: 'string', required: true)]
#[Argument(name: 'queue', type: \Imi\Cli\ArgType::STRING, required: true)]
public function restoreFail(string $queue): void
{
fwrite(\STDOUT, Queue::getQueue($queue)->restoreFailMessages() . \PHP_EOL);
Expand All @@ -37,7 +37,7 @@ public function restoreFail(string $queue): void
* 将超时消息恢复到队列.
*/
#[CommandAction(name: 'restoreTimeout', description: '将超时消息恢复到队列')]
#[Argument(name: 'queue', type: 'string', required: true)]
#[Argument(name: 'queue', type: \Imi\Cli\ArgType::STRING, required: true)]
public function restoreTimeout(string $queue): void
{
fwrite(\STDOUT, Queue::getQueue($queue)->restoreTimeoutMessages() . \PHP_EOL);
Expand Down
2 changes: 1 addition & 1 deletion src/Components/rate-limit/src/Aspect/RateLimitAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class RateLimitAspect
*
* @return mixed
*/
#[PointCut(type: 2, allow: ['Imi\\RateLimit\\Annotation\\RateLimit'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\RateLimit\\Annotation\\RateLimit'])]
#[Around]
public function parse(AroundJoinPoint $joinPoint)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Components/rate-limit/src/Aspect/WorkerLimitAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class WorkerLimitAspect
*
* @return mixed
*/
#[PointCut(type: 2, allow: ['Imi\\RateLimit\\Annotation\\WorkerLimit'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\RateLimit\\Annotation\\WorkerLimit'])]
#[Around]
public function parse(AroundJoinPoint $joinPoint)
{
Expand Down
16 changes: 8 additions & 8 deletions src/Components/roadrunner/src/Server/Cli/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class Server extends BaseCommand
* 启动 RoadRunner 服务.
*/
#[CommandAction(name: 'start', description: '启动 RoadRunner 服务')]
#[Option(name: 'workDir', shortcut: 'w', type: 'string', comments: '工作路径')]
#[Option(name: 'config', shortcut: 'c', type: 'string', comments: '配置文件路径,默认 .rr.yaml')]
#[Option(name: 'workDir', shortcut: 'w', type: \Imi\Cli\ArgType::STRING, comments: '工作路径')]
#[Option(name: 'config', shortcut: 'c', type: \Imi\Cli\ArgType::STRING, comments: '配置文件路径,默认 .rr.yaml')]
public function start(?string $workDir, ?string $config): void
{
$server = $this->createServer($workDir, $config);
Expand All @@ -33,8 +33,8 @@ public function start(?string $workDir, ?string $config): void
* 停止 RoadRunner 服务.
*/
#[CommandAction(name: 'stop', description: '停止 RoadRunner 服务')]
#[Option(name: 'workDir', shortcut: 'w', type: 'string', comments: '工作路径')]
#[Option(name: 'config', shortcut: 'c', type: 'string', comments: '配置文件路径,默认 .rr.yaml')]
#[Option(name: 'workDir', shortcut: 'w', type: \Imi\Cli\ArgType::STRING, comments: '工作路径')]
#[Option(name: 'config', shortcut: 'c', type: \Imi\Cli\ArgType::STRING, comments: '配置文件路径,默认 .rr.yaml')]
public function stop(?string $workDir, ?string $config): void
{
$server = $this->createServer($workDir, $config);
Expand All @@ -45,8 +45,8 @@ public function stop(?string $workDir, ?string $config): void
* 重新加载 RoadRunner 服务.
*/
#[CommandAction(name: 'reload', description: '重新加载 RoadRunner 服务')]
#[Option(name: 'workDir', shortcut: 'w', type: 'string', comments: '工作路径')]
#[Option(name: 'config', shortcut: 'c', type: 'string', comments: '配置文件路径,默认 .rr.yaml')]
#[Option(name: 'workDir', shortcut: 'w', type: \Imi\Cli\ArgType::STRING, comments: '工作路径')]
#[Option(name: 'config', shortcut: 'c', type: \Imi\Cli\ArgType::STRING, comments: '配置文件路径,默认 .rr.yaml')]
public function reload(?string $workDir, ?string $config): void
{
$server = $this->createServer($workDir, $config);
Expand All @@ -57,8 +57,8 @@ public function reload(?string $workDir, ?string $config): void
* 热更新.
*/
#[CommandAction(name: 'hotUpdate', description: '热更新')]
#[Option(name: 'workDir', shortcut: 'w', type: 'string', comments: '工作路径')]
#[Option(name: 'config', shortcut: 'c', type: 'string', comments: '配置文件路径,默认 .rr.yaml')]
#[Option(name: 'workDir', shortcut: 'w', type: \Imi\Cli\ArgType::STRING, comments: '工作路径')]
#[Option(name: 'config', shortcut: 'c', type: \Imi\Cli\ArgType::STRING, comments: '配置文件路径,默认 .rr.yaml')]
public function hotUpdate(?string $workDir, ?string $config): void
{
$this->createServer($workDir, $config);
Expand Down
4 changes: 2 additions & 2 deletions src/Components/snowflake/tests/Model/ArticleId.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ArticleId extends Model
/**
* id.
*/
#[Column(name: 'id', type: 'int', length: 10, nullable: false, default: '', isPrimaryKey: true, primaryKeyIndex: 0, isAutoIncrement: true, unsigned: true)]
#[Column(name: 'id', type: \Imi\Cli\ArgType::INT, length: 10, nullable: false, default: '', isPrimaryKey: true, primaryKeyIndex: 0, isAutoIncrement: true, unsigned: true)]
#[Id]
protected ?int $id = null;

Expand Down Expand Up @@ -58,7 +58,7 @@ public function setId($id)
/**
* member_id.
*/
#[Column(name: 'member_id', type: 'int', length: 10, nullable: false, default: '0', unsigned: true)]
#[Column(name: 'member_id', type: \Imi\Cli\ArgType::INT, length: 10, nullable: false, default: '0', unsigned: true)]
protected ?int $memberId = 0;

/**
Expand Down
Loading

0 comments on commit 5381c00

Please sign in to comment.