building-sign/app/validate/Auction.php

18 lines
342 B
PHP
Raw Permalink Normal View History

2023-01-09 08:41:41 +00:00
<?php
namespace app\validate;
use think\Validate;
class Auction extends Validate
{
protected $rule = [
'id|ID' => 'require',
'price|价格' => 'require|number',
];
protected $scene = [
'fetch_auction_log' => ['id'], //获取竞拍记录
'offer' => ['id', 'price'], //获取竞拍记录
];
}