IntermediaryNeedValidate.php 1.0 KB
<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace api\portal\validate;

use think\Validate;

class IntermediaryNeedValidate extends Validate
{
    protected $rule = [
        'need_id' => 'require',
        'housing_price' => 'require',
    ];
    protected $message = [
        'need_id.require' => '需求id不能为空!',
        'housing_price.require' => '房价不能为空!',

    ];

    protected $scene = [
        'offer'  => ['need_id','housing_price'],

    ];

}