*/ 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'], ]; }