feat: redesign crypto market with synced favorites

This commit is contained in:
hajimi
2026-08-02 02:32:20 +08:00
parent b5b59d7bf1
commit cd054d4db6
9 changed files with 1078 additions and 210 deletions
@@ -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']);
}
}