12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace catchAdmin\domain\support\driver\aliyun;
- use catchAdmin\domain\support\contract\DomainActionInterface;
- use catchAdmin\domain\support\driver\ApiTrait;
- use catchAdmin\domain\support\Transformer;
- class Domain implements DomainActionInterface
- {
- use ApiTrait;
- public function getList(array $params)
- {
-
- return Transformer::aliyunDomainPaginate($this->get([
- 'Action' => 'DescribeDomains',
- 'StarMark' => true,
- 'SearchModel' => 'LIKE',
- 'PageNumber' => $params['page'] ?? 1,
- 'PageSize' => $params['limit'] ?? 20,
- ]));
- }
- public function store(array $params)
- {
-
- }
- public function delete(array $params)
- {
-
- return $this->get([
- 'Action' => 'DeleteDomain',
- 'DomainName' => $params['name'],
- ]);
- }
- public function read($name)
- {
-
- return $this->get([
- 'Action' => 'DescribeDomainInfo',
- 'DomainName' => $name
- ]);
- }
- }
|