feat: redesign crypto market with synced favorites
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace app\api\validate;
|
||||
|
||||
use app\common\validate\BaseValidate;
|
||||
|
||||
class CryptoValidate extends BaseValidate
|
||||
{
|
||||
protected $rule = [
|
||||
'symbol' => 'require|alphaNum|max:20',
|
||||
];
|
||||
|
||||
protected $message = [
|
||||
'symbol.require' => '币种不能为空',
|
||||
'symbol.alphaNum' => '币种格式错误',
|
||||
'symbol.max' => '币种格式错误',
|
||||
];
|
||||
|
||||
public function sceneFavorite()
|
||||
{
|
||||
return $this->only(['symbol']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user