京东云

This commit is contained in:
“wanyongkang”
2024-05-28 17:04:50 +08:00
parent f644932afb
commit f3c7432100
672 changed files with 209344 additions and 6593 deletions

View File

@@ -0,0 +1,21 @@
# 更新历史 #
API版本0.1.4
2018-11-14 version: 0.1.0
1. 新增noticeList api
2019-02-21 version: 0.1.1
1. 新增noticeDetail api
2. 新增linkList api
2019-03-20 version0.1.2
1. 新增describeProducts api
2. 新增describeProduct api
3. 新增根据父id获取products
2019-04-15 version0.1.3
1. 新增saveSearchData api
2. 新增deleteSearchData api
2019-05-07 version: 0.1.4
1. 删除products接口 api

View File

@@ -0,0 +1,50 @@
<?php
/**
* Portal
*
* @category Jdcloud
* @package Jdcloud\Portal
* @author Jdcloud <jdcloud-api@jd.com>
* @license Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0
* @link https://www.jdcloud.com/help/faq
*/
namespace Jdcloud\Portal;
use Jdcloud\JdCloudClient;
use Jdcloud\Api\Service;
use Jdcloud\Api\DocModel;
use Jdcloud\Api\ApiProvider;
use Jdcloud\PresignUrlMiddleware;
/**
* Client used to interact with portal.
*
* @method \Jdcloud\Result describeProduct(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeProductAsync(array $args = [])
* @method \Jdcloud\Result describeProductsById(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeProductsByIdAsync(array $args = [])
*/
class PortalClient extends JdCloudClient
{
public function __construct(array $args)
{
$args['with_resolved'] = function (array $args) {
$this->getHandlerList()->appendInit(
PresignUrlMiddleware::wrap(
$this,
$args['endpoint_provider'],
[
'operations' => [
],
'service' => 'portal',
'presign_param' => 'PresignedUrl',
]
),
'portal'
);
};
parent::__construct($args);
}
}