first commit
This commit is contained in:
42
Swoft_BackEndApi/app/Utils/bmob/lib/BmobBql.class.php
Normal file
42
Swoft_BackEndApi/app/Utils/bmob/lib/BmobBql.class.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
include_once 'BmobRestClient.class.php';
|
||||
|
||||
/**
|
||||
* BmobUser batch对象类
|
||||
* @author karvinchen
|
||||
* @license http://www.gnu.org/copyleft/lesser.html Distributed under the Lesser General Public License (LGPL)
|
||||
*/
|
||||
class BmobBql extends BmobRestClient
|
||||
{
|
||||
|
||||
public function __construct($class = '')
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 批量操作
|
||||
* @param array $data 查询条件
|
||||
*/
|
||||
public function query($data)
|
||||
{
|
||||
if (!empty($data)) {
|
||||
|
||||
$this->data["requests"] = $data;
|
||||
$sendRequest = $this->sendRequest(array(
|
||||
'method' => 'GET',
|
||||
'sendRequestUrl' => 'cloudQuery',
|
||||
'urlParams' => $data,
|
||||
));
|
||||
return $sendRequest;
|
||||
} else {
|
||||
$this->throwError('查询条件不能为空');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user