You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
725 B
32 lines
725 B
<?php |
|
/** |
|
* |
|
* Tender.php |
|
* User: ChenLong |
|
* DateTime: 2020-12-21 15:35:23 |
|
*/ |
|
|
|
namespace app\common\validate; |
|
|
|
use app\common\BaseValidate; |
|
|
|
/** |
|
* Class Tender |
|
* @package app\common\validate\Tender |
|
* @author chenlong <vip_chenlong@163.com> |
|
*/ |
|
class Tender extends BaseValidate |
|
{ |
|
protected $rule = [ |
|
'id|' => 'require|number', |
|
'member_id|会员ID' => 'require|number', |
|
'bidding_id|标书ID' => 'require|number', |
|
'tender_price|投标价格' => 'require|float', |
|
'update_file|投标文件' => 'require', |
|
]; |
|
|
|
protected $scene = [ |
|
'add' => ['member_id', 'bidding_id', 'tender_price'], |
|
'edit' => ['id', 'member_id', 'bidding_id', 'tender_price'], |
|
]; |
|
}
|
|
|