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.
43 lines
1.3 KiB
43 lines
1.3 KiB
3 years ago
|
<?php
|
||
|
/**
|
||
|
*
|
||
|
* Bidding.php
|
||
|
* User: ChenLong
|
||
|
* DateTime: 2020-12-21 14:07:08
|
||
|
*/
|
||
|
|
||
|
namespace app\common\validate;
|
||
|
|
||
|
use app\common\BaseValidate;
|
||
|
|
||
|
/**
|
||
|
* Class Bidding
|
||
|
* @package app\common\validate\Bidding
|
||
|
* @author chenlong <vip_chenlong@163.com>
|
||
|
*/
|
||
|
class Bidding extends BaseValidate
|
||
|
{
|
||
|
protected $rule = [
|
||
|
'id|' => 'require|number',
|
||
|
'title|标题' => 'require',
|
||
|
'province|省份' => 'require',
|
||
|
'city|城市' => 'require',
|
||
|
'project_title|项目名称' => 'require',
|
||
|
'purchase_unit|采购单位' => 'require',
|
||
|
'contact_person|联系人' => 'require',
|
||
|
'contact_person_tel|联系人电话' => 'require|mobile',
|
||
|
'content|' => 'require',
|
||
|
'file|标书文件' => 'require',
|
||
|
'status|状态' => 'require|number|in:0,1,2',
|
||
|
'is_urgent|是否紧急' => 'require|number|in:0,1',
|
||
|
'tag_ids|标签ID' => 'require',
|
||
|
'open_bid_time|开标时间' => 'require',
|
||
|
'sort|排序' => 'number',
|
||
|
];
|
||
|
|
||
|
protected $scene = [
|
||
|
'add' => ['sort','title', 'project_title', 'purchase_unit', 'contact_person', 'contact_person_tel', 'status', 'is_urgent', 'open_bid_time'],
|
||
|
'edit' => ['id', 'sort','title', 'project_title', 'purchase_unit', 'contact_person', 'contact_person_tel', 'status', 'is_urgent', 'open_bid_time'],
|
||
|
];
|
||
|
}
|