修改登陆事件
This commit is contained in:
42
extend/catcher/generate/template/Request.php
Normal file
42
extend/catcher/generate/template/Request.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
namespace JaguarJack\Generator\Template;
|
||||
|
||||
trait Request
|
||||
{
|
||||
/**
|
||||
* 规则
|
||||
*
|
||||
* @time 2020年04月24日
|
||||
* @return string
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return <<<EOT
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
{rules}
|
||||
];
|
||||
}
|
||||
EOT;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 消息
|
||||
*
|
||||
* @time 2020年04月24日
|
||||
* @return string
|
||||
*/
|
||||
public function message()
|
||||
{
|
||||
return <<<EOT
|
||||
public function message(): array
|
||||
{
|
||||
return [
|
||||
{messages}
|
||||
];
|
||||
}
|
||||
EOT;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user