作者 何书鹏
1 个管道 的构建 通过 耗费 6 秒

获取订单数量

... ... @@ -41,6 +41,28 @@ class Order extends Api
}
/**
* 我的订单-订单数量
* @ApiMethod (GET)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiReturnParams (name="code", type="integer", required=true, sample="0")
* @ApiReturnParams (name="msg", type="string", required=true, sample="返回成功")
* @ApiReturnParams (name="data", type="object", description="扩展数据返回")
* @ApiReturn ({
'code':'1',
'msg':'返回成功'
})
*/
public function getOrderNum()
{
$this->success(__('成功'),[
'payment_num' => count($this->model->getList($this->user['id'], 'payment')),
'delivery_num' => count($this->model->getList($this->user['id'], 'delivery')),
'receive_num' => count($this->model->getList($this->user['id'], 'receive')),
'appraise_num' => count($this->model->getList($this->user['id'], 'appraise')),
]);
}
/**
* 我的订单-修改地址
* @ApiMethod (GET)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
... ...
此 diff 太大无法显示。