forked from imiphp/imi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
181 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Imi\Model\Annotation; | ||
|
||
use Imi\Bean\Annotation\Base; | ||
|
||
/** | ||
* 创建时间. | ||
* | ||
* 有此注解就表示启用. | ||
*/ | ||
#[\Attribute(\Attribute::TARGET_PROPERTY)] | ||
class CreateTime extends Base | ||
{ | ||
public function __construct( | ||
/** | ||
* 时间精度. | ||
* | ||
* 仅 bigint 有效,例:1000为毫秒 | ||
*/ | ||
public int $timeAccuracy = 1000 | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Imi\Model\Annotation; | ||
|
||
use Imi\Bean\Annotation\Base; | ||
|
||
/** | ||
* 字符串字段分割为列表. | ||
*/ | ||
#[\Attribute(\Attribute::TARGET_PROPERTY)] | ||
class ListSeparator extends Base | ||
{ | ||
public function __construct( | ||
/** | ||
* 用于分割的字符串. | ||
*/ | ||
public string $separator = ',' | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Imi\Model\Annotation; | ||
|
||
use Imi\Bean\Annotation\Base; | ||
|
||
/** | ||
* 更新时间. | ||
* | ||
* 有此注解就表示启用. | ||
*/ | ||
#[\Attribute(\Attribute::TARGET_PROPERTY)] | ||
class UpdateTime extends Base | ||
{ | ||
public function __construct( | ||
/** | ||
* 时间精度. | ||
* | ||
* 仅 bigint 有效,例:1000为毫秒 | ||
*/ | ||
public int $timeAccuracy = 1000 | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.