作者 lackoxygen

feat:结构

正在显示 70 个修改的文件 包含 711 行增加1084 行删除
@@ -440,7 +440,7 @@ class Main @@ -440,7 +440,7 @@ class Main
440 440
441 $metaMethods = array_map(function ($target) { 441 $metaMethods = array_map(function ($target) {
442 $name = ucfirst($target); 442 $name = ucfirst($target);
443 - $interface = sprintf('Passage\\%s\\%sInterface', $name, $name); 443 + $interface = sprintf('Request\\%s\\%sInterface', $name, $name);
444 $method = lcfirst($target); 444 $method = lcfirst($target);
445 return ' * @method ' . $interface . ' ' . $method . '()'; 445 return ' * @method ' . $interface . ' ' . $method . '()';
446 }, $targets); 446 }, $targets);
@@ -477,9 +477,9 @@ class Main @@ -477,9 +477,9 @@ class Main
477 477
478 namespace Lackoxygen\TiktokShop\Facade; 478 namespace Lackoxygen\TiktokShop\Facade;
479 479
480 -use Lackoxygen\TiktokShop\Passage; 480 +use Lackoxygen\TiktokShop\Request;
481 use Illuminate\Support\Facades\Facade; 481 use Illuminate\Support\Facades\Facade;
482 -use Lackoxygen\TiktokShop\Passage\Verify; 482 +use Lackoxygen\TiktokShop\Support\Verify;
483 use Lackoxygen\TiktokShop\TiktokShop as TiktokShopKernel; 483 use Lackoxygen\TiktokShop\TiktokShop as TiktokShopKernel;
484 484
485 \${ANNOTATE} 485 \${ANNOTATE}
@@ -601,7 +601,7 @@ class CodeWriter @@ -601,7 +601,7 @@ class CodeWriter
601 601
602 global $src_path; 602 global $src_path;
603 603
604 - $baseDir = $src_path . '/Passage'; 604 + $baseDir = $src_path . '/Request';
605 605
606 $directory = $baseDir . '/' . $class->toArray()['name']; 606 $directory = $baseDir . '/' . $class->toArray()['name'];
607 607
@@ -626,9 +626,7 @@ class CodeGenerateInterface @@ -626,9 +626,7 @@ class CodeGenerateInterface
626 { 626 {
627 protected static string $template = <<<temp 627 protected static string $template = <<<temp
628 <?php 628 <?php
629 -namespace Lackoxygen\TiktokShop\Passage\\\${SECTION};  
630 -  
631 -use Lackoxygen\TiktokShop\Passage\ResultSet; 629 +namespace Lackoxygen\TiktokShop\Request\\\${SECTION};
632 630
633 /** 631 /**
634 * @note \${ANNOTATE} 632 * @note \${ANNOTATE}
@@ -721,11 +719,11 @@ class CodeGenerateClass @@ -721,11 +719,11 @@ class CodeGenerateClass
721 protected static string $template = <<<temp 719 protected static string $template = <<<temp
722 <?php 720 <?php
723 721
724 -namespace Lackoxygen\TiktokShop\Passage\\\${SECTION}; 722 +namespace Lackoxygen\TiktokShop\Request\\\${SECTION};
725 723
726 -use Lackoxygen\TiktokShop\Passage\Passage; 724 +use Lackoxygen\TiktokShop\Request\Request;
727 725
728 -class \${NAME} extends Passage implements \${INTERFACE} 726 +class \${NAME} extends Request implements \${INTERFACE}
729 { 727 {
730 \${METHOD} 728 \${METHOD}
731 } 729 }
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Attribute\Config;
  4 +
  5 +class Config
  6 +{
  7 + /**
  8 + * @var Option
  9 + */
  10 + protected Option $config;
  11 +
  12 + /**
  13 + * @param Option $option
  14 + */
  15 + public function __construct(Option $option)
  16 + {
  17 + $this->config = $option;
  18 + }
  19 +
  20 + /**
  21 + * @return Option
  22 + */
  23 + public function getConfig(): Option
  24 + {
  25 + return clone $this->config;
  26 + }
  27 +}
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Attribute; 3 +namespace Lackoxygen\TiktokShop\Attribute\Config;
4 4
5 -class Config 5 +class Option
6 { 6 {
7 - private string $appKey = ''; 7 + /**
  8 + * @var string
  9 + */
  10 + private string $appKey;
8 11
9 - private string $appSecret = ''; 12 + /**
  13 + * @var string
  14 + */
  15 + private string $appSecret;
10 16
11 - private bool $enableMock = false; 17 + /**
  18 + * @var bool
  19 + */
  20 + private bool $enableMock;
12 21
13 - private string $baseUri = ''; 22 + /**
  23 + * @var string
  24 + */
  25 + private string $baseUri;
14 26
  27 + /**
  28 + * @var string
  29 + */
15 private string $accessToken = ''; 30 private string $accessToken = '';
16 31
  32 + /**
  33 + * @var float
  34 + */
17 private float $timeout; 35 private float $timeout;
18 36
  37 + /**
  38 + * @param string $appKey
  39 + * @param string $appSecret
  40 + * @param string $baseUri
  41 + * @param float $timeout
  42 + * @param bool $enableMock
  43 + */
19 public function __construct( 44 public function __construct(
20 string $appKey = '', 45 string $appKey = '',
21 string $appSecret = '', 46 string $appSecret = '',
@@ -2,39 +2,44 @@ @@ -2,39 +2,44 @@
2 2
3 namespace Lackoxygen\TiktokShop\Attribute; 3 namespace Lackoxygen\TiktokShop\Attribute;
4 4
5 -class Request 5 +use Lackoxygen\TiktokShop\Attribute\Config\Config;
  6 +
  7 +class Request extends Config
6 { 8 {
  9 + /**
  10 + * @var string
  11 + */
7 private string $service = ''; 12 private string $service = '';
8 13
  14 + /**
  15 + * @var string
  16 + */
9 private string $timestamp = ''; 17 private string $timestamp = '';
10 18
  19 + /**
  20 + * @var string
  21 + */
11 private string $v = '2'; 22 private string $v = '2';
12 23
  24 + /**
  25 + * @var string
  26 + */
13 private string $method = 'GET'; 27 private string $method = 'GET';
14 28
  29 + /**
  30 + * @var array
  31 + */
15 private array $params = []; 32 private array $params = [];
16 33
17 - protected string $path = '';  
18 -  
19 - private bool $signature = true;  
20 -  
21 - private Config $config;  
22 -  
23 /** 34 /**
24 - * @param mixed $config 35 + * @var string
25 */ 36 */
26 - public function setConfig(Config $config): void  
27 - {  
28 - $this->config = $config;  
29 - } 37 + protected string $path = '';
30 38
31 /** 39 /**
32 - * @return mixed 40 + * @var bool
33 */ 41 */
34 - public function getConfig(): Config  
35 - {  
36 - return $this->config;  
37 - } 42 + private bool $signature = true;
38 43
39 /** 44 /**
40 * @return string 45 * @return string
1 -<?php  
2 -  
3 -namespace Lackoxygen\TiktokShop\Command;  
4 -  
5 -use Lackoxygen\TiktokShop\Supervisor\Session\SessionHeart;  
6 -use Illuminate\Console\Command;  
7 -  
8 -class RefreshToken extends Command  
9 -{  
10 - /**  
11 - * The name and signature of the console command.  
12 - *  
13 - * @var string  
14 - */  
15 - protected $signature = 'tiktok-shop:refresh.token';  
16 -  
17 - /**  
18 - * The console command description.  
19 - *  
20 - * @var string  
21 - */  
22 - protected $description = 'The refresh tiktok shop token';  
23 -  
24 - /**  
25 - * Create a new command instance.  
26 - *  
27 - * @return void  
28 - */  
29 - public function __construct()  
30 - {  
31 - parent::__construct();  
32 - }  
33 -  
34 - /**  
35 - * Execute the console command.  
36 - *  
37 - * @return int  
38 - */  
39 - public function handle()  
40 - {  
41 - SessionHeart::new()->keepalive();  
42 -  
43 - return 0;  
44 - }  
45 -}  
1 -<?php  
2 -  
3 -namespace Lackoxygen\TiktokShop\Contracts;  
4 -  
5 -interface SessionInterface  
6 -{  
7 - public function id(): string;  
8 -  
9 - public function unEffective(): bool;  
10 -  
11 - public function effective(): bool;  
12 -  
13 - public function discard();  
14 -  
15 - public function watch(): bool;  
16 -  
17 - public function appKey(): string;  
18 -}  
@@ -2,38 +2,38 @@ @@ -2,38 +2,38 @@
2 2
3 namespace Lackoxygen\TiktokShop\Facade; 3 namespace Lackoxygen\TiktokShop\Facade;
4 4
5 -use Lackoxygen\TiktokShop\Passage; 5 +use Lackoxygen\TiktokShop\Request;
6 use Illuminate\Support\Facades\Facade; 6 use Illuminate\Support\Facades\Facade;
7 -use Lackoxygen\TiktokShop\Passage\Verify; 7 +use Lackoxygen\TiktokShop\Support\Verify;
8 use Lackoxygen\TiktokShop\TiktokShop as TiktokShopKernel; 8 use Lackoxygen\TiktokShop\TiktokShop as TiktokShopKernel;
9 9
10 /** 10 /**
11 * @method static TiktokShopKernel setAccessToken(string $accessToken) 11 * @method static TiktokShopKernel setAccessToken(string $accessToken)
12 * @method static TiktokShopKernel use ($options) 12 * @method static TiktokShopKernel use ($options)
13 * @method static Verify verify() 13 * @method static Verify verify()
14 - * @method static Passage\Pigeon\PigeonInterface pigeon()  
15 - * @method static Passage\Sms\SmsInterface sms()  
16 - * @method static Passage\SupplyChain\SupplyChainInterface supplyChain()  
17 - * @method static Passage\Topup\TopupInterface topup()  
18 - * @method static Passage\OpenCloud\OpenCloudInterface openCloud()  
19 - * @method static Passage\Btas\BtasInterface btas()  
20 - * @method static Passage\Recycle\RecycleInterface recycle()  
21 - * @method static Passage\Member\MemberInterface member()  
22 - * @method static Passage\Buyin\BuyinInterface buyin()  
23 - * @method static Passage\Yunc\YuncInterface yunc()  
24 - * @method static Passage\OrderCode\OrderCodeInterface orderCode()  
25 - * @method static Passage\Coupons\CouponsInterface coupons()  
26 - * @method static Passage\Crossborder\CrossborderInterface crossborder()  
27 - * @method static Passage\Iop\IopInterface iop()  
28 - * @method static Passage\Antispam\AntispamInterface antispam()  
29 - * @method static Passage\Token\TokenInterface token()  
30 - * @method static Passage\Order\OrderInterface order()  
31 - * @method static Passage\AfterSale\AfterSaleInterface afterSale()  
32 - * @method static Passage\Logistics\LogisticsInterface logistics()  
33 - * @method static Passage\Warehouse\WarehouseInterface warehouse()  
34 - * @method static Passage\Product\ProductInterface product()  
35 - * @method static Passage\Material\MaterialInterface material()  
36 - * @method static Passage\Address\AddressInterface address() 14 + * @method static Request\Pigeon\PigeonInterface pigeon()
  15 + * @method static Request\Sms\SmsInterface sms()
  16 + * @method static Request\SupplyChain\SupplyChainInterface supplyChain()
  17 + * @method static Request\Topup\TopupInterface topup()
  18 + * @method static Request\OpenCloud\OpenCloudInterface openCloud()
  19 + * @method static Request\Btas\BtasInterface btas()
  20 + * @method static Request\Recycle\RecycleInterface recycle()
  21 + * @method static Request\Member\MemberInterface member()
  22 + * @method static Request\Buyin\BuyinInterface buyin()
  23 + * @method static Request\Yunc\YuncInterface yunc()
  24 + * @method static Request\OrderCode\OrderCodeInterface orderCode()
  25 + * @method static Request\Coupons\CouponsInterface coupons()
  26 + * @method static Request\Crossborder\CrossborderInterface crossborder()
  27 + * @method static Request\Iop\IopInterface iop()
  28 + * @method static Request\Antispam\AntispamInterface antispam()
  29 + * @method static Request\Token\TokenInterface token()
  30 + * @method static Request\Order\OrderInterface order()
  31 + * @method static Request\AfterSale\AfterSaleInterface afterSale()
  32 + * @method static Request\Logistics\LogisticsInterface logistics()
  33 + * @method static Request\Warehouse\WarehouseInterface warehouse()
  34 + * @method static Request\Product\ProductInterface product()
  35 + * @method static Request\Material\MaterialInterface material()
  36 + * @method static Request\Address\AddressInterface address()
37 */ 37 */
38 38
39 class TiktokShop extends Facade 39 class TiktokShop extends Facade
@@ -2,16 +2,13 @@ @@ -2,16 +2,13 @@
2 2
3 namespace Lackoxygen\TiktokShop\Mock; 3 namespace Lackoxygen\TiktokShop\Mock;
4 4
5 -use Lackoxygen\TiktokShop\Attribute\Config;  
6 -use Lackoxygen\TiktokShop\Attribute\Request;  
7 -use Lackoxygen\TiktokShop\Exception\ClientException;  
8 -use Lackoxygen\TiktokShop\Exception\MockException;  
9 -use Lackoxygen\TiktokShop\Util\Json;  
10 use GuzzleHttp\Client; 5 use GuzzleHttp\Client;
11 use GuzzleHttp\Exception\GuzzleException; 6 use GuzzleHttp\Exception\GuzzleException;
12 use GuzzleHttp\Psr7\Response; 7 use GuzzleHttp\Psr7\Response;
13 use GuzzleHttp\RequestOptions; 8 use GuzzleHttp\RequestOptions;
14 -use Illuminate\Support\Arr; 9 +use Lackoxygen\TiktokShop\Exception\ClientException;
  10 +use Lackoxygen\TiktokShop\Exception\MockException;
  11 +use Lackoxygen\TiktokShop\Util\Json;
15 12
16 class Mock 13 class Mock
17 { 14 {
1 -<?php  
2 -  
3 -namespace Lackoxygen\TiktokShop\Passage;  
4 -  
5 -use Lackoxygen\TiktokShop\Attribute\Config;  
6 -use Lackoxygen\TiktokShop\Exception\ClientException;  
7 -  
8 -class PassageProxy  
9 -{  
10 - protected string $passage;  
11 -  
12 - protected Config $config;  
13 -  
14 - protected function __construct(string $passage, Config $config)  
15 - {  
16 - $this->passage = $passage;  
17 -  
18 - $this->config = $config;  
19 - }  
20 -  
21 - public static function proxy(string $passage, Config $config): PassageProxy  
22 - {  
23 - return new self($passage, $config);  
24 - }  
25 -  
26 - /**  
27 - * @throws ClientException  
28 - */  
29 - public function __call($name, $arguments): ResultSet  
30 - {  
31 - /**  
32 - * @var Passage $passage  
33 - */  
34 - $passage = new $this->passage($this->config, $name);  
35 -  
36 - $result = call_user_func_array([$passage, $name], $arguments);  
37 -  
38 - if (!is_null($result)) {  
39 - return new ResultSet($result);  
40 - }  
41 -  
42 - return new ResultSet($passage());  
43 - }  
44 -}  
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Address; 3 +namespace Lackoxygen\TiktokShop\Request\Address;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Address extends Passage implements AddressInterface 7 +class Address extends Request implements AddressInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Address;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\Address;
6 4
7 /** 5 /**
8 * @note 店铺API 6 * @note 店铺API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\AfterSale; 3 +namespace Lackoxygen\TiktokShop\Request\AfterSale;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class AfterSale extends Passage implements AfterSaleInterface 7 +class AfterSale extends Request implements AfterSaleInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\AfterSale;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\AfterSale;
6 4
7 /** 5 /**
8 * @note 售后退款API 6 * @note 售后退款API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Antispam; 3 +namespace Lackoxygen\TiktokShop\Request\Antispam;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Antispam extends Passage implements AntispamInterface 7 +class Antispam extends Request implements AntispamInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Antispam;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\Antispam;
6 4
7 /** 5 /**
8 * @note 风控安全API 6 * @note 风控安全API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Btas; 3 +namespace Lackoxygen\TiktokShop\Request\Btas;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Btas extends Passage implements BtasInterface 7 +class Btas extends Request implements BtasInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Btas;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\Btas;
6 4
7 /** 5 /**
8 * @note BTAS质检API 6 * @note BTAS质检API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Buyin; 3 +namespace Lackoxygen\TiktokShop\Request\Buyin;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Buyin extends Passage implements BuyinInterface 7 +class Buyin extends Request implements BuyinInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
11 */ 11 */
12 - public function buyinSimplePlan(array $params) 12 + function buyinSimplePlan(array $params)
13 { 13 {
14 $this->builder->method('POST') 14 $this->builder->method('POST')
15 ->service('buyin.simplePlan') 15 ->service('buyin.simplePlan')
@@ -20,7 +20,7 @@ class Buyin extends Passage implements BuyinInterface @@ -20,7 +20,7 @@ class Buyin extends Passage implements BuyinInterface
20 /** 20 /**
21 * @inheritDoc 21 * @inheritDoc
22 */ 22 */
23 - public function buyinShopActivityList(array $params) 23 + function buyinShopActivityList(array $params)
24 { 24 {
25 $this->builder->method('POST') 25 $this->builder->method('POST')
26 ->service('buyin.ShopActivityList') 26 ->service('buyin.ShopActivityList')
@@ -31,7 +31,7 @@ class Buyin extends Passage implements BuyinInterface @@ -31,7 +31,7 @@ class Buyin extends Passage implements BuyinInterface
31 /** 31 /**
32 * @inheritDoc 32 * @inheritDoc
33 */ 33 */
34 - public function buyinShopActivityDetail(array $params) 34 + function buyinShopActivityDetail(array $params)
35 { 35 {
36 $this->builder->method('POST') 36 $this->builder->method('POST')
37 ->service('buyin.shopActivityDetail') 37 ->service('buyin.shopActivityDetail')
@@ -42,7 +42,7 @@ class Buyin extends Passage implements BuyinInterface @@ -42,7 +42,7 @@ class Buyin extends Passage implements BuyinInterface
42 /** 42 /**
43 * @inheritDoc 43 * @inheritDoc
44 */ 44 */
45 - public function buyinApplyActivities(array $params) 45 + function buyinApplyActivities(array $params)
46 { 46 {
47 $this->builder->method('POST') 47 $this->builder->method('POST')
48 ->service('buyin.applyActivities') 48 ->service('buyin.applyActivities')
@@ -53,7 +53,7 @@ class Buyin extends Passage implements BuyinInterface @@ -53,7 +53,7 @@ class Buyin extends Passage implements BuyinInterface
53 /** 53 /**
54 * @inheritDoc 54 * @inheritDoc
55 */ 55 */
56 - public function buyinActivityProductExtendList(array $params) 56 + function buyinActivityProductExtendList(array $params)
57 { 57 {
58 $this->builder->method('POST') 58 $this->builder->method('POST')
59 ->service('buyin.activityProductExtendList') 59 ->service('buyin.activityProductExtendList')
@@ -64,7 +64,7 @@ class Buyin extends Passage implements BuyinInterface @@ -64,7 +64,7 @@ class Buyin extends Passage implements BuyinInterface
64 /** 64 /**
65 * @inheritDoc 65 * @inheritDoc
66 */ 66 */
67 - public function buyinActivityProductExtendApprove(array $params) 67 + function buyinActivityProductExtendApprove(array $params)
68 { 68 {
69 $this->builder->method('POST') 69 $this->builder->method('POST')
70 ->service('buyin.activityProductExtendApprove') 70 ->service('buyin.activityProductExtendApprove')
@@ -75,7 +75,7 @@ class Buyin extends Passage implements BuyinInterface @@ -75,7 +75,7 @@ class Buyin extends Passage implements BuyinInterface
75 /** 75 /**
76 * @inheritDoc 76 * @inheritDoc
77 */ 77 */
78 - public function buyinCreateOrUpdateOrienPlan(array $params) 78 + function buyinCreateOrUpdateOrienPlan(array $params)
79 { 79 {
80 $this->builder->method('POST') 80 $this->builder->method('POST')
81 ->service('buyin.createOrUpdateOrienPlan') 81 ->service('buyin.createOrUpdateOrienPlan')
@@ -86,7 +86,7 @@ class Buyin extends Passage implements BuyinInterface @@ -86,7 +86,7 @@ class Buyin extends Passage implements BuyinInterface
86 /** 86 /**
87 * @inheritDoc 87 * @inheritDoc
88 */ 88 */
89 - public function buyinOrienPlanList(array $params) 89 + function buyinOrienPlanList(array $params)
90 { 90 {
91 $this->builder->method('POST') 91 $this->builder->method('POST')
92 ->service('buyin.orienPlanList') 92 ->service('buyin.orienPlanList')
@@ -97,7 +97,7 @@ class Buyin extends Passage implements BuyinInterface @@ -97,7 +97,7 @@ class Buyin extends Passage implements BuyinInterface
97 /** 97 /**
98 * @inheritDoc 98 * @inheritDoc
99 */ 99 */
100 - public function buyinOrienPlanCtrl(array $params) 100 + function buyinOrienPlanCtrl(array $params)
101 { 101 {
102 $this->builder->method('POST') 102 $this->builder->method('POST')
103 ->service('buyin.orienPlanCtrl') 103 ->service('buyin.orienPlanCtrl')
@@ -108,7 +108,7 @@ class Buyin extends Passage implements BuyinInterface @@ -108,7 +108,7 @@ class Buyin extends Passage implements BuyinInterface
108 /** 108 /**
109 * @inheritDoc 109 * @inheritDoc
110 */ 110 */
111 - public function buyinOrienPlanAuthors(array $params) 111 + function buyinOrienPlanAuthors(array $params)
112 { 112 {
113 $this->builder->method('POST') 113 $this->builder->method('POST')
114 ->service('buyin.orienPlanAuthors') 114 ->service('buyin.orienPlanAuthors')
@@ -119,7 +119,7 @@ class Buyin extends Passage implements BuyinInterface @@ -119,7 +119,7 @@ class Buyin extends Passage implements BuyinInterface
119 /** 119 /**
120 * @inheritDoc 120 * @inheritDoc
121 */ 121 */
122 - public function buyinOrienPlanAuthorsAdd(array $params) 122 + function buyinOrienPlanAuthorsAdd(array $params)
123 { 123 {
124 $this->builder->method('POST') 124 $this->builder->method('POST')
125 ->service('buyin.orienPlanAuthorsAdd') 125 ->service('buyin.orienPlanAuthorsAdd')
@@ -130,7 +130,7 @@ class Buyin extends Passage implements BuyinInterface @@ -130,7 +130,7 @@ class Buyin extends Passage implements BuyinInterface
130 /** 130 /**
131 * @inheritDoc 131 * @inheritDoc
132 */ 132 */
133 - public function buyinOrienPlanAudit(array $params) 133 + function buyinOrienPlanAudit(array $params)
134 { 134 {
135 $this->builder->method('POST') 135 $this->builder->method('POST')
136 ->service('buyin.orienPlanAudit') 136 ->service('buyin.orienPlanAudit')
@@ -141,7 +141,7 @@ class Buyin extends Passage implements BuyinInterface @@ -141,7 +141,7 @@ class Buyin extends Passage implements BuyinInterface
141 /** 141 /**
142 * @inheritDoc 142 * @inheritDoc
143 */ 143 */
144 - public function buyinExclusivePlan(array $params) 144 + function buyinExclusivePlan(array $params)
145 { 145 {
146 $this->builder->method('POST') 146 $this->builder->method('POST')
147 ->service('buyin.exclusivePlan') 147 ->service('buyin.exclusivePlan')
@@ -152,7 +152,7 @@ class Buyin extends Passage implements BuyinInterface @@ -152,7 +152,7 @@ class Buyin extends Passage implements BuyinInterface
152 /** 152 /**
153 * @inheritDoc 153 * @inheritDoc
154 */ 154 */
155 - public function buyinExclusivePlanAuthorOperate(array $params) 155 + function buyinExclusivePlanAuthorOperate(array $params)
156 { 156 {
157 $this->builder->method('POST') 157 $this->builder->method('POST')
158 ->service('buyin.exclusivePlanAuthorOperate') 158 ->service('buyin.exclusivePlanAuthorOperate')
@@ -163,7 +163,7 @@ class Buyin extends Passage implements BuyinInterface @@ -163,7 +163,7 @@ class Buyin extends Passage implements BuyinInterface
163 /** 163 /**
164 * @inheritDoc 164 * @inheritDoc
165 */ 165 */
166 - public function allianceColonelActivityCreateOrUpdate(array $params) 166 + function allianceColonelActivityCreateOrUpdate(array $params)
167 { 167 {
168 $this->builder->method('POST') 168 $this->builder->method('POST')
169 ->service('alliance.colonelActivityCreateOrUpdate') 169 ->service('alliance.colonelActivityCreateOrUpdate')
@@ -174,7 +174,7 @@ class Buyin extends Passage implements BuyinInterface @@ -174,7 +174,7 @@ class Buyin extends Passage implements BuyinInterface
174 /** 174 /**
175 * @inheritDoc 175 * @inheritDoc
176 */ 176 */
177 - public function allianceActivityProductCategoryList(array $params) 177 + function allianceActivityProductCategoryList(array $params)
178 { 178 {
179 $this->builder->method('POST') 179 $this->builder->method('POST')
180 ->service('alliance.activityProductCategoryList') 180 ->service('alliance.activityProductCategoryList')
@@ -185,7 +185,7 @@ class Buyin extends Passage implements BuyinInterface @@ -185,7 +185,7 @@ class Buyin extends Passage implements BuyinInterface
185 /** 185 /**
186 * @inheritDoc 186 * @inheritDoc
187 */ 187 */
188 - public function allianceInstituteColonelActivityList(array $params) 188 + function allianceInstituteColonelActivityList(array $params)
189 { 189 {
190 $this->builder->method('POST') 190 $this->builder->method('POST')
191 ->service('alliance.instituteColonelActivityList') 191 ->service('alliance.instituteColonelActivityList')
@@ -196,7 +196,7 @@ class Buyin extends Passage implements BuyinInterface @@ -196,7 +196,7 @@ class Buyin extends Passage implements BuyinInterface
196 /** 196 /**
197 * @inheritDoc 197 * @inheritDoc
198 */ 198 */
199 - public function allianceInstituteColonelActivityOperate(array $params) 199 + function allianceInstituteColonelActivityOperate(array $params)
200 { 200 {
201 $this->builder->method('POST') 201 $this->builder->method('POST')
202 ->service('alliance.instituteColonelActivityOperate') 202 ->service('alliance.instituteColonelActivityOperate')
@@ -207,7 +207,7 @@ class Buyin extends Passage implements BuyinInterface @@ -207,7 +207,7 @@ class Buyin extends Passage implements BuyinInterface
207 /** 207 /**
208 * @inheritDoc 208 * @inheritDoc
209 */ 209 */
210 - public function allianceColonelActivityProduct(array $params) 210 + function allianceColonelActivityProduct(array $params)
211 { 211 {
212 $this->builder->method('POST') 212 $this->builder->method('POST')
213 ->service('alliance.colonelActivityProduct') 213 ->service('alliance.colonelActivityProduct')
@@ -218,7 +218,7 @@ class Buyin extends Passage implements BuyinInterface @@ -218,7 +218,7 @@ class Buyin extends Passage implements BuyinInterface
218 /** 218 /**
219 * @inheritDoc 219 * @inheritDoc
220 */ 220 */
221 - public function allianceColonelActivityProductAudit(array $params) 221 + function allianceColonelActivityProductAudit(array $params)
222 { 222 {
223 $this->builder->method('POST') 223 $this->builder->method('POST')
224 ->service('alliance.colonelActivityProductAudit') 224 ->service('alliance.colonelActivityProductAudit')
@@ -229,7 +229,7 @@ class Buyin extends Passage implements BuyinInterface @@ -229,7 +229,7 @@ class Buyin extends Passage implements BuyinInterface
229 /** 229 /**
230 * @inheritDoc 230 * @inheritDoc
231 */ 231 */
232 - public function buyinColonelspecialApplyList(array $params) 232 + function buyinColonel/specialApplyList(array $params)
233 { 233 {
234 $this->builder->method('POST') 234 $this->builder->method('POST')
235 ->service('buyin.colonel/specialApplyList') 235 ->service('buyin.colonel/specialApplyList')
@@ -240,7 +240,7 @@ class Buyin extends Passage implements BuyinInterface @@ -240,7 +240,7 @@ class Buyin extends Passage implements BuyinInterface
240 /** 240 /**
241 * @inheritDoc 241 * @inheritDoc
242 */ 242 */
243 - public function allianceColonelActivityProductExtension(array $params) 243 + function allianceColonelActivityProductExtension(array $params)
244 { 244 {
245 $this->builder->method('POST') 245 $this->builder->method('POST')
246 ->service('alliance.colonelActivityProductExtension') 246 ->service('alliance.colonelActivityProductExtension')
@@ -251,7 +251,7 @@ class Buyin extends Passage implements BuyinInterface @@ -251,7 +251,7 @@ class Buyin extends Passage implements BuyinInterface
251 /** 251 /**
252 * @inheritDoc 252 * @inheritDoc
253 */ 253 */
254 - public function buyinColonelspecialApplyDeal(array $params) 254 + function buyinColonel/specialApplyDeal(array $params)
255 { 255 {
256 $this->builder->method('POST') 256 $this->builder->method('POST')
257 ->service('buyin.colonel/specialApplyDeal') 257 ->service('buyin.colonel/specialApplyDeal')
@@ -262,7 +262,7 @@ class Buyin extends Passage implements BuyinInterface @@ -262,7 +262,7 @@ class Buyin extends Passage implements BuyinInterface
262 /** 262 /**
263 * @inheritDoc 263 * @inheritDoc
264 */ 264 */
265 - public function buyinOriginColonelEnrollableActivityList(array $params) 265 + function buyinOriginColonelEnrollableActivityList(array $params)
266 { 266 {
267 $this->builder->method('POST') 267 $this->builder->method('POST')
268 ->service('buyin.originColonelEnrollableActivityList') 268 ->service('buyin.originColonelEnrollableActivityList')
@@ -273,7 +273,7 @@ class Buyin extends Passage implements BuyinInterface @@ -273,7 +273,7 @@ class Buyin extends Passage implements BuyinInterface
273 /** 273 /**
274 * @inheritDoc 274 * @inheritDoc
275 */ 275 */
276 - public function buyinColonelActivityDetail(array $params) 276 + function buyinColonelActivityDetail(array $params)
277 { 277 {
278 $this->builder->method('POST') 278 $this->builder->method('POST')
279 ->service('buyin.colonelActivityDetail') 279 ->service('buyin.colonelActivityDetail')
@@ -284,7 +284,7 @@ class Buyin extends Passage implements BuyinInterface @@ -284,7 +284,7 @@ class Buyin extends Passage implements BuyinInterface
284 /** 284 /**
285 * @inheritDoc 285 * @inheritDoc
286 */ 286 */
287 - public function buyinOriginColonelUnappliedProductList(array $params) 287 + function buyinOriginColonelUnappliedProductList(array $params)
288 { 288 {
289 $this->builder->method('POST') 289 $this->builder->method('POST')
290 ->service('buyin.originColonelUnappliedProductList') 290 ->service('buyin.originColonelUnappliedProductList')
@@ -295,7 +295,7 @@ class Buyin extends Passage implements BuyinInterface @@ -295,7 +295,7 @@ class Buyin extends Passage implements BuyinInterface
295 /** 295 /**
296 * @inheritDoc 296 * @inheritDoc
297 */ 297 */
298 - public function buyinOriginColonelApplyActivities(array $params) 298 + function buyinOriginColonelApplyActivities(array $params)
299 { 299 {
300 $this->builder->method('POST') 300 $this->builder->method('POST')
301 ->service('buyin.originColonelApplyActivities') 301 ->service('buyin.originColonelApplyActivities')
@@ -306,7 +306,7 @@ class Buyin extends Passage implements BuyinInterface @@ -306,7 +306,7 @@ class Buyin extends Passage implements BuyinInterface
306 /** 306 /**
307 * @inheritDoc 307 * @inheritDoc
308 */ 308 */
309 - public function buyinActivityProductList(array $params) 309 + function buyinActivityProductList(array $params)
310 { 310 {
311 $this->builder->method('POST') 311 $this->builder->method('POST')
312 ->service('buyin.activityProductList') 312 ->service('buyin.activityProductList')
@@ -317,7 +317,7 @@ class Buyin extends Passage implements BuyinInterface @@ -317,7 +317,7 @@ class Buyin extends Passage implements BuyinInterface
317 /** 317 /**
318 * @inheritDoc 318 * @inheritDoc
319 */ 319 */
320 - public function buyinActivityProductCancel(array $params) 320 + function buyinActivityProductCancel(array $params)
321 { 321 {
322 $this->builder->method('POST') 322 $this->builder->method('POST')
323 ->service('buyin.activityProductCancel') 323 ->service('buyin.activityProductCancel')
@@ -328,7 +328,7 @@ class Buyin extends Passage implements BuyinInterface @@ -328,7 +328,7 @@ class Buyin extends Passage implements BuyinInterface
328 /** 328 /**
329 * @inheritDoc 329 * @inheritDoc
330 */ 330 */
331 - public function allianceMaterialsProductsSearch(array $params) 331 + function allianceMaterialsProductsSearch(array $params)
332 { 332 {
333 $this->builder->method('POST') 333 $this->builder->method('POST')
334 ->service('alliance.materialsProductsSearch') 334 ->service('alliance.materialsProductsSearch')
@@ -339,7 +339,7 @@ class Buyin extends Passage implements BuyinInterface @@ -339,7 +339,7 @@ class Buyin extends Passage implements BuyinInterface
339 /** 339 /**
340 * @inheritDoc 340 * @inheritDoc
341 */ 341 */
342 - public function buyinSimplePlanList(array $params) 342 + function buyinSimplePlanList(array $params)
343 { 343 {
344 $this->builder->method('POST') 344 $this->builder->method('POST')
345 ->service('buyin.simplePlanList') 345 ->service('buyin.simplePlanList')
@@ -350,7 +350,7 @@ class Buyin extends Passage implements BuyinInterface @@ -350,7 +350,7 @@ class Buyin extends Passage implements BuyinInterface
350 /** 350 /**
351 * @inheritDoc 351 * @inheritDoc
352 */ 352 */
353 - public function allianceMaterialsProductsDetails(array $params) 353 + function allianceMaterialsProductsDetails(array $params)
354 { 354 {
355 $this->builder->method('POST') 355 $this->builder->method('POST')
356 ->service('alliance.materialsProductsDetails') 356 ->service('alliance.materialsProductsDetails')
@@ -361,7 +361,7 @@ class Buyin extends Passage implements BuyinInterface @@ -361,7 +361,7 @@ class Buyin extends Passage implements BuyinInterface
361 /** 361 /**
362 * @inheritDoc 362 * @inheritDoc
363 */ 363 */
364 - public function buyinProductSkus(array $params) 364 + function buyinProductSkus(array $params)
365 { 365 {
366 $this->builder->method('POST') 366 $this->builder->method('POST')
367 ->service('buyin.productSkus') 367 ->service('buyin.productSkus')
@@ -372,7 +372,7 @@ class Buyin extends Passage implements BuyinInterface @@ -372,7 +372,7 @@ class Buyin extends Passage implements BuyinInterface
372 /** 372 /**
373 * @inheritDoc 373 * @inheritDoc
374 */ 374 */
375 - public function allianceMaterialsProductCategory(array $params) 375 + function allianceMaterialsProductCategory(array $params)
376 { 376 {
377 $this->builder->method('POST') 377 $this->builder->method('POST')
378 ->service('alliance.materialsProductCategory') 378 ->service('alliance.materialsProductCategory')
@@ -383,7 +383,7 @@ class Buyin extends Passage implements BuyinInterface @@ -383,7 +383,7 @@ class Buyin extends Passage implements BuyinInterface
383 /** 383 /**
384 * @inheritDoc 384 * @inheritDoc
385 */ 385 */
386 - public function buyinMaterialsProductStatus(array $params) 386 + function buyinMaterialsProductStatus(array $params)
387 { 387 {
388 $this->builder->method('POST') 388 $this->builder->method('POST')
389 ->service('buyin.materialsProductStatus') 389 ->service('buyin.materialsProductStatus')
@@ -394,7 +394,7 @@ class Buyin extends Passage implements BuyinInterface @@ -394,7 +394,7 @@ class Buyin extends Passage implements BuyinInterface
394 /** 394 /**
395 * @inheritDoc 395 * @inheritDoc
396 */ 396 */
397 - public function buyinKolMaterialsProductsSearch(array $params) 397 + function buyinKolMaterialsProductsSearch(array $params)
398 { 398 {
399 $this->builder->method('POST') 399 $this->builder->method('POST')
400 ->service('buyin.kolMaterialsProductsSearch') 400 ->service('buyin.kolMaterialsProductsSearch')
@@ -405,7 +405,7 @@ class Buyin extends Passage implements BuyinInterface @@ -405,7 +405,7 @@ class Buyin extends Passage implements BuyinInterface
405 /** 405 /**
406 * @inheritDoc 406 * @inheritDoc
407 */ 407 */
408 - public function buyinKolMaterialsProductsDetails(array $params) 408 + function buyinKolMaterialsProductsDetails(array $params)
409 { 409 {
410 $this->builder->method('POST') 410 $this->builder->method('POST')
411 ->service('buyin.kolMaterialsProductsDetails') 411 ->service('buyin.kolMaterialsProductsDetails')
@@ -416,7 +416,7 @@ class Buyin extends Passage implements BuyinInterface @@ -416,7 +416,7 @@ class Buyin extends Passage implements BuyinInterface
416 /** 416 /**
417 * @inheritDoc 417 * @inheritDoc
418 */ 418 */
419 - public function buyinQueryInstituteOrders(array $params) 419 + function buyinQueryInstituteOrders(array $params)
420 { 420 {
421 $this->builder->method('POST') 421 $this->builder->method('POST')
422 ->service('buyin.queryInstituteOrders') 422 ->service('buyin.queryInstituteOrders')
@@ -427,7 +427,7 @@ class Buyin extends Passage implements BuyinInterface @@ -427,7 +427,7 @@ class Buyin extends Passage implements BuyinInterface
427 /** 427 /**
428 * @inheritDoc 428 * @inheritDoc
429 */ 429 */
430 - public function buyinInstituteOrderMCN(array $params) 430 + function buyinInstituteOrderMCN(array $params)
431 { 431 {
432 $this->builder->method('POST') 432 $this->builder->method('POST')
433 ->service('buyin.instituteOrderMCN') 433 ->service('buyin.instituteOrderMCN')
@@ -438,7 +438,7 @@ class Buyin extends Passage implements BuyinInterface @@ -438,7 +438,7 @@ class Buyin extends Passage implements BuyinInterface
438 /** 438 /**
439 * @inheritDoc 439 * @inheritDoc
440 */ 440 */
441 - public function buyinInstituteOrderColonel(array $params) 441 + function buyinInstituteOrderColonel(array $params)
442 { 442 {
443 $this->builder->method('POST') 443 $this->builder->method('POST')
444 ->service('buyin.instituteOrderColonel') 444 ->service('buyin.instituteOrderColonel')
@@ -449,7 +449,7 @@ class Buyin extends Passage implements BuyinInterface @@ -449,7 +449,7 @@ class Buyin extends Passage implements BuyinInterface
449 /** 449 /**
450 * @inheritDoc 450 * @inheritDoc
451 */ 451 */
452 - public function buyinInstPickSourceConvert(array $params) 452 + function buyinInstPickSourceConvert(array $params)
453 { 453 {
454 $this->builder->method('POST') 454 $this->builder->method('POST')
455 ->service('buyin.instPickSourceConvert') 455 ->service('buyin.instPickSourceConvert')
@@ -460,7 +460,7 @@ class Buyin extends Passage implements BuyinInterface @@ -460,7 +460,7 @@ class Buyin extends Passage implements BuyinInterface
460 /** 460 /**
461 * @inheritDoc 461 * @inheritDoc
462 */ 462 */
463 - public function buyinInstGmv(array $params) 463 + function buyinInstGmv(array $params)
464 { 464 {
465 $this->builder->method('POST') 465 $this->builder->method('POST')
466 ->service('buyin.instGmv') 466 ->service('buyin.instGmv')
@@ -471,7 +471,7 @@ class Buyin extends Passage implements BuyinInterface @@ -471,7 +471,7 @@ class Buyin extends Passage implements BuyinInterface
471 /** 471 /**
472 * @inheritDoc 472 * @inheritDoc
473 */ 473 */
474 - public function buyinInstGmvDetail(array $params) 474 + function buyinInstGmvDetail(array $params)
475 { 475 {
476 $this->builder->method('POST') 476 $this->builder->method('POST')
477 ->service('buyin.instGmvDetail') 477 ->service('buyin.instGmvDetail')
@@ -482,7 +482,7 @@ class Buyin extends Passage implements BuyinInterface @@ -482,7 +482,7 @@ class Buyin extends Passage implements BuyinInterface
482 /** 482 /**
483 * @inheritDoc 483 * @inheritDoc
484 */ 484 */
485 - public function buyinKolPidCreate(array $params) 485 + function buyinKolPidCreate(array $params)
486 { 486 {
487 $this->builder->method('POST') 487 $this->builder->method('POST')
488 ->service('buyin.kolPidCreate') 488 ->service('buyin.kolPidCreate')
@@ -493,7 +493,7 @@ class Buyin extends Passage implements BuyinInterface @@ -493,7 +493,7 @@ class Buyin extends Passage implements BuyinInterface
493 /** 493 /**
494 * @inheritDoc 494 * @inheritDoc
495 */ 495 */
496 - public function buyinKolPidList(array $params) 496 + function buyinKolPidList(array $params)
497 { 497 {
498 $this->builder->method('POST') 498 $this->builder->method('POST')
499 ->service('buyin.kolPidList') 499 ->service('buyin.kolPidList')
@@ -504,7 +504,7 @@ class Buyin extends Passage implements BuyinInterface @@ -504,7 +504,7 @@ class Buyin extends Passage implements BuyinInterface
504 /** 504 /**
505 * @inheritDoc 505 * @inheritDoc
506 */ 506 */
507 - public function buyinKolPidEdit(array $params) 507 + function buyinKolPidEdit(array $params)
508 { 508 {
509 $this->builder->method('POST') 509 $this->builder->method('POST')
510 ->service('buyin.kolPidEdit') 510 ->service('buyin.kolPidEdit')
@@ -515,7 +515,7 @@ class Buyin extends Passage implements BuyinInterface @@ -515,7 +515,7 @@ class Buyin extends Passage implements BuyinInterface
515 /** 515 /**
516 * @inheritDoc 516 * @inheritDoc
517 */ 517 */
518 - public function buyinKolPidDel(array $params) 518 + function buyinKolPidDel(array $params)
519 { 519 {
520 $this->builder->method('POST') 520 $this->builder->method('POST')
521 ->service('buyin.kolPidDel') 521 ->service('buyin.kolPidDel')
@@ -526,7 +526,7 @@ class Buyin extends Passage implements BuyinInterface @@ -526,7 +526,7 @@ class Buyin extends Passage implements BuyinInterface
526 /** 526 /**
527 * @inheritDoc 527 * @inheritDoc
528 */ 528 */
529 - public function buyinShareCommandParse(array $params) 529 + function buyinShareCommandParse(array $params)
530 { 530 {
531 $this->builder->method('POST') 531 $this->builder->method('POST')
532 ->service('buyin.shareCommandParse') 532 ->service('buyin.shareCommandParse')
@@ -537,7 +537,7 @@ class Buyin extends Passage implements BuyinInterface @@ -537,7 +537,7 @@ class Buyin extends Passage implements BuyinInterface
537 /** 537 /**
538 * @inheritDoc 538 * @inheritDoc
539 */ 539 */
540 - public function buyinKolProductShare(array $params) 540 + function buyinKolProductShare(array $params)
541 { 541 {
542 $this->builder->method('POST') 542 $this->builder->method('POST')
543 ->service('buyin.kolProductShare') 543 ->service('buyin.kolProductShare')
@@ -548,7 +548,7 @@ class Buyin extends Passage implements BuyinInterface @@ -548,7 +548,7 @@ class Buyin extends Passage implements BuyinInterface
548 /** 548 /**
549 * @inheritDoc 549 * @inheritDoc
550 */ 550 */
551 - public function buyinInstitutePidCreate(array $params) 551 + function buyinInstitutePidCreate(array $params)
552 { 552 {
553 $this->builder->method('POST') 553 $this->builder->method('POST')
554 ->service('buyin.institutePidCreate') 554 ->service('buyin.institutePidCreate')
@@ -559,7 +559,7 @@ class Buyin extends Passage implements BuyinInterface @@ -559,7 +559,7 @@ class Buyin extends Passage implements BuyinInterface
559 /** 559 /**
560 * @inheritDoc 560 * @inheritDoc
561 */ 561 */
562 - public function buyinInstitutePidList(array $params) 562 + function buyinInstitutePidList(array $params)
563 { 563 {
564 $this->builder->method('POST') 564 $this->builder->method('POST')
565 ->service('buyin.institutePidList') 565 ->service('buyin.institutePidList')
@@ -570,7 +570,7 @@ class Buyin extends Passage implements BuyinInterface @@ -570,7 +570,7 @@ class Buyin extends Passage implements BuyinInterface
570 /** 570 /**
571 * @inheritDoc 571 * @inheritDoc
572 */ 572 */
573 - public function buyinInstitutePidEdit(array $params) 573 + function buyinInstitutePidEdit(array $params)
574 { 574 {
575 $this->builder->method('POST') 575 $this->builder->method('POST')
576 ->service('buyin.institutePidEdit') 576 ->service('buyin.institutePidEdit')
@@ -581,7 +581,7 @@ class Buyin extends Passage implements BuyinInterface @@ -581,7 +581,7 @@ class Buyin extends Passage implements BuyinInterface
581 /** 581 /**
582 * @inheritDoc 582 * @inheritDoc
583 */ 583 */
584 - public function buyinInstitutePidDel(array $params) 584 + function buyinInstitutePidDel(array $params)
585 { 585 {
586 $this->builder->method('POST') 586 $this->builder->method('POST')
587 ->service('buyin.institutePidDel') 587 ->service('buyin.institutePidDel')
@@ -592,7 +592,7 @@ class Buyin extends Passage implements BuyinInterface @@ -592,7 +592,7 @@ class Buyin extends Passage implements BuyinInterface
592 /** 592 /**
593 * @inheritDoc 593 * @inheritDoc
594 */ 594 */
595 - public function buyinLiveShareMaterial(array $params) 595 + function buyinLiveShareMaterial(array $params)
596 { 596 {
597 $this->builder->method('POST') 597 $this->builder->method('POST')
598 ->service('buyin.liveShareMaterial') 598 ->service('buyin.liveShareMaterial')
@@ -603,7 +603,7 @@ class Buyin extends Passage implements BuyinInterface @@ -603,7 +603,7 @@ class Buyin extends Passage implements BuyinInterface
603 /** 603 /**
604 * @inheritDoc 604 * @inheritDoc
605 */ 605 */
606 - public function buyinDistributionLiveProductList(array $params) 606 + function buyinDistributionLiveProductList(array $params)
607 { 607 {
608 $this->builder->method('POST') 608 $this->builder->method('POST')
609 ->service('buyin.distributionLiveProductList') 609 ->service('buyin.distributionLiveProductList')
@@ -614,7 +614,7 @@ class Buyin extends Passage implements BuyinInterface @@ -614,7 +614,7 @@ class Buyin extends Passage implements BuyinInterface
614 /** 614 /**
615 * @inheritDoc 615 * @inheritDoc
616 */ 616 */
617 - public function buyinInstituteLiveShare(array $params) 617 + function buyinInstituteLiveShare(array $params)
618 { 618 {
619 $this->builder->method('POST') 619 $this->builder->method('POST')
620 ->service('buyin.instituteLiveShare') 620 ->service('buyin.instituteLiveShare')
@@ -625,7 +625,7 @@ class Buyin extends Passage implements BuyinInterface @@ -625,7 +625,7 @@ class Buyin extends Passage implements BuyinInterface
625 /** 625 /**
626 * @inheritDoc 626 * @inheritDoc
627 */ 627 */
628 - public function buyinInstituteOrderAds(array $params) 628 + function buyinInstituteOrderAds(array $params)
629 { 629 {
630 $this->builder->method('POST') 630 $this->builder->method('POST')
631 ->service('buyin.instituteOrderAds') 631 ->service('buyin.instituteOrderAds')
@@ -636,7 +636,7 @@ class Buyin extends Passage implements BuyinInterface @@ -636,7 +636,7 @@ class Buyin extends Passage implements BuyinInterface
636 /** 636 /**
637 * @inheritDoc 637 * @inheritDoc
638 */ 638 */
639 - public function buyinKolOrderAds(array $params) 639 + function buyinKolOrderAds(array $params)
640 { 640 {
641 $this->builder->method('POST') 641 $this->builder->method('POST')
642 ->service('buyin.kolOrderAds') 642 ->service('buyin.kolOrderAds')
@@ -647,7 +647,7 @@ class Buyin extends Passage implements BuyinInterface @@ -647,7 +647,7 @@ class Buyin extends Passage implements BuyinInterface
647 /** 647 /**
648 * @inheritDoc 648 * @inheritDoc
649 */ 649 */
650 - public function buyinShopPidMemberCreate(array $params) 650 + function buyinShopPidMemberCreate(array $params)
651 { 651 {
652 $this->builder->method('POST') 652 $this->builder->method('POST')
653 ->service('buyin.shopPidMemberCreate') 653 ->service('buyin.shopPidMemberCreate')
@@ -658,7 +658,7 @@ class Buyin extends Passage implements BuyinInterface @@ -658,7 +658,7 @@ class Buyin extends Passage implements BuyinInterface
658 /** 658 /**
659 * @inheritDoc 659 * @inheritDoc
660 */ 660 */
661 - public function buyinKolLiveShare(array $params) 661 + function buyinKolLiveShare(array $params)
662 { 662 {
663 $this->builder->method('POST') 663 $this->builder->method('POST')
664 ->service('buyin.kolLiveShare') 664 ->service('buyin.kolLiveShare')
@@ -669,7 +669,7 @@ class Buyin extends Passage implements BuyinInterface @@ -669,7 +669,7 @@ class Buyin extends Passage implements BuyinInterface
669 /** 669 /**
670 * @inheritDoc 670 * @inheritDoc
671 */ 671 */
672 - public function buyinMHandleTrusteeshipApply(array $params) 672 + function buyinMHandleTrusteeshipApply(array $params)
673 { 673 {
674 $this->builder->method('POST') 674 $this->builder->method('POST')
675 ->service('buyin.mHandleTrusteeshipApply') 675 ->service('buyin.mHandleTrusteeshipApply')
@@ -680,7 +680,7 @@ class Buyin extends Passage implements BuyinInterface @@ -680,7 +680,7 @@ class Buyin extends Passage implements BuyinInterface
680 /** 680 /**
681 * @inheritDoc 681 * @inheritDoc
682 */ 682 */
683 - public function buyinColoneltrusteeshipList(array $params) 683 + function buyinColonel/trusteeshipList(array $params)
684 { 684 {
685 $this->builder->method('POST') 685 $this->builder->method('POST')
686 ->service('buyin.colonel/trusteeshipList') 686 ->service('buyin.colonel/trusteeshipList')
@@ -691,7 +691,7 @@ class Buyin extends Passage implements BuyinInterface @@ -691,7 +691,7 @@ class Buyin extends Passage implements BuyinInterface
691 /** 691 /**
692 * @inheritDoc 692 * @inheritDoc
693 */ 693 */
694 - public function buyinInstituteOrderPick(array $params) 694 + function buyinInstituteOrderPick(array $params)
695 { 695 {
696 $this->builder->method('POST') 696 $this->builder->method('POST')
697 ->service('buyin.instituteOrderPick') 697 ->service('buyin.instituteOrderPick')
@@ -702,7 +702,7 @@ class Buyin extends Passage implements BuyinInterface @@ -702,7 +702,7 @@ class Buyin extends Passage implements BuyinInterface
702 /** 702 /**
703 * @inheritDoc 703 * @inheritDoc
704 */ 704 */
705 - public function buyinInstituteLivePreviewShare(array $params) 705 + function buyinInstituteLivePreviewShare(array $params)
706 { 706 {
707 $this->builder->method('POST') 707 $this->builder->method('POST')
708 ->service('buyin.instituteLivePreviewShare') 708 ->service('buyin.instituteLivePreviewShare')
@@ -713,7 +713,7 @@ class Buyin extends Passage implements BuyinInterface @@ -713,7 +713,7 @@ class Buyin extends Passage implements BuyinInterface
713 /** 713 /**
714 * @inheritDoc 714 * @inheritDoc
715 */ 715 */
716 - public function buyinKolLivePreviewShare(array $params) 716 + function buyinKolLivePreviewShare(array $params)
717 { 717 {
718 $this->builder->method('POST') 718 $this->builder->method('POST')
719 ->service('buyin.kolLivePreviewShare') 719 ->service('buyin.kolLivePreviewShare')
@@ -724,7 +724,7 @@ class Buyin extends Passage implements BuyinInterface @@ -724,7 +724,7 @@ class Buyin extends Passage implements BuyinInterface
724 /** 724 /**
725 * @inheritDoc 725 * @inheritDoc
726 */ 726 */
727 - public function buyinActivityShareConvert(array $params) 727 + function buyinActivityShareConvert(array $params)
728 { 728 {
729 $this->builder->method('POST') 729 $this->builder->method('POST')
730 ->service('buyin.activityShareConvert') 730 ->service('buyin.activityShareConvert')
1 <?php 1 <?php
2 -  
3 -namespace Lackoxygen\TiktokShop\Passage\Buyin;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 2 +namespace Lackoxygen\TiktokShop\Request\Buyin;
6 3
7 /** 4 /**
8 * @note 精选联盟API 5 * @note 精选联盟API
@@ -15,7 +12,7 @@ interface BuyinInterface @@ -15,7 +12,7 @@ interface BuyinInterface
15 * @param array $params 12 * @param array $params
16 * @return ResultSet 13 * @return ResultSet
17 */ 14 */
18 - public function buyinSimplePlan(array $params); 15 + function buyinSimplePlan(array $params);
19 16
20 /** 17 /**
21 * 商家可参与的团长活动查询接口 18 * 商家可参与的团长活动查询接口
@@ -23,7 +20,7 @@ interface BuyinInterface @@ -23,7 +20,7 @@ interface BuyinInterface
23 * @param array $params 20 * @param array $params
24 * @return ResultSet 21 * @return ResultSet
25 */ 22 */
26 - public function buyinShopActivityList(array $params); 23 + function buyinShopActivityList(array $params);
27 24
28 /** 25 /**
29 * 商家侧获取团长活动详情 26 * 商家侧获取团长活动详情
@@ -31,7 +28,7 @@ interface BuyinInterface @@ -31,7 +28,7 @@ interface BuyinInterface
31 * @param array $params 28 * @param array $params
32 * @return ResultSet 29 * @return ResultSet
33 */ 30 */
34 - public function buyinShopActivityDetail(array $params); 31 + function buyinShopActivityDetail(array $params);
35 32
36 /** 33 /**
37 * 商品团长活动提报接口 34 * 商品团长活动提报接口
@@ -39,7 +36,7 @@ interface BuyinInterface @@ -39,7 +36,7 @@ interface BuyinInterface
39 * @param array $params 36 * @param array $params
40 * @return ResultSet 37 * @return ResultSet
41 */ 38 */
42 - public function buyinApplyActivities(array $params); 39 + function buyinApplyActivities(array $params);
43 40
44 /** 41 /**
45 * 延长推广待处理/已处理记录查询 42 * 延长推广待处理/已处理记录查询
@@ -47,7 +44,7 @@ interface BuyinInterface @@ -47,7 +44,7 @@ interface BuyinInterface
47 * @param array $params 44 * @param array $params
48 * @return ResultSet 45 * @return ResultSet
49 */ 46 */
50 - public function buyinActivityProductExtendList(array $params); 47 + function buyinActivityProductExtendList(array $params);
51 48
52 /** 49 /**
53 * 商家处理团长活动商品的推广延期申请 50 * 商家处理团长活动商品的推广延期申请
@@ -55,7 +52,7 @@ interface BuyinInterface @@ -55,7 +52,7 @@ interface BuyinInterface
55 * @param array $params 52 * @param array $params
56 * @return ResultSet 53 * @return ResultSet
57 */ 54 */
58 - public function buyinActivityProductExtendApprove(array $params); 55 + function buyinActivityProductExtendApprove(array $params);
59 56
60 /** 57 /**
61 * 创建/修改商品定向计划 58 * 创建/修改商品定向计划
@@ -63,7 +60,7 @@ interface BuyinInterface @@ -63,7 +60,7 @@ interface BuyinInterface
63 * @param array $params 60 * @param array $params
64 * @return ResultSet 61 * @return ResultSet
65 */ 62 */
66 - public function buyinCreateOrUpdateOrienPlan(array $params); 63 + function buyinCreateOrUpdateOrienPlan(array $params);
67 64
68 /** 65 /**
69 * 商品定向计划查询 66 * 商品定向计划查询
@@ -71,7 +68,7 @@ interface BuyinInterface @@ -71,7 +68,7 @@ interface BuyinInterface
71 * @param array $params 68 * @param array $params
72 * @return ResultSet 69 * @return ResultSet
73 */ 70 */
74 - public function buyinOrienPlanList(array $params); 71 + function buyinOrienPlanList(array $params);
75 72
76 /** 73 /**
77 * 商品定向计划管理 74 * 商品定向计划管理
@@ -79,7 +76,7 @@ interface BuyinInterface @@ -79,7 +76,7 @@ interface BuyinInterface
79 * @param array $params 76 * @param array $params
80 * @return ResultSet 77 * @return ResultSet
81 */ 78 */
82 - public function buyinOrienPlanCtrl(array $params); 79 + function buyinOrienPlanCtrl(array $params);
83 80
84 /** 81 /**
85 * 查询定向计划作者列表 82 * 查询定向计划作者列表
@@ -87,7 +84,7 @@ interface BuyinInterface @@ -87,7 +84,7 @@ interface BuyinInterface
87 * @param array $params 84 * @param array $params
88 * @return ResultSet 85 * @return ResultSet
89 */ 86 */
90 - public function buyinOrienPlanAuthors(array $params); 87 + function buyinOrienPlanAuthors(array $params);
91 88
92 /** 89 /**
93 * 向指定定向计划中添加达人 90 * 向指定定向计划中添加达人
@@ -95,7 +92,7 @@ interface BuyinInterface @@ -95,7 +92,7 @@ interface BuyinInterface
95 * @param array $params 92 * @param array $params
96 * @return ResultSet 93 * @return ResultSet
97 */ 94 */
98 - public function buyinOrienPlanAuthorsAdd(array $params); 95 + function buyinOrienPlanAuthorsAdd(array $params);
99 96
100 /** 97 /**
101 * 定向计划达人申请审核 98 * 定向计划达人申请审核
@@ -103,7 +100,7 @@ interface BuyinInterface @@ -103,7 +100,7 @@ interface BuyinInterface
103 * @param array $params 100 * @param array $params
104 * @return ResultSet 101 * @return ResultSet
105 */ 102 */
106 - public function buyinOrienPlanAudit(array $params); 103 + function buyinOrienPlanAudit(array $params);
107 104
108 /** 105 /**
109 * 创建/修改商品专属推广计划 106 * 创建/修改商品专属推广计划
@@ -111,7 +108,7 @@ interface BuyinInterface @@ -111,7 +108,7 @@ interface BuyinInterface
111 * @param array $params 108 * @param array $params
112 * @return ResultSet 109 * @return ResultSet
113 */ 110 */
114 - public function buyinExclusivePlan(array $params); 111 + function buyinExclusivePlan(array $params);
115 112
116 /** 113 /**
117 * 店铺专属达人管理 114 * 店铺专属达人管理
@@ -119,7 +116,7 @@ interface BuyinInterface @@ -119,7 +116,7 @@ interface BuyinInterface
119 * @param array $params 116 * @param array $params
120 * @return ResultSet 117 * @return ResultSet
121 */ 118 */
122 - public function buyinExclusivePlanAuthorOperate(array $params); 119 + function buyinExclusivePlanAuthorOperate(array $params);
123 120
124 /** 121 /**
125 * 团长活动创建/编辑接口 122 * 团长活动创建/编辑接口
@@ -127,7 +124,7 @@ interface BuyinInterface @@ -127,7 +124,7 @@ interface BuyinInterface
127 * @param array $params 124 * @param array $params
128 * @return ResultSet 125 * @return ResultSet
129 */ 126 */
130 - public function allianceColonelActivityCreateOrUpdate(array $params); 127 + function allianceColonelActivityCreateOrUpdate(array $params);
131 128
132 /** 129 /**
133 * 创建活动时候可选择的类目接口 130 * 创建活动时候可选择的类目接口
@@ -135,7 +132,7 @@ interface BuyinInterface @@ -135,7 +132,7 @@ interface BuyinInterface
135 * @param array $params 132 * @param array $params
136 * @return ResultSet 133 * @return ResultSet
137 */ 134 */
138 - public function allianceActivityProductCategoryList(array $params); 135 + function allianceActivityProductCategoryList(array $params);
139 136
140 /** 137 /**
141 * 团长活动查询接口 138 * 团长活动查询接口
@@ -143,7 +140,7 @@ interface BuyinInterface @@ -143,7 +140,7 @@ interface BuyinInterface
143 * @param array $params 140 * @param array $params
144 * @return ResultSet 141 * @return ResultSet
145 */ 142 */
146 - public function allianceInstituteColonelActivityList(array $params); 143 + function allianceInstituteColonelActivityList(array $params);
147 144
148 /** 145 /**
149 * 专属团长活动删除接口(下线+删除) 146 * 专属团长活动删除接口(下线+删除)
@@ -151,7 +148,7 @@ interface BuyinInterface @@ -151,7 +148,7 @@ interface BuyinInterface
151 * @param array $params 148 * @param array $params
152 * @return ResultSet 149 * @return ResultSet
153 */ 150 */
154 - public function allianceInstituteColonelActivityOperate(array $params); 151 + function allianceInstituteColonelActivityOperate(array $params);
155 152
156 /** 153 /**
157 * 活动商品查询接口 154 * 活动商品查询接口
@@ -159,7 +156,7 @@ interface BuyinInterface @@ -159,7 +156,7 @@ interface BuyinInterface
159 * @param array $params 156 * @param array $params
160 * @return ResultSet 157 * @return ResultSet
161 */ 158 */
162 - public function allianceColonelActivityProduct(array $params); 159 + function allianceColonelActivityProduct(array $params);
163 160
164 /** 161 /**
165 * 专属团长活动商品审核接口 162 * 专属团长活动商品审核接口
@@ -167,7 +164,7 @@ interface BuyinInterface @@ -167,7 +164,7 @@ interface BuyinInterface
167 * @param array $params 164 * @param array $params
168 * @return ResultSet 165 * @return ResultSet
169 */ 166 */
170 - public function allianceColonelActivityProductAudit(array $params); 167 + function allianceColonelActivityProductAudit(array $params);
171 168
172 /** 169 /**
173 * 查询团长活动特殊申请 170 * 查询团长活动特殊申请
@@ -175,7 +172,7 @@ interface BuyinInterface @@ -175,7 +172,7 @@ interface BuyinInterface
175 * @param array $params 172 * @param array $params
176 * @return ResultSet 173 * @return ResultSet
177 */ 174 */
178 - public function buyinColonelspecialApplyList(array $params); 175 + function buyinColonel/specialApplyList(array $params);
179 176
180 /** 177 /**
181 * 专属团长活动商品延时接口 178 * 专属团长活动商品延时接口
@@ -183,7 +180,7 @@ interface BuyinInterface @@ -183,7 +180,7 @@ interface BuyinInterface
183 * @param array $params 180 * @param array $params
184 * @return ResultSet 181 * @return ResultSet
185 */ 182 */
186 - public function allianceColonelActivityProductExtension(array $params); 183 + function allianceColonelActivityProductExtension(array $params);
187 184
188 /** 185 /**
189 * 团长活动特殊申请审核 186 * 团长活动特殊申请审核
@@ -191,7 +188,7 @@ interface BuyinInterface @@ -191,7 +188,7 @@ interface BuyinInterface
191 * @param array $params 188 * @param array $params
192 * @return ResultSet 189 * @return ResultSet
193 */ 190 */
194 - public function buyinColonelspecialApplyDeal(array $params); 191 + function buyinColonel/specialApplyDeal(array $params);
195 192
196 /** 193 /**
197 * 团长可参与的二级团长活动查询接口 194 * 团长可参与的二级团长活动查询接口
@@ -199,7 +196,7 @@ interface BuyinInterface @@ -199,7 +196,7 @@ interface BuyinInterface
199 * @param array $params 196 * @param array $params
200 * @return ResultSet 197 * @return ResultSet
201 */ 198 */
202 - public function buyinOriginColonelEnrollableActivityList(array $params); 199 + function buyinOriginColonelEnrollableActivityList(array $params);
203 200
204 /** 201 /**
205 * 获取团长活动详情 202 * 获取团长活动详情
@@ -207,7 +204,7 @@ interface BuyinInterface @@ -207,7 +204,7 @@ interface BuyinInterface
207 * @param array $params 204 * @param array $params
208 * @return ResultSet 205 * @return ResultSet
209 */ 206 */
210 - public function buyinColonelActivityDetail(array $params); 207 + function buyinColonelActivityDetail(array $params);
211 208
212 /** 209 /**
213 * 团长获取可提报二级团长活动的商品列表 210 * 团长获取可提报二级团长活动的商品列表
@@ -215,7 +212,7 @@ interface BuyinInterface @@ -215,7 +212,7 @@ interface BuyinInterface
215 * @param array $params 212 * @param array $params
216 * @return ResultSet 213 * @return ResultSet
217 */ 214 */
218 - public function buyinOriginColonelUnappliedProductList(array $params); 215 + function buyinOriginColonelUnappliedProductList(array $params);
219 216
220 /** 217 /**
221 * 团长报名二级团长活动 218 * 团长报名二级团长活动
@@ -223,7 +220,7 @@ interface BuyinInterface @@ -223,7 +220,7 @@ interface BuyinInterface
223 * @param array $params 220 * @param array $params
224 * @return ResultSet 221 * @return ResultSet
225 */ 222 */
226 - public function buyinOriginColonelApplyActivities(array $params); 223 + function buyinOriginColonelApplyActivities(array $params);
227 224
228 /** 225 /**
229 * 一级团长查询提报活动商品 226 * 一级团长查询提报活动商品
@@ -231,7 +228,7 @@ interface BuyinInterface @@ -231,7 +228,7 @@ interface BuyinInterface
231 * @param array $params 228 * @param array $params
232 * @return ResultSet 229 * @return ResultSet
233 */ 230 */
234 - public function buyinActivityProductList(array $params); 231 + function buyinActivityProductList(array $params);
235 232
236 /** 233 /**
237 * 一级团长取消活动提报申请接口 234 * 一级团长取消活动提报申请接口
@@ -239,7 +236,7 @@ interface BuyinInterface @@ -239,7 +236,7 @@ interface BuyinInterface
239 * @param array $params 236 * @param array $params
240 * @return ResultSet 237 * @return ResultSet
241 */ 238 */
242 - public function buyinActivityProductCancel(array $params); 239 + function buyinActivityProductCancel(array $params);
243 240
244 /** 241 /**
245 * 检索精选联盟商品 242 * 检索精选联盟商品
@@ -247,7 +244,7 @@ interface BuyinInterface @@ -247,7 +244,7 @@ interface BuyinInterface
247 * @param array $params 244 * @param array $params
248 * @return ResultSet 245 * @return ResultSet
249 */ 246 */
250 - public function allianceMaterialsProductsSearch(array $params); 247 + function allianceMaterialsProductsSearch(array $params);
251 248
252 /** 249 /**
253 * 商品推广 普通计划查询 250 * 商品推广 普通计划查询
@@ -255,7 +252,7 @@ interface BuyinInterface @@ -255,7 +252,7 @@ interface BuyinInterface
255 * @param array $params 252 * @param array $params
256 * @return ResultSet 253 * @return ResultSet
257 */ 254 */
258 - public function buyinSimplePlanList(array $params); 255 + function buyinSimplePlanList(array $params);
259 256
260 /** 257 /**
261 * 批量查询推广商品详情 258 * 批量查询推广商品详情
@@ -263,7 +260,7 @@ interface BuyinInterface @@ -263,7 +260,7 @@ interface BuyinInterface
263 * @param array $params 260 * @param array $params
264 * @return ResultSet 261 * @return ResultSet
265 */ 262 */
266 - public function allianceMaterialsProductsDetails(array $params); 263 + function allianceMaterialsProductsDetails(array $params);
267 264
268 /** 265 /**
269 * 查询商品 SKU 266 * 查询商品 SKU
@@ -271,7 +268,7 @@ interface BuyinInterface @@ -271,7 +268,7 @@ interface BuyinInterface
271 * @param array $params 268 * @param array $params
272 * @return ResultSet 269 * @return ResultSet
273 */ 270 */
274 - public function buyinProductSkus(array $params); 271 + function buyinProductSkus(array $params);
275 272
276 /** 273 /**
277 * 类目查询 274 * 类目查询
@@ -279,7 +276,7 @@ interface BuyinInterface @@ -279,7 +276,7 @@ interface BuyinInterface
279 * @param array $params 276 * @param array $params
280 * @return ResultSet 277 * @return ResultSet
281 */ 278 */
282 - public function allianceMaterialsProductCategory(array $params); 279 + function allianceMaterialsProductCategory(array $params);
283 280
284 /** 281 /**
285 * 商品状态查询 282 * 商品状态查询
@@ -287,7 +284,7 @@ interface BuyinInterface @@ -287,7 +284,7 @@ interface BuyinInterface
287 * @param array $params 284 * @param array $params
288 * @return ResultSet 285 * @return ResultSet
289 */ 286 */
290 - public function buyinMaterialsProductStatus(array $params); 287 + function buyinMaterialsProductStatus(array $params);
291 288
292 /** 289 /**
293 * 检索精选联盟商品,需达人授权 290 * 检索精选联盟商品,需达人授权
@@ -295,7 +292,7 @@ interface BuyinInterface @@ -295,7 +292,7 @@ interface BuyinInterface
295 * @param array $params 292 * @param array $params
296 * @return ResultSet 293 * @return ResultSet
297 */ 294 */
298 - public function buyinKolMaterialsProductsSearch(array $params); 295 + function buyinKolMaterialsProductsSearch(array $params);
299 296
300 /** 297 /**
301 * 查询达人视角商品详情 298 * 查询达人视角商品详情
@@ -303,7 +300,7 @@ interface BuyinInterface @@ -303,7 +300,7 @@ interface BuyinInterface
303 * @param array $params 300 * @param array $params
304 * @return ResultSet 301 * @return ResultSet
305 */ 302 */
306 - public function buyinKolMaterialsProductsDetails(array $params); 303 + function buyinKolMaterialsProductsDetails(array $params);
307 304
308 /** 305 /**
309 * 【即将下线】查询机构联盟订单 306 * 【即将下线】查询机构联盟订单
@@ -311,7 +308,7 @@ interface BuyinInterface @@ -311,7 +308,7 @@ interface BuyinInterface
311 * @param array $params 308 * @param array $params
312 * @return ResultSet 309 * @return ResultSet
313 */ 310 */
314 - public function buyinQueryInstituteOrders(array $params); 311 + function buyinQueryInstituteOrders(array $params);
315 312
316 /** 313 /**
317 * 查询MCN机构订单 314 * 查询MCN机构订单
@@ -319,7 +316,7 @@ interface BuyinInterface @@ -319,7 +316,7 @@ interface BuyinInterface
319 * @param array $params 316 * @param array $params
320 * @return ResultSet 317 * @return ResultSet
321 */ 318 */
322 - public function buyinInstituteOrderMCN(array $params); 319 + function buyinInstituteOrderMCN(array $params);
323 320
324 /** 321 /**
325 * 机构查询团长订单 322 * 机构查询团长订单
@@ -327,7 +324,7 @@ interface BuyinInterface @@ -327,7 +324,7 @@ interface BuyinInterface
327 * @param array $params 324 * @param array $params
328 * @return ResultSet 325 * @return ResultSet
329 */ 326 */
330 - public function buyinInstituteOrderColonel(array $params); 327 + function buyinInstituteOrderColonel(array $params);
331 328
332 /** 329 /**
333 * 商品选品来源转链 330 * 商品选品来源转链
@@ -335,7 +332,7 @@ interface BuyinInterface @@ -335,7 +332,7 @@ interface BuyinInterface
335 * @param array $params 332 * @param array $params
336 * @return ResultSet 333 * @return ResultSet
337 */ 334 */
338 - public function buyinInstPickSourceConvert(array $params); 335 + function buyinInstPickSourceConvert(array $params);
339 336
340 /** 337 /**
341 * 机构选品GMV查询接口 338 * 机构选品GMV查询接口
@@ -343,7 +340,7 @@ interface BuyinInterface @@ -343,7 +340,7 @@ interface BuyinInterface
343 * @param array $params 340 * @param array $params
344 * @return ResultSet 341 * @return ResultSet
345 */ 342 */
346 - public function buyinInstGmv(array $params); 343 + function buyinInstGmv(array $params);
347 344
348 /** 345 /**
349 * 机构选品GMV明细查询接口 346 * 机构选品GMV明细查询接口
@@ -351,7 +348,7 @@ interface BuyinInterface @@ -351,7 +348,7 @@ interface BuyinInterface
351 * @param array $params 348 * @param array $params
352 * @return ResultSet 349 * @return ResultSet
353 */ 350 */
354 - public function buyinInstGmvDetail(array $params); 351 + function buyinInstGmvDetail(array $params);
355 352
356 /** 353 /**
357 * 达人PID创建 354 * 达人PID创建
@@ -359,7 +356,7 @@ interface BuyinInterface @@ -359,7 +356,7 @@ interface BuyinInterface
359 * @param array $params 356 * @param array $params
360 * @return ResultSet 357 * @return ResultSet
361 */ 358 */
362 - public function buyinKolPidCreate(array $params); 359 + function buyinKolPidCreate(array $params);
363 360
364 /** 361 /**
365 * 达人PID查询接口 362 * 达人PID查询接口
@@ -367,7 +364,7 @@ interface BuyinInterface @@ -367,7 +364,7 @@ interface BuyinInterface
367 * @param array $params 364 * @param array $params
368 * @return ResultSet 365 * @return ResultSet
369 */ 366 */
370 - public function buyinKolPidList(array $params); 367 + function buyinKolPidList(array $params);
371 368
372 /** 369 /**
373 * 达人PID 编辑 370 * 达人PID 编辑
@@ -375,7 +372,7 @@ interface BuyinInterface @@ -375,7 +372,7 @@ interface BuyinInterface
375 * @param array $params 372 * @param array $params
376 * @return ResultSet 373 * @return ResultSet
377 */ 374 */
378 - public function buyinKolPidEdit(array $params); 375 + function buyinKolPidEdit(array $params);
379 376
380 /** 377 /**
381 * 达人PID删除 378 * 达人PID删除
@@ -383,7 +380,7 @@ interface BuyinInterface @@ -383,7 +380,7 @@ interface BuyinInterface
383 * @param array $params 380 * @param array $params
384 * @return ResultSet 381 * @return ResultSet
385 */ 382 */
386 - public function buyinKolPidDel(array $params); 383 + function buyinKolPidDel(array $params);
387 384
388 /** 385 /**
389 * 商品口令转商品解析 386 * 商品口令转商品解析
@@ -391,7 +388,7 @@ interface BuyinInterface @@ -391,7 +388,7 @@ interface BuyinInterface
391 * @param array $params 388 * @param array $params
392 * @return ResultSet 389 * @return ResultSet
393 */ 390 */
394 - public function buyinShareCommandParse(array $params); 391 + function buyinShareCommandParse(array $params);
395 392
396 /** 393 /**
397 * 达人商品分销转链 394 * 达人商品分销转链
@@ -399,7 +396,7 @@ interface BuyinInterface @@ -399,7 +396,7 @@ interface BuyinInterface
399 * @param array $params 396 * @param array $params
400 * @return ResultSet 397 * @return ResultSet
401 */ 398 */
402 - public function buyinKolProductShare(array $params); 399 + function buyinKolProductShare(array $params);
403 400
404 /** 401 /**
405 * 机构PID创建 402 * 机构PID创建
@@ -407,7 +404,7 @@ interface BuyinInterface @@ -407,7 +404,7 @@ interface BuyinInterface
407 * @param array $params 404 * @param array $params
408 * @return ResultSet 405 * @return ResultSet
409 */ 406 */
410 - public function buyinInstitutePidCreate(array $params); 407 + function buyinInstitutePidCreate(array $params);
411 408
412 /** 409 /**
413 * 机构PID查询接口 410 * 机构PID查询接口
@@ -415,7 +412,7 @@ interface BuyinInterface @@ -415,7 +412,7 @@ interface BuyinInterface
415 * @param array $params 412 * @param array $params
416 * @return ResultSet 413 * @return ResultSet
417 */ 414 */
418 - public function buyinInstitutePidList(array $params); 415 + function buyinInstitutePidList(array $params);
419 416
420 /** 417 /**
421 * 机构PID 编辑 418 * 机构PID 编辑
@@ -423,7 +420,7 @@ interface BuyinInterface @@ -423,7 +420,7 @@ interface BuyinInterface
423 * @param array $params 420 * @param array $params
424 * @return ResultSet 421 * @return ResultSet
425 */ 422 */
426 - public function buyinInstitutePidEdit(array $params); 423 + function buyinInstitutePidEdit(array $params);
427 424
428 /** 425 /**
429 * 机构PID删除 426 * 机构PID删除
@@ -431,7 +428,7 @@ interface BuyinInterface @@ -431,7 +428,7 @@ interface BuyinInterface
431 * @param array $params 428 * @param array $params
432 * @return ResultSet 429 * @return ResultSet
433 */ 430 */
434 - public function buyinInstitutePidDel(array $params); 431 + function buyinInstitutePidDel(array $params);
435 432
436 /** 433 /**
437 * 直播间分销物料查询 434 * 直播间分销物料查询
@@ -439,7 +436,7 @@ interface BuyinInterface @@ -439,7 +436,7 @@ interface BuyinInterface
439 * @param array $params 436 * @param array $params
440 * @return ResultSet 437 * @return ResultSet
441 */ 438 */
442 - public function buyinLiveShareMaterial(array $params); 439 + function buyinLiveShareMaterial(array $params);
443 440
444 /** 441 /**
445 * 分销直播间商品列表 442 * 分销直播间商品列表
@@ -447,7 +444,7 @@ interface BuyinInterface @@ -447,7 +444,7 @@ interface BuyinInterface
447 * @param array $params 444 * @param array $params
448 * @return ResultSet 445 * @return ResultSet
449 */ 446 */
450 - public function buyinDistributionLiveProductList(array $params); 447 + function buyinDistributionLiveProductList(array $params);
451 448
452 /** 449 /**
453 * 机构获取达人直播间分享链接 450 * 机构获取达人直播间分享链接
@@ -455,7 +452,7 @@ interface BuyinInterface @@ -455,7 +452,7 @@ interface BuyinInterface
455 * @param array $params 452 * @param array $params
456 * @return ResultSet 453 * @return ResultSet
457 */ 454 */
458 - public function buyinInstituteLiveShare(array $params); 455 + function buyinInstituteLiveShare(array $params);
459 456
460 /** 457 /**
461 * 查询抖客直播间分销订单 458 * 查询抖客直播间分销订单
@@ -463,7 +460,7 @@ interface BuyinInterface @@ -463,7 +460,7 @@ interface BuyinInterface
463 * @param array $params 460 * @param array $params
464 * @return ResultSet 461 * @return ResultSet
465 */ 462 */
466 - public function buyinInstituteOrderAds(array $params); 463 + function buyinInstituteOrderAds(array $params);
467 464
468 /** 465 /**
469 * 查询达人的直播间分销、商品分销、活动页分销订单 466 * 查询达人的直播间分销、商品分销、活动页分销订单
@@ -471,7 +468,7 @@ interface BuyinInterface @@ -471,7 +468,7 @@ interface BuyinInterface
471 * @param array $params 468 * @param array $params
472 * @return ResultSet 469 * @return ResultSet
473 */ 470 */
474 - public function buyinKolOrderAds(array $params); 471 + function buyinKolOrderAds(array $params);
475 472
476 /** 473 /**
477 * 店铺会员绑定渠道关系创建 474 * 店铺会员绑定渠道关系创建
@@ -479,7 +476,7 @@ interface BuyinInterface @@ -479,7 +476,7 @@ interface BuyinInterface
479 * @param array $params 476 * @param array $params
480 * @return ResultSet 477 * @return ResultSet
481 */ 478 */
482 - public function buyinShopPidMemberCreate(array $params); 479 + function buyinShopPidMemberCreate(array $params);
483 480
484 /** 481 /**
485 * 获取达人直播间分享链接 482 * 获取达人直播间分享链接
@@ -487,7 +484,7 @@ interface BuyinInterface @@ -487,7 +484,7 @@ interface BuyinInterface
487 * @param array $params 484 * @param array $params
488 * @return ResultSet 485 * @return ResultSet
489 */ 486 */
490 - public function buyinKolLiveShare(array $params); 487 + function buyinKolLiveShare(array $params);
491 488
492 /** 489 /**
493 * 团长托管商品审核 490 * 团长托管商品审核
@@ -495,7 +492,7 @@ interface BuyinInterface @@ -495,7 +492,7 @@ interface BuyinInterface
495 * @param array $params 492 * @param array $params
496 * @return ResultSet 493 * @return ResultSet
497 */ 494 */
498 - public function buyinMHandleTrusteeshipApply(array $params); 495 + function buyinMHandleTrusteeshipApply(array $params);
499 496
500 /** 497 /**
501 * 团长托管商品查询 498 * 团长托管商品查询
@@ -503,7 +500,7 @@ interface BuyinInterface @@ -503,7 +500,7 @@ interface BuyinInterface
503 * @param array $params 500 * @param array $params
504 * @return ResultSet 501 * @return ResultSet
505 */ 502 */
506 - public function buyinColoneltrusteeshipList(array $params); 503 + function buyinColonel/trusteeshipList(array $params);
507 504
508 /** 505 /**
509 * 选品订单明细查询接口 506 * 选品订单明细查询接口
@@ -511,7 +508,7 @@ interface BuyinInterface @@ -511,7 +508,7 @@ interface BuyinInterface
511 * @param array $params 508 * @param array $params
512 * @return ResultSet 509 * @return ResultSet
513 */ 510 */
514 - public function buyinInstituteOrderPick(array $params); 511 + function buyinInstituteOrderPick(array $params);
515 512
516 /** 513 /**
517 * 机构直播预告转链 514 * 机构直播预告转链
@@ -519,7 +516,7 @@ interface BuyinInterface @@ -519,7 +516,7 @@ interface BuyinInterface
519 * @param array $params 516 * @param array $params
520 * @return ResultSet 517 * @return ResultSet
521 */ 518 */
522 - public function buyinInstituteLivePreviewShare(array $params); 519 + function buyinInstituteLivePreviewShare(array $params);
523 520
524 /** 521 /**
525 * 达人直播预告转链 522 * 达人直播预告转链
@@ -527,7 +524,7 @@ interface BuyinInterface @@ -527,7 +524,7 @@ interface BuyinInterface
527 * @param array $params 524 * @param array $params
528 * @return ResultSet 525 * @return ResultSet
529 */ 526 */
530 - public function buyinKolLivePreviewShare(array $params); 527 + function buyinKolLivePreviewShare(array $params);
531 528
532 /** 529 /**
533 * 活动页转链接口 530 * 活动页转链接口
@@ -535,5 +532,5 @@ interface BuyinInterface @@ -535,5 +532,5 @@ interface BuyinInterface
535 * @param array $params 532 * @param array $params
536 * @return ResultSet 533 * @return ResultSet
537 */ 534 */
538 - public function buyinActivityShareConvert(array $params); 535 + function buyinActivityShareConvert(array $params);
539 } 536 }
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Coupons; 3 +namespace Lackoxygen\TiktokShop\Request\Coupons;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Coupons extends Passage implements CouponsInterface 7 +class Coupons extends Request implements CouponsInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Coupons;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\Coupons;
6 4
7 /** 5 /**
8 * @note 卡券API 6 * @note 卡券API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Crossborder; 3 +namespace Lackoxygen\TiktokShop\Request\Crossborder;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Crossborder extends Passage implements CrossborderInterface 7 +class Crossborder extends Request implements CrossborderInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Crossborder;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\Crossborder;
6 4
7 /** 5 /**
8 * @note 跨境API 6 * @note 跨境API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Iop; 3 +namespace Lackoxygen\TiktokShop\Request\Iop;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Iop extends Passage implements IopInterface 7 +class Iop extends Request implements IopInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Iop;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\Iop;
6 4
7 /** 5 /**
8 * @note 代发API 6 * @note 代发API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Logistics; 3 +namespace Lackoxygen\TiktokShop\Request\Logistics;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Logistics extends Passage implements LogisticsInterface 7 +class Logistics extends Request implements LogisticsInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Logistics;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\Logistics;
6 4
7 /** 5 /**
8 * @note 物流发货API 6 * @note 物流发货API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Material; 3 +namespace Lackoxygen\TiktokShop\Request\Material;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Material extends Passage implements MaterialInterface 7 +class Material extends Request implements MaterialInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
@@ -207,6 +207,17 @@ class Material extends Passage implements MaterialInterface @@ -207,6 +207,17 @@ class Material extends Passage implements MaterialInterface
207 /** 207 /**
208 * @inheritDoc 208 * @inheritDoc
209 */ 209 */
  210 + public function materialMGetPlayInfo(array $params)
  211 + {
  212 + $this->builder->method('POST')
  213 + ->service('material.mGetPlayInfo')
  214 + ->path('/material/mGetPlayInfo')
  215 + ->params($params);
  216 + }
  217 +
  218 + /**
  219 + * @inheritDoc
  220 + */
210 public function materialEasyShuttle(array $params) 221 public function materialEasyShuttle(array $params)
211 { 222 {
212 $this->builder->method('POST') 223 $this->builder->method('POST')
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Material;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\Material;
6 4
7 /** 5 /**
8 * @note 素材中心API 6 * @note 素材中心API
@@ -154,6 +152,14 @@ interface MaterialInterface @@ -154,6 +152,14 @@ interface MaterialInterface
154 public function materialGetCapInfo(array $params); 152 public function materialGetCapInfo(array $params);
155 153
156 /** 154 /**
  155 + * 批量获取视频信息
  156 + * @link https://op.jinritemai.com/docs/api-docs/69/2164
  157 + * @param array $params
  158 + * @return ResultSet
  159 + */
  160 + public function materialMGetPlayInfo(array $params);
  161 +
  162 + /**
157 * 一键删除 163 * 一键删除
158 * @link https://op.jinritemai.com/docs/api-docs/69/1955 164 * @link https://op.jinritemai.com/docs/api-docs/69/1955
159 * @param array $params 165 * @param array $params
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Member; 3 +namespace Lackoxygen\TiktokShop\Request\Member;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Member extends Passage implements MemberInterface 7 +class Member extends Request implements MemberInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Member;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\Member;
6 4
7 /** 5 /**
8 * @note 会员中心API 6 * @note 会员中心API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\OpenCloud; 3 +namespace Lackoxygen\TiktokShop\Request\OpenCloud;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class OpenCloud extends Passage implements OpenCloudInterface 7 +class OpenCloud extends Request implements OpenCloudInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\OpenCloud;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\OpenCloud;
6 4
7 /** 5 /**
8 * @note 电商云API 6 * @note 电商云API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Order; 3 +namespace Lackoxygen\TiktokShop\Request\Order;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Order extends Passage implements OrderInterface 7 +class Order extends Request implements OrderInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Order;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\Order;
6 4
7 /** 5 /**
8 * @note 订单API 6 * @note 订单API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\OrderCode; 3 +namespace Lackoxygen\TiktokShop\Request\OrderCode;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class OrderCode extends Passage implements OrderCodeInterface 7 +class OrderCode extends Request implements OrderCodeInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\OrderCode;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\OrderCode;
6 4
7 /** 5 /**
8 * @note BIC质检API 6 * @note BIC质检API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Pigeon; 3 +namespace Lackoxygen\TiktokShop\Request\Pigeon;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Pigeon extends Passage implements PigeonInterface 7 +class Pigeon extends Request implements PigeonInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Pigeon;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\Pigeon;
6 4
7 /** 5 /**
8 * @note 飞鸽API 6 * @note 飞鸽API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Product; 3 +namespace Lackoxygen\TiktokShop\Request\Product;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Product extends Passage implements ProductInterface 7 +class Product extends Request implements ProductInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Product;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\Product;
6 4
7 /** 5 /**
8 * @note 商品API 6 * @note 商品API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Recycle; 3 +namespace Lackoxygen\TiktokShop\Request\Recycle;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Recycle extends Passage implements RecycleInterface 7 +class Recycle extends Request implements RecycleInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Recycle;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\Recycle;
6 4
7 /** 5 /**
8 * @note 回收寄卖API 6 * @note 回收寄卖API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage; 3 +namespace Lackoxygen\TiktokShop\Request;
4 4
5 -use Lackoxygen\TiktokShop\Attribute\Config; 5 +use Lackoxygen\TiktokShop\Attribute\Config\Config;
  6 +use Lackoxygen\TiktokShop\Attribute\Config\Option;
6 use Lackoxygen\TiktokShop\Exception\ClientException; 7 use Lackoxygen\TiktokShop\Exception\ClientException;
7 -use Lackoxygen\TiktokShop\Transmit\Builder; 8 +use Lackoxygen\TiktokShop\Support\Client\Builder;
8 use Psr\Http\Message\ResponseInterface; 9 use Psr\Http\Message\ResponseInterface;
9 10
10 -abstract class Passage 11 +abstract class Request extends Config
11 { 12 {
12 - protected Config $config;  
13 - 13 + /**
  14 + * @var Builder
  15 + */
14 protected Builder $builder; 16 protected Builder $builder;
15 17
16 /** 18 /**
17 - * @param Config $config 19 + * @param Option $config
18 * @param string $method 20 * @param string $method
19 */ 21 */
20 - public function __construct(Config $config, string $method) 22 + public function __construct(Option $config, string $method)
21 { 23 {
22 - $this->config = $config;  
23 - $this->builder = Builder::create($config, get_class($this), $method); 24 + parent::__construct($config);
  25 +
  26 + $this->builder = Builder::create(
  27 + $config,
  28 + get_class($this),
  29 + $method
  30 + );
24 } 31 }
25 32
26 /** 33 /**
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Request;
  4 +
  5 +use Lackoxygen\TiktokShop\Attribute\Config\Config;
  6 +use Lackoxygen\TiktokShop\Attribute\Config\Option;
  7 +use Lackoxygen\TiktokShop\Exception\ClientException;
  8 +use Lackoxygen\TiktokShop\Response\ResultSet;
  9 +
  10 +class RequestProxy extends Config
  11 +{
  12 + /**
  13 + * @var string
  14 + */
  15 + protected string $request;
  16 +
  17 + /**
  18 + * @param Option $config
  19 + * @param string $request
  20 + */
  21 + protected function __construct(Option $config, string $request)
  22 + {
  23 + parent::__construct($config);
  24 +
  25 + $this->request = $request;
  26 + }
  27 +
  28 + /**
  29 + * @param string $request
  30 + * @param Option $config
  31 + * @return RequestProxy
  32 + */
  33 + public static function proxy(string $request, Option $config): RequestProxy
  34 + {
  35 + return new self($config, $request);
  36 + }
  37 +
  38 + /**
  39 + * @throws ClientException
  40 + */
  41 + public function __call($name, $arguments): ResultSet
  42 + {
  43 + /**
  44 + * @var Request $request
  45 + */
  46 + $request = new $this->request($this->config, $name);
  47 +
  48 + $result = call_user_func_array([$request, $name], $arguments);
  49 +
  50 + if (!is_null($result)) {
  51 + return new ResultSet($result);
  52 + }
  53 +
  54 + return new ResultSet($request());
  55 + }
  56 +}
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Sms; 3 +namespace Lackoxygen\TiktokShop\Request\Sms;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Sms extends Passage implements SmsInterface 7 +class Sms extends Request implements SmsInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
11 */ 11 */
12 - public function smsTemplateapply(array $params) 12 + function smsTemplate/apply(array $params)
13 { 13 {
14 $this->builder->method('POST') 14 $this->builder->method('POST')
15 ->service('sms.template/apply') 15 ->service('sms.template/apply')
@@ -20,7 +20,7 @@ class Sms extends Passage implements SmsInterface @@ -20,7 +20,7 @@ class Sms extends Passage implements SmsInterface
20 /** 20 /**
21 * @inheritDoc 21 * @inheritDoc
22 */ 22 */
23 - public function smsPublictemplate(array $params) 23 + function smsPublic/template(array $params)
24 { 24 {
25 $this->builder->method('POST') 25 $this->builder->method('POST')
26 ->service('sms.public/template') 26 ->service('sms.public/template')
@@ -31,7 +31,7 @@ class Sms extends Passage implements SmsInterface @@ -31,7 +31,7 @@ class Sms extends Passage implements SmsInterface
31 /** 31 /**
32 * @inheritDoc 32 * @inheritDoc
33 */ 33 */
34 - public function smsSignapply(array $params) 34 + function smsSign/apply(array $params)
35 { 35 {
36 $this->builder->method('POST') 36 $this->builder->method('POST')
37 ->service('sms.sign/apply') 37 ->service('sms.sign/apply')
@@ -42,7 +42,7 @@ class Sms extends Passage implements SmsInterface @@ -42,7 +42,7 @@ class Sms extends Passage implements SmsInterface
42 /** 42 /**
43 * @inheritDoc 43 * @inheritDoc
44 */ 44 */
45 - public function smsTemplaterevoke(array $params) 45 + function smsTemplate/revoke(array $params)
46 { 46 {
47 $this->builder->method('POST') 47 $this->builder->method('POST')
48 ->service('sms.template/revoke') 48 ->service('sms.template/revoke')
@@ -53,7 +53,7 @@ class Sms extends Passage implements SmsInterface @@ -53,7 +53,7 @@ class Sms extends Passage implements SmsInterface
53 /** 53 /**
54 * @inheritDoc 54 * @inheritDoc
55 */ 55 */
56 - public function smsSignapplylist(array $params) 56 + function smsSign/apply/list(array $params)
57 { 57 {
58 $this->builder->method('POST') 58 $this->builder->method('POST')
59 ->service('sms.sign/apply/list') 59 ->service('sms.sign/apply/list')
@@ -64,7 +64,7 @@ class Sms extends Passage implements SmsInterface @@ -64,7 +64,7 @@ class Sms extends Passage implements SmsInterface
64 /** 64 /**
65 * @inheritDoc 65 * @inheritDoc
66 */ 66 */
67 - public function smsSend(array $params) 67 + function smsSend(array $params)
68 { 68 {
69 $this->builder->method('POST') 69 $this->builder->method('POST')
70 ->service('sms.send') 70 ->service('sms.send')
@@ -75,7 +75,7 @@ class Sms extends Passage implements SmsInterface @@ -75,7 +75,7 @@ class Sms extends Passage implements SmsInterface
75 /** 75 /**
76 * @inheritDoc 76 * @inheritDoc
77 */ 77 */
78 - public function smsBatchSend(array $params) 78 + function smsBatchSend(array $params)
79 { 79 {
80 $this->builder->method('POST') 80 $this->builder->method('POST')
81 ->service('sms.batchSend') 81 ->service('sms.batchSend')
@@ -86,7 +86,7 @@ class Sms extends Passage implements SmsInterface @@ -86,7 +86,7 @@ class Sms extends Passage implements SmsInterface
86 /** 86 /**
87 * @inheritDoc 87 * @inheritDoc
88 */ 88 */
89 - public function smsSigndelete(array $params) 89 + function smsSign/delete(array $params)
90 { 90 {
91 $this->builder->method('POST') 91 $this->builder->method('POST')
92 ->service('sms.sign/delete') 92 ->service('sms.sign/delete')
@@ -97,7 +97,7 @@ class Sms extends Passage implements SmsInterface @@ -97,7 +97,7 @@ class Sms extends Passage implements SmsInterface
97 /** 97 /**
98 * @inheritDoc 98 * @inheritDoc
99 */ 99 */
100 - public function smsSignapplyrevoke(array $params) 100 + function smsSign/apply/revoke(array $params)
101 { 101 {
102 $this->builder->method('POST') 102 $this->builder->method('POST')
103 ->service('sms.sign/apply/revoke') 103 ->service('sms.sign/apply/revoke')
@@ -108,7 +108,7 @@ class Sms extends Passage implements SmsInterface @@ -108,7 +108,7 @@ class Sms extends Passage implements SmsInterface
108 /** 108 /**
109 * @inheritDoc 109 * @inheritDoc
110 */ 110 */
111 - public function smsTemplatedelete(array $params) 111 + function smsTemplate/delete(array $params)
112 { 112 {
113 $this->builder->method('POST') 113 $this->builder->method('POST')
114 ->service('sms.template/delete') 114 ->service('sms.template/delete')
@@ -119,7 +119,7 @@ class Sms extends Passage implements SmsInterface @@ -119,7 +119,7 @@ class Sms extends Passage implements SmsInterface
119 /** 119 /**
120 * @inheritDoc 120 * @inheritDoc
121 */ 121 */
122 - public function smsSendResult(array $params) 122 + function smsSendResult(array $params)
123 { 123 {
124 $this->builder->method('POST') 124 $this->builder->method('POST')
125 ->service('sms.sendResult') 125 ->service('sms.sendResult')
@@ -130,7 +130,7 @@ class Sms extends Passage implements SmsInterface @@ -130,7 +130,7 @@ class Sms extends Passage implements SmsInterface
130 /** 130 /**
131 * @inheritDoc 131 * @inheritDoc
132 */ 132 */
133 - public function smsTemplateapplylist(array $params) 133 + function smsTemplate/apply/list(array $params)
134 { 134 {
135 $this->builder->method('POST') 135 $this->builder->method('POST')
136 ->service('sms.template/apply/list') 136 ->service('sms.template/apply/list')
@@ -141,7 +141,7 @@ class Sms extends Passage implements SmsInterface @@ -141,7 +141,7 @@ class Sms extends Passage implements SmsInterface
141 /** 141 /**
142 * @inheritDoc 142 * @inheritDoc
143 */ 143 */
144 - public function smsSignsearch(array $params) 144 + function smsSign/search(array $params)
145 { 145 {
146 $this->builder->method('POST') 146 $this->builder->method('POST')
147 ->service('sms.sign/search') 147 ->service('sms.sign/search')
@@ -152,7 +152,7 @@ class Sms extends Passage implements SmsInterface @@ -152,7 +152,7 @@ class Sms extends Passage implements SmsInterface
152 /** 152 /**
153 * @inheritDoc 153 * @inheritDoc
154 */ 154 */
155 - public function smsTemplatesearch(array $params) 155 + function smsTemplate/search(array $params)
156 { 156 {
157 $this->builder->method('POST') 157 $this->builder->method('POST')
158 ->service('sms.template/search') 158 ->service('sms.template/search')
1 <?php 1 <?php
2 -  
3 -namespace Lackoxygen\TiktokShop\Passage\Sms;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 2 +namespace Lackoxygen\TiktokShop\Request\Sms;
6 3
7 /** 4 /**
8 * @note 短信API 5 * @note 短信API
@@ -15,7 +12,7 @@ interface SmsInterface @@ -15,7 +12,7 @@ interface SmsInterface
15 * @param array $params 12 * @param array $params
16 * @return ResultSet 13 * @return ResultSet
17 */ 14 */
18 - public function smsTemplateapply(array $params); 15 + function smsTemplate/apply(array $params);
19 16
20 /** 17 /**
21 * 公共模版查询接口 18 * 公共模版查询接口
@@ -23,7 +20,7 @@ interface SmsInterface @@ -23,7 +20,7 @@ interface SmsInterface
23 * @param array $params 20 * @param array $params
24 * @return ResultSet 21 * @return ResultSet
25 */ 22 */
26 - public function smsPublictemplate(array $params); 23 + function smsPublic/template(array $params);
27 24
28 /** 25 /**
29 * 提交短信签名申请单 26 * 提交短信签名申请单
@@ -31,7 +28,7 @@ interface SmsInterface @@ -31,7 +28,7 @@ interface SmsInterface
31 * @param array $params 28 * @param array $params
32 * @return ResultSet 29 * @return ResultSet
33 */ 30 */
34 - public function smsSignapply(array $params); 31 + function smsSign/apply(array $params);
35 32
36 /** 33 /**
37 * 撤销短信模板申请单 34 * 撤销短信模板申请单
@@ -39,7 +36,7 @@ interface SmsInterface @@ -39,7 +36,7 @@ interface SmsInterface
39 * @param array $params 36 * @param array $params
40 * @return ResultSet 37 * @return ResultSet
41 */ 38 */
42 - public function smsTemplaterevoke(array $params); 39 + function smsTemplate/revoke(array $params);
43 40
44 /** 41 /**
45 * 查看短信签名申请单 42 * 查看短信签名申请单
@@ -47,7 +44,7 @@ interface SmsInterface @@ -47,7 +44,7 @@ interface SmsInterface
47 * @param array $params 44 * @param array $params
48 * @return ResultSet 45 * @return ResultSet
49 */ 46 */
50 - public function smsSignapplylist(array $params); 47 + function smsSign/apply/list(array $params);
51 48
52 /** 49 /**
53 * 短信发送 50 * 短信发送
@@ -55,7 +52,7 @@ interface SmsInterface @@ -55,7 +52,7 @@ interface SmsInterface
55 * @param array $params 52 * @param array $params
56 * @return ResultSet 53 * @return ResultSet
57 */ 54 */
58 - public function smsSend(array $params); 55 + function smsSend(array $params);
59 56
60 /** 57 /**
61 * 批量短信发送 58 * 批量短信发送
@@ -63,7 +60,7 @@ interface SmsInterface @@ -63,7 +60,7 @@ interface SmsInterface
63 * @param array $params 60 * @param array $params
64 * @return ResultSet 61 * @return ResultSet
65 */ 62 */
66 - public function smsBatchSend(array $params); 63 + function smsBatchSend(array $params);
67 64
68 /** 65 /**
69 * 删除短信签名 66 * 删除短信签名
@@ -71,7 +68,7 @@ interface SmsInterface @@ -71,7 +68,7 @@ interface SmsInterface
71 * @param array $params 68 * @param array $params
72 * @return ResultSet 69 * @return ResultSet
73 */ 70 */
74 - public function smsSigndelete(array $params); 71 + function smsSign/delete(array $params);
75 72
76 /** 73 /**
77 * 撤销短信签名申请单 74 * 撤销短信签名申请单
@@ -79,7 +76,7 @@ interface SmsInterface @@ -79,7 +76,7 @@ interface SmsInterface
79 * @param array $params 76 * @param array $params
80 * @return ResultSet 77 * @return ResultSet
81 */ 78 */
82 - public function smsSignapplyrevoke(array $params); 79 + function smsSign/apply/revoke(array $params);
83 80
84 /** 81 /**
85 * 删除短信模板 82 * 删除短信模板
@@ -87,7 +84,7 @@ interface SmsInterface @@ -87,7 +84,7 @@ interface SmsInterface
87 * @param array $params 84 * @param array $params
88 * @return ResultSet 85 * @return ResultSet
89 */ 86 */
90 - public function smsTemplatedelete(array $params); 87 + function smsTemplate/delete(array $params);
91 88
92 /** 89 /**
93 * 查询短信发送结果 90 * 查询短信发送结果
@@ -95,7 +92,7 @@ interface SmsInterface @@ -95,7 +92,7 @@ interface SmsInterface
95 * @param array $params 92 * @param array $params
96 * @return ResultSet 93 * @return ResultSet
97 */ 94 */
98 - public function smsSendResult(array $params); 95 + function smsSendResult(array $params);
99 96
100 /** 97 /**
101 * 查询短信模板申请单 98 * 查询短信模板申请单
@@ -103,7 +100,7 @@ interface SmsInterface @@ -103,7 +100,7 @@ interface SmsInterface
103 * @param array $params 100 * @param array $params
104 * @return ResultSet 101 * @return ResultSet
105 */ 102 */
106 - public function smsTemplateapplylist(array $params); 103 + function smsTemplate/apply/list(array $params);
107 104
108 /** 105 /**
109 * 查看短信签名 106 * 查看短信签名
@@ -111,7 +108,7 @@ interface SmsInterface @@ -111,7 +108,7 @@ interface SmsInterface
111 * @param array $params 108 * @param array $params
112 * @return ResultSet 109 * @return ResultSet
113 */ 110 */
114 - public function smsSignsearch(array $params); 111 + function smsSign/search(array $params);
115 112
116 /** 113 /**
117 * 查询短信模板 114 * 查询短信模板
@@ -119,5 +116,5 @@ interface SmsInterface @@ -119,5 +116,5 @@ interface SmsInterface
119 * @param array $params 116 * @param array $params
120 * @return ResultSet 117 * @return ResultSet
121 */ 118 */
122 - public function smsTemplatesearch(array $params); 119 + function smsTemplate/search(array $params);
123 } 120 }
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\SupplyChain; 3 +namespace Lackoxygen\TiktokShop\Request\SupplyChain;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class SupplyChain extends Passage implements SupplyChainInterface 7 +class SupplyChain extends Request implements SupplyChainInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\SupplyChain;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\SupplyChain;
6 4
7 /** 5 /**
8 * @note 供销平台API 6 * @note 供销平台API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Token; 3 +namespace Lackoxygen\TiktokShop\Request\Token;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Token extends Passage implements TokenInterface 7 +class Token extends Request implements TokenInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Token;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\Token;
6 4
7 /** 5 /**
8 * @note 工具API 6 * @note 工具API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Topup; 3 +namespace Lackoxygen\TiktokShop\Request\Topup;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Topup extends Passage implements TopupInterface 7 +class Topup extends Request implements TopupInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Topup;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\Topup;
6 4
7 /** 5 /**
8 * @note 虚拟充值API 6 * @note 虚拟充值API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Warehouse; 3 +namespace Lackoxygen\TiktokShop\Request\Warehouse;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Warehouse extends Passage implements WarehouseInterface 7 +class Warehouse extends Request implements WarehouseInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
11 */ 11 */
12 - public function skuStockNum(array $params) 12 + function skuStockNum(array $params)
13 { 13 {
14 $this->builder->method('POST') 14 $this->builder->method('POST')
15 ->service('sku.stockNum') 15 ->service('sku.stockNum')
@@ -20,7 +20,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -20,7 +20,7 @@ class Warehouse extends Passage implements WarehouseInterface
20 /** 20 /**
21 * @inheritDoc 21 * @inheritDoc
22 */ 22 */
23 - public function skuSyncStock(array $params) 23 + function skuSyncStock(array $params)
24 { 24 {
25 $this->builder->method('POST') 25 $this->builder->method('POST')
26 ->service('sku.syncStock') 26 ->service('sku.syncStock')
@@ -31,7 +31,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -31,7 +31,7 @@ class Warehouse extends Passage implements WarehouseInterface
31 /** 31 /**
32 * @inheritDoc 32 * @inheritDoc
33 */ 33 */
34 - public function warehouseadjustInventory(array $params) 34 + function /warehouse/adjustInventory(array $params)
35 { 35 {
36 $this->builder->method('POST') 36 $this->builder->method('POST')
37 ->service('/warehouse/adjustInventory') 37 ->service('/warehouse/adjustInventory')
@@ -42,7 +42,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -42,7 +42,7 @@ class Warehouse extends Passage implements WarehouseInterface
42 /** 42 /**
43 * @inheritDoc 43 * @inheritDoc
44 */ 44 */
45 - public function skuSyncStockBatch(array $params) 45 + function skuSyncStockBatch(array $params)
46 { 46 {
47 $this->builder->method('POST') 47 $this->builder->method('POST')
48 ->service('sku.syncStockBatch') 48 ->service('sku.syncStockBatch')
@@ -53,7 +53,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -53,7 +53,7 @@ class Warehouse extends Passage implements WarehouseInterface
53 /** 53 /**
54 * @inheritDoc 54 * @inheritDoc
55 */ 55 */
56 - public function warehouseSetFence(array $params) 56 + function warehouseSetFence(array $params)
57 { 57 {
58 $this->builder->method('POST') 58 $this->builder->method('POST')
59 ->service('warehouse.setFence') 59 ->service('warehouse.setFence')
@@ -64,7 +64,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -64,7 +64,7 @@ class Warehouse extends Passage implements WarehouseInterface
64 /** 64 /**
65 * @inheritDoc 65 * @inheritDoc
66 */ 66 */
67 - public function warehouseGetFences(array $params) 67 + function warehouseGetFences(array $params)
68 { 68 {
69 $this->builder->method('POST') 69 $this->builder->method('POST')
70 ->service('warehouse.getFences') 70 ->service('warehouse.getFences')
@@ -75,7 +75,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -75,7 +75,7 @@ class Warehouse extends Passage implements WarehouseInterface
75 /** 75 /**
76 * @inheritDoc 76 * @inheritDoc
77 */ 77 */
78 - public function warehouseCreateFence(array $params) 78 + function warehouseCreateFence(array $params)
79 { 79 {
80 $this->builder->method('POST') 80 $this->builder->method('POST')
81 ->service('warehouse.createFence') 81 ->service('warehouse.createFence')
@@ -86,7 +86,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -86,7 +86,7 @@ class Warehouse extends Passage implements WarehouseInterface
86 /** 86 /**
87 * @inheritDoc 87 * @inheritDoc
88 */ 88 */
89 - public function warehouseUnbindFences(array $params) 89 + function warehouseUnbindFences(array $params)
90 { 90 {
91 $this->builder->method('POST') 91 $this->builder->method('POST')
92 ->service('warehouse.unbindFences') 92 ->service('warehouse.unbindFences')
@@ -97,7 +97,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -97,7 +97,7 @@ class Warehouse extends Passage implements WarehouseInterface
97 /** 97 /**
98 * @inheritDoc 98 * @inheritDoc
99 */ 99 */
100 - public function warehouseRemoveAddr(array $params) 100 + function warehouseRemoveAddr(array $params)
101 { 101 {
102 $this->builder->method('POST') 102 $this->builder->method('POST')
103 ->service('warehouse.removeAddr') 103 ->service('warehouse.removeAddr')
@@ -108,7 +108,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -108,7 +108,7 @@ class Warehouse extends Passage implements WarehouseInterface
108 /** 108 /**
109 * @inheritDoc 109 * @inheritDoc
110 */ 110 */
111 - public function promiseSetSkuShipTime(array $params) 111 + function promiseSetSkuShipTime(array $params)
112 { 112 {
113 $this->builder->method('POST') 113 $this->builder->method('POST')
114 ->service('promise.setSkuShipTime') 114 ->service('promise.setSkuShipTime')
@@ -119,7 +119,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -119,7 +119,7 @@ class Warehouse extends Passage implements WarehouseInterface
119 /** 119 /**
120 * @inheritDoc 120 * @inheritDoc
121 */ 121 */
122 - public function warehouseInfo(array $params) 122 + function warehouseInfo(array $params)
123 { 123 {
124 $this->builder->method('POST') 124 $this->builder->method('POST')
125 ->service('warehouse.info') 125 ->service('warehouse.info')
@@ -130,7 +130,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -130,7 +130,7 @@ class Warehouse extends Passage implements WarehouseInterface
130 /** 130 /**
131 * @inheritDoc 131 * @inheritDoc
132 */ 132 */
133 - public function warehouseEdit(array $params) 133 + function warehouseEdit(array $params)
134 { 134 {
135 $this->builder->method('POST') 135 $this->builder->method('POST')
136 ->service('warehouse.edit') 136 ->service('warehouse.edit')
@@ -141,7 +141,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -141,7 +141,7 @@ class Warehouse extends Passage implements WarehouseInterface
141 /** 141 /**
142 * @inheritDoc 142 * @inheritDoc
143 */ 143 */
144 - public function warehouseCreate(array $params) 144 + function warehouseCreate(array $params)
145 { 145 {
146 $this->builder->method('POST') 146 $this->builder->method('POST')
147 ->service('warehouse.create') 147 ->service('warehouse.create')
@@ -152,7 +152,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -152,7 +152,7 @@ class Warehouse extends Passage implements WarehouseInterface
152 /** 152 /**
153 * @inheritDoc 153 * @inheritDoc
154 */ 154 */
155 - public function warehouseSetAddr(array $params) 155 + function warehouseSetAddr(array $params)
156 { 156 {
157 $this->builder->method('POST') 157 $this->builder->method('POST')
158 ->service('warehouse.setAddr') 158 ->service('warehouse.setAddr')
@@ -163,7 +163,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -163,7 +163,7 @@ class Warehouse extends Passage implements WarehouseInterface
163 /** 163 /**
164 * @inheritDoc 164 * @inheritDoc
165 */ 165 */
166 - public function warehouseList(array $params) 166 + function warehouseList(array $params)
167 { 167 {
168 $this->builder->method('POST') 168 $this->builder->method('POST')
169 ->service('warehouse.list') 169 ->service('warehouse.list')
@@ -174,7 +174,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -174,7 +174,7 @@ class Warehouse extends Passage implements WarehouseInterface
174 /** 174 /**
175 * @inheritDoc 175 * @inheritDoc
176 */ 176 */
177 - public function warehouseSetAddrBatch(array $params) 177 + function warehouseSetAddrBatch(array $params)
178 { 178 {
179 $this->builder->method('POST') 179 $this->builder->method('POST')
180 ->service('warehouse.setAddrBatch') 180 ->service('warehouse.setAddrBatch')
@@ -185,7 +185,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -185,7 +185,7 @@ class Warehouse extends Passage implements WarehouseInterface
185 /** 185 /**
186 * @inheritDoc 186 * @inheritDoc
187 */ 187 */
188 - public function warehouseCreateBatch(array $params) 188 + function warehouseCreateBatch(array $params)
189 { 189 {
190 $this->builder->method('POST') 190 $this->builder->method('POST')
191 ->service('warehouse.createBatch') 191 ->service('warehouse.createBatch')
@@ -196,7 +196,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -196,7 +196,7 @@ class Warehouse extends Passage implements WarehouseInterface
196 /** 196 /**
197 * @inheritDoc 197 * @inheritDoc
198 */ 198 */
199 - public function warehouseSetPriority(array $params) 199 + function warehouseSetPriority(array $params)
200 { 200 {
201 $this->builder->method('POST') 201 $this->builder->method('POST')
202 ->service('warehouse.setPriority') 202 ->service('warehouse.setPriority')
@@ -207,7 +207,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -207,7 +207,7 @@ class Warehouse extends Passage implements WarehouseInterface
207 /** 207 /**
208 * @inheritDoc 208 * @inheritDoc
209 */ 209 */
210 - public function warehouseDelFence(array $params) 210 + function warehouseDelFence(array $params)
211 { 211 {
212 $this->builder->method('POST') 212 $this->builder->method('POST')
213 ->service('warehouse.delFence') 213 ->service('warehouse.delFence')
@@ -218,7 +218,7 @@ class Warehouse extends Passage implements WarehouseInterface @@ -218,7 +218,7 @@ class Warehouse extends Passage implements WarehouseInterface
218 /** 218 /**
219 * @inheritDoc 219 * @inheritDoc
220 */ 220 */
221 - public function warehouseBindFences(array $params) 221 + function warehouseBindFences(array $params)
222 { 222 {
223 $this->builder->method('POST') 223 $this->builder->method('POST')
224 ->service('warehouse.bindFences') 224 ->service('warehouse.bindFences')
1 <?php 1 <?php
2 -  
3 -namespace Lackoxygen\TiktokShop\Passage\Warehouse;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 2 +namespace Lackoxygen\TiktokShop\Request\Warehouse;
6 3
7 /** 4 /**
8 * @note 库存API 5 * @note 库存API
@@ -15,7 +12,7 @@ interface WarehouseInterface @@ -15,7 +12,7 @@ interface WarehouseInterface
15 * @param array $params 12 * @param array $params
16 * @return ResultSet 13 * @return ResultSet
17 */ 14 */
18 - public function skuStockNum(array $params); 15 + function skuStockNum(array $params);
19 16
20 /** 17 /**
21 * 修改sku库存 18 * 修改sku库存
@@ -23,7 +20,7 @@ interface WarehouseInterface @@ -23,7 +20,7 @@ interface WarehouseInterface
23 * @param array $params 20 * @param array $params
24 * @return ResultSet 21 * @return ResultSet
25 */ 22 */
26 - public function skuSyncStock(array $params); 23 + function skuSyncStock(array $params);
27 24
28 /** 25 /**
29 * 库存调整(盘点和转移) 26 * 库存调整(盘点和转移)
@@ -31,7 +28,7 @@ interface WarehouseInterface @@ -31,7 +28,7 @@ interface WarehouseInterface
31 * @param array $params 28 * @param array $params
32 * @return ResultSet 29 * @return ResultSet
33 */ 30 */
34 - public function warehouseadjustInventory(array $params); 31 + function /warehouse/adjustInventory(array $params);
35 32
36 /** 33 /**
37 * 批量同步接口 34 * 批量同步接口
@@ -39,7 +36,7 @@ interface WarehouseInterface @@ -39,7 +36,7 @@ interface WarehouseInterface
39 * @param array $params 36 * @param array $params
40 * @return ResultSet 37 * @return ResultSet
41 */ 38 */
42 - public function skuSyncStockBatch(array $params); 39 + function skuSyncStockBatch(array $params);
43 40
44 /** 41 /**
45 * 修改围栏信息 42 * 修改围栏信息
@@ -47,7 +44,7 @@ interface WarehouseInterface @@ -47,7 +44,7 @@ interface WarehouseInterface
47 * @param array $params 44 * @param array $params
48 * @return ResultSet 45 * @return ResultSet
49 */ 46 */
50 - public function warehouseSetFence(array $params); 47 + function warehouseSetFence(array $params);
51 48
52 /** 49 /**
53 * 获取电子围栏信息/列表 50 * 获取电子围栏信息/列表
@@ -55,7 +52,7 @@ interface WarehouseInterface @@ -55,7 +52,7 @@ interface WarehouseInterface
55 * @param array $params 52 * @param array $params
56 * @return ResultSet 53 * @return ResultSet
57 */ 54 */
58 - public function warehouseGetFences(array $params); 55 + function warehouseGetFences(array $params);
59 56
60 /** 57 /**
61 * 创建电子围栏 58 * 创建电子围栏
@@ -63,7 +60,7 @@ interface WarehouseInterface @@ -63,7 +60,7 @@ interface WarehouseInterface
63 * @param array $params 60 * @param array $params
64 * @return ResultSet 61 * @return ResultSet
65 */ 62 */
66 - public function warehouseCreateFence(array $params); 63 + function warehouseCreateFence(array $params);
67 64
68 /** 65 /**
69 * 接绑电子围栏 66 * 接绑电子围栏
@@ -71,7 +68,7 @@ interface WarehouseInterface @@ -71,7 +68,7 @@ interface WarehouseInterface
71 * @param array $params 68 * @param array $params
72 * @return ResultSet 69 * @return ResultSet
73 */ 70 */
74 - public function warehouseUnbindFences(array $params); 71 + function warehouseUnbindFences(array $params);
75 72
76 /** 73 /**
77 * 地址与区域仓解绑 74 * 地址与区域仓解绑
@@ -79,7 +76,7 @@ interface WarehouseInterface @@ -79,7 +76,7 @@ interface WarehouseInterface
79 * @param array $params 76 * @param array $params
80 * @return ResultSet 77 * @return ResultSet
81 */ 78 */
82 - public function warehouseRemoveAddr(array $params); 79 + function warehouseRemoveAddr(array $params);
83 80
84 /** 81 /**
85 * 设置sku发货时效 82 * 设置sku发货时效
@@ -87,7 +84,7 @@ interface WarehouseInterface @@ -87,7 +84,7 @@ interface WarehouseInterface
87 * @param array $params 84 * @param array $params
88 * @return ResultSet 85 * @return ResultSet
89 */ 86 */
90 - public function promiseSetSkuShipTime(array $params); 87 + function promiseSetSkuShipTime(array $params);
91 88
92 /** 89 /**
93 * 查询区域仓 90 * 查询区域仓
@@ -95,7 +92,7 @@ interface WarehouseInterface @@ -95,7 +92,7 @@ interface WarehouseInterface
95 * @param array $params 92 * @param array $params
96 * @return ResultSet 93 * @return ResultSet
97 */ 94 */
98 - public function warehouseInfo(array $params); 95 + function warehouseInfo(array $params);
99 96
100 /** 97 /**
101 * 编辑区域仓 98 * 编辑区域仓
@@ -103,7 +100,7 @@ interface WarehouseInterface @@ -103,7 +100,7 @@ interface WarehouseInterface
103 * @param array $params 100 * @param array $params
104 * @return ResultSet 101 * @return ResultSet
105 */ 102 */
106 - public function warehouseEdit(array $params); 103 + function warehouseEdit(array $params);
107 104
108 /** 105 /**
109 * 创建单个区域仓 106 * 创建单个区域仓
@@ -111,7 +108,7 @@ interface WarehouseInterface @@ -111,7 +108,7 @@ interface WarehouseInterface
111 * @param array $params 108 * @param array $params
112 * @return ResultSet 109 * @return ResultSet
113 */ 110 */
114 - public function warehouseCreate(array $params); 111 + function warehouseCreate(array $params);
115 112
116 /** 113 /**
117 * 绑定单个地址到区域仓 114 * 绑定单个地址到区域仓
@@ -119,7 +116,7 @@ interface WarehouseInterface @@ -119,7 +116,7 @@ interface WarehouseInterface
119 * @param array $params 116 * @param array $params
120 * @return ResultSet 117 * @return ResultSet
121 */ 118 */
122 - public function warehouseSetAddr(array $params); 119 + function warehouseSetAddr(array $params);
123 120
124 /** 121 /**
125 * 批量查询区域仓 122 * 批量查询区域仓
@@ -127,7 +124,7 @@ interface WarehouseInterface @@ -127,7 +124,7 @@ interface WarehouseInterface
127 * @param array $params 124 * @param array $params
128 * @return ResultSet 125 * @return ResultSet
129 */ 126 */
130 - public function warehouseList(array $params); 127 + function warehouseList(array $params);
131 128
132 /** 129 /**
133 * 批量绑定地址与区域仓 130 * 批量绑定地址与区域仓
@@ -135,7 +132,7 @@ interface WarehouseInterface @@ -135,7 +132,7 @@ interface WarehouseInterface
135 * @param array $params 132 * @param array $params
136 * @return ResultSet 133 * @return ResultSet
137 */ 134 */
138 - public function warehouseSetAddrBatch(array $params); 135 + function warehouseSetAddrBatch(array $params);
139 136
140 /** 137 /**
141 * 批量创建区域仓 138 * 批量创建区域仓
@@ -143,7 +140,7 @@ interface WarehouseInterface @@ -143,7 +140,7 @@ interface WarehouseInterface
143 * @param array $params 140 * @param array $params
144 * @return ResultSet 141 * @return ResultSet
145 */ 142 */
146 - public function warehouseCreateBatch(array $params); 143 + function warehouseCreateBatch(array $params);
147 144
148 /** 145 /**
149 * 设置指定地址下的仓的优先级 146 * 设置指定地址下的仓的优先级
@@ -151,7 +148,7 @@ interface WarehouseInterface @@ -151,7 +148,7 @@ interface WarehouseInterface
151 * @param array $params 148 * @param array $params
152 * @return ResultSet 149 * @return ResultSet
153 */ 150 */
154 - public function warehouseSetPriority(array $params); 151 + function warehouseSetPriority(array $params);
155 152
156 /** 153 /**
157 * 删除电子围栏 154 * 删除电子围栏
@@ -159,7 +156,7 @@ interface WarehouseInterface @@ -159,7 +156,7 @@ interface WarehouseInterface
159 * @param array $params 156 * @param array $params
160 * @return ResultSet 157 * @return ResultSet
161 */ 158 */
162 - public function warehouseDelFence(array $params); 159 + function warehouseDelFence(array $params);
163 160
164 /** 161 /**
165 * 仓绑定电子围栏 162 * 仓绑定电子围栏
@@ -167,5 +164,5 @@ interface WarehouseInterface @@ -167,5 +164,5 @@ interface WarehouseInterface
167 * @param array $params 164 * @param array $params
168 * @return ResultSet 165 * @return ResultSet
169 */ 166 */
170 - public function warehouseBindFences(array $params); 167 + function warehouseBindFences(array $params);
171 } 168 }
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Yunc; 3 +namespace Lackoxygen\TiktokShop\Request\Yunc;
4 4
5 -use Lackoxygen\TiktokShop\Passage\Passage; 5 +use Lackoxygen\TiktokShop\Request\Request;
6 6
7 -class Yunc extends Passage implements YuncInterface 7 +class Yunc extends Request implements YuncInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Yunc;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet; 3 +namespace Lackoxygen\TiktokShop\Request\Yunc;
6 4
7 /** 5 /**
8 * @note 仓库作业API 6 * @note 仓库作业API
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage; 3 +namespace Lackoxygen\TiktokShop\Response;
4 4
5 -use Lackoxygen\TiktokShop\Util\Json;  
6 use GuzzleHttp\Psr7\Response; 5 use GuzzleHttp\Psr7\Response;
7 use Illuminate\Support\Arr; 6 use Illuminate\Support\Arr;
  7 +use Lackoxygen\TiktokShop\Util\Json;
8 8
9 class ResultSet 9 class ResultSet
10 { 10 {
  11 + /**
  12 + * @var array|mixed
  13 + */
11 protected array $items = []; 14 protected array $items = [];
12 15
13 - protected $result;  
14 -  
15 - public function __construct($result)  
16 - {  
17 - $this->result = $result;  
18 -  
19 - if ($this->isResponse()) {  
20 - $this->items = Json::unmarshal($result->getBody()->getContents());  
21 - } else {  
22 - $this->items = is_array($result) ? $result : [$result];  
23 - }  
24 - } 16 + /**
  17 + * @var Response
  18 + */
  19 + protected Response $response;
25 20
26 - protected function isResponse(): bool 21 + /**
  22 + * @param Response $response
  23 + */
  24 + public function __construct(Response $response)
27 { 25 {
28 - return $this->result instanceof Response;  
29 - }  
30 - 26 + $this->response = $response;
31 27
32 - public function toArray(): array  
33 - {  
34 - return $this->items; 28 + $this->items = Json::unmarshal($response->getBody()->getContents());
35 } 29 }
36 30
  31 + /**
  32 + * @return bool
  33 + */
37 public function isSuccess(): bool 34 public function isSuccess(): bool
38 { 35 {
39 $array = $this->toArray(); 36 $array = $this->toArray();
40 37
41 - if ($this->isResponse()) {  
42 return 10000 === $array['code']; 38 return 10000 === $array['code'];
43 } 39 }
44 40
45 - return true === Arr::first($array);  
46 - }  
47 - 41 + /**
  42 + * @return string
  43 + */
48 public function getMessage(): string 44 public function getMessage(): string
49 { 45 {
50 $array = $this->toArray(); 46 $array = $this->toArray();
@@ -52,6 +48,9 @@ class ResultSet @@ -52,6 +48,9 @@ class ResultSet
52 return (string)$array['message'] ?? ''; 48 return (string)$array['message'] ?? '';
53 } 49 }
54 50
  51 + /**
  52 + * @return array
  53 + */
55 public function getData(): array 54 public function getData(): array
56 { 55 {
57 $array = $this->toArray(); 56 $array = $this->toArray();
@@ -59,8 +58,41 @@ class ResultSet @@ -59,8 +58,41 @@ class ResultSet
59 return (array)Arr::get($array, 'data', []); 58 return (array)Arr::get($array, 'data', []);
60 } 59 }
61 60
62 - public function get(string $key, $default = '') 61 + /**
  62 + * @param string $key
  63 + * @param string $default
  64 + * @return array|\ArrayAccess|mixed
  65 + */
  66 + public function get(string $key, string $default = '')
63 { 67 {
64 return Arr::get($this->getData(), $key, $default); 68 return Arr::get($this->getData(), $key, $default);
65 } 69 }
  70 +
  71 + /**
  72 + * @return array
  73 + */
  74 + public function toArray(): array
  75 + {
  76 + return $this->items;
  77 + }
  78 +
  79 + /**
  80 + * @return false|string
  81 + */
  82 + public function toJson()
  83 + {
  84 + return Json::marshal($this->toArray());
  85 + }
  86 +
  87 + /**
  88 + * @return string
  89 + */
  90 + public function raw(): string
  91 + {
  92 + $body = $this->response->getBody();
  93 +
  94 + $body->rewind();
  95 +
  96 + return $body->getContents();
  97 + }
66 } 98 }
1 -<?php  
2 -  
3 -namespace Lackoxygen\TiktokShop\Supervisor\Session;  
4 -  
5 -use Lackoxygen\TiktokShop\Util\Json;  
6 -  
7 -class Factory  
8 -{  
9 - protected \Closure $callback;  
10 -  
11 - public function __construct(\Closure $callback)  
12 - {  
13 - $this->callback = $callback;  
14 - }  
15 -  
16 - public function load(string $raw)  
17 - {  
18 - if (!$raw) {  
19 - return;  
20 - }  
21 - $array = Json::unmarshal($raw);  
22 -  
23 - $callback = $this->callback;  
24 - foreach ($array as $row) {  
25 - $callback($this->create($row));  
26 - }  
27 - }  
28 -  
29 - protected function create($row)  
30 - {  
31 - return unserialize($row);  
32 - }  
33 -}  
1 -<?php  
2 -  
3 -namespace Lackoxygen\TiktokShop\Supervisor\Session;  
4 -  
5 -use Carbon\Carbon;  
6 -use Lackoxygen\TiktokShop\Contracts\SessionInterface;  
7 -  
8 -class Session implements SessionInterface  
9 -{  
10 - use Swap;  
11 -  
12 - protected Store $store;  
13 -  
14 - protected string $index = '';  
15 -  
16 - protected string $appKey = '';  
17 -  
18 - public function __construct(string $appKey, Store $store)  
19 - {  
20 - $this->appKey = $appKey;  
21 -  
22 - $this->store = $store;  
23 -  
24 - $this->index = $this->id();  
25 - }  
26 -  
27 - public function id(): string  
28 - {  
29 - return md5(serialize($this->store));  
30 - }  
31 -  
32 - public function unEffective(): bool  
33 - {  
34 - return !$this->effective();  
35 - }  
36 -  
37 - public function effective(): bool  
38 - {  
39 - return $this->store->getExpiredAt()->gt(Carbon::now());  
40 - }  
41 -  
42 - public function discard()  
43 - {  
44 - $this->store->setExpiredAt(Carbon::now()->subMinutes(30));  
45 - }  
46 -  
47 - public function watch(): bool  
48 - {  
49 - return $this->index !== $this->id();  
50 - }  
51 -  
52 - public function appKey(): string  
53 - {  
54 - return $this->appKey;  
55 - }  
56 -}  
1 -<?php  
2 -  
3 -namespace Lackoxygen\TiktokShop\Supervisor\Session;  
4 -  
5 -use Lackoxygen\TiktokShop\Contracts\SessionInterface;  
6 -use Lackoxygen\TiktokShop\Util\Json;  
7 -  
8 -class SessionHeart  
9 -{  
10 - protected static ?SessionHeart $sessionHeart = null;  
11 -  
12 - public function __construct()  
13 - {  
14 - SessionMemory::init();  
15 - }  
16 -  
17 - public static function new(): SessionHeart  
18 - {  
19 - if (is_null(static::$sessionHeart)) {  
20 - static::$sessionHeart = new static();  
21 - }  
22 -  
23 - return static::$sessionHeart;  
24 - }  
25 -  
26 - public function keepalive()  
27 - {  
28 - SessionMemory::each(function (SessionInterface $session) {  
29 - if ($session->effective()) {  
30 - return;  
31 - }  
32 - $session->refresh();  
33 - });  
34 - }  
35 -  
36 - public function __destruct()  
37 - {  
38 - $watch = false;  
39 - $serializes = [];  
40 - SessionMemory::each(function (SessionInterface $session) use (&$watch, &$serializes) {  
41 - $serializes[] = serialize($session);  
42 - if (!$watch && $session->watch()) {  
43 - $watch = true;  
44 - }  
45 - });  
46 - if ($watch) {  
47 - SessionMemory::persistence(Json::marshal($serializes));  
48 - }  
49 - }  
50 -}  
1 -<?php  
2 -  
3 -namespace Lackoxygen\TiktokShop\Supervisor\Session;  
4 -  
5 -use Lackoxygen\TiktokShop\Contracts\SessionInterface;  
6 -  
7 -class SessionMemory  
8 -{  
9 - /**  
10 - * @var Session [] $sessions  
11 - */  
12 - protected static array $sessions = [];  
13 -  
14 - /**  
15 - * @var string  
16 - */  
17 - protected static string $cachePrefix = 'tiktok.shop:session:';  
18 -  
19 -  
20 - protected static function cache()  
21 - {  
22 - static $cacheManager;  
23 - if (is_null($cacheManager)) {  
24 - $cacheManager = app('cache');  
25 - }  
26 -  
27 - return $cacheManager;  
28 - }  
29 -  
30 - public static function init()  
31 - {  
32 - $factory = new Factory(function (Session $session) {  
33 - static::$sessions[$session->appKey()] = $session;  
34 - });  
35 -  
36 - if ($raw = static::persistence()) {  
37 - $factory->load($raw);  
38 - }  
39 - }  
40 -  
41 - public static function persistence()  
42 - {  
43 - $key = static::$cachePrefix . 'keepalive_table';  
44 - try {  
45 - if (func_get_args()) {  
46 - static::cache()->set($key, func_get_arg(0));  
47 - } else {  
48 - $raw = static::cache()->get($key);  
49 -  
50 - if (is_null($raw)) {  
51 - return null;  
52 - }  
53 -  
54 - return $raw;  
55 - }  
56 - } catch (\Exception $e) {  
57 - }  
58 - }  
59 -  
60 - public static function each(\Closure $callback)  
61 - {  
62 - foreach (static::$sessions as $session) {  
63 - $callback($session);  
64 - }  
65 - }  
66 -  
67 - public static function get(string $appKey = null)  
68 - {  
69 - if (is_null($appKey)) {  
70 - return static::$sessions;  
71 - }  
72 -  
73 - return static::exist($appKey) ? static::$sessions[$appKey] : null;  
74 - }  
75 -  
76 - public static function exist(string $appKey): bool  
77 - {  
78 - return array_key_exists($appKey, static::$sessions);  
79 - }  
80 -  
81 - public static function put(SessionInterface $session, $force = true)  
82 - {  
83 - if (static::exist($session->appKey()) && !$force) {  
84 - return;  
85 - }  
86 - static::$sessions[$session->appKey()] = $session;  
87 - }  
88 -}  
1 -<?php  
2 -  
3 -namespace Lackoxygen\TiktokShop\Supervisor\Session;  
4 -  
5 -use Carbon\Carbon;  
6 -use Illuminate\Queue\SerializesModels;  
7 -  
8 -class Store  
9 -{  
10 - use SerializesModels;  
11 -  
12 - /**  
13 - * The ID.  
14 - *  
15 - * @var string  
16 - */  
17 - protected string $id;  
18 -  
19 - /**  
20 - * The access token.  
21 - *  
22 - * @var string  
23 - */  
24 - protected string $accessToken;  
25 -  
26 - /**  
27 - * The refresh token.  
28 - *  
29 - * @var string  
30 - */  
31 - protected string $refreshToken;  
32 -  
33 - /**  
34 - * The created at.  
35 - *  
36 - * @var Carbon  
37 - */  
38 - protected Carbon $createdAt;  
39 -  
40 - /**  
41 - * The expired at.  
42 - *  
43 - * @var Carbon  
44 - */  
45 - protected Carbon $expiredAt;  
46 -  
47 - /**  
48 - * The expires in.  
49 - *  
50 - * @var int  
51 - */  
52 - protected int $expiresIn;  
53 -  
54 - /**  
55 - * the more data.  
56 - *  
57 - * @var array  
58 - */  
59 - protected array $extras = [];  
60 -  
61 - /**  
62 - * the refresh num.  
63 - *  
64 - * @var int  
65 - */  
66 - protected int $refreshNum = 0;  
67 -  
68 - /**  
69 - * @return string  
70 - */  
71 - public function getId(): string  
72 - {  
73 - return $this->id;  
74 - }  
75 -  
76 - /**  
77 - * @param string $id  
78 - */  
79 - public function setId(string $id): void  
80 - {  
81 - $this->id = $id;  
82 - }  
83 -  
84 - /**  
85 - * @return string  
86 - */  
87 - public function getAccessToken(): string  
88 - {  
89 - return $this->accessToken;  
90 - }  
91 -  
92 - /**  
93 - * @param string $accessToken  
94 - */  
95 - public function setAccessToken(string $accessToken): void  
96 - {  
97 - $this->accessToken = $accessToken;  
98 - }  
99 -  
100 - /**  
101 - * @return string  
102 - */  
103 - public function getRefreshToken(): string  
104 - {  
105 - return $this->refreshToken;  
106 - }  
107 -  
108 - /**  
109 - * @param string $refreshToken  
110 - */  
111 - public function setRefreshToken(string $refreshToken): void  
112 - {  
113 - $this->refreshToken = $refreshToken;  
114 - }  
115 -  
116 - /**  
117 - * @return Carbon  
118 - */  
119 - public function getCreatedAt(): Carbon  
120 - {  
121 - return $this->createdAt;  
122 - }  
123 -  
124 - /**  
125 - * @param Carbon $createdAt  
126 - */  
127 - public function setCreatedAt(Carbon $createdAt): void  
128 - {  
129 - $this->createdAt = $createdAt;  
130 - }  
131 -  
132 - /**  
133 - * @return Carbon  
134 - */  
135 - public function getExpiredAt(): Carbon  
136 - {  
137 - return $this->expiredAt;  
138 - }  
139 -  
140 - /**  
141 - * @param Carbon $expiredAt  
142 - */  
143 - public function setExpiredAt(Carbon $expiredAt): void  
144 - {  
145 - $this->expiredAt = $expiredAt;  
146 - }  
147 -  
148 - /**  
149 - * @return int  
150 - */  
151 - public function getExpiresIn(): int  
152 - {  
153 - return $this->expiresIn;  
154 - }  
155 -  
156 - /**  
157 - * @param int $expiresIn  
158 - */  
159 - public function setExpiresIn(int $expiresIn): void  
160 - {  
161 - $this->expiresIn = $expiresIn;  
162 - }  
163 -  
164 - /**  
165 - * @return array  
166 - */  
167 - public function getExtras(): array  
168 - {  
169 - return $this->extras;  
170 - }  
171 -  
172 - /**  
173 - * @param array $extras  
174 - */  
175 - public function setExtras(array $extras): void  
176 - {  
177 - $this->extras = $extras;  
178 - }  
179 -  
180 - /**  
181 - * @return int  
182 - */  
183 - public function getRefreshNum(): int  
184 - {  
185 - return $this->refreshNum;  
186 - }  
187 -  
188 - /**  
189 - * @param int $refreshNum  
190 - */  
191 - public function setRefreshNum(int $refreshNum): void  
192 - {  
193 - $this->refreshNum = $refreshNum;  
194 - }  
195 -}  
1 -<?php  
2 -  
3 -namespace Lackoxygen\TiktokShop\Supervisor\Session;  
4 -  
5 -use Lackoxygen\TiktokShop\Exception\ClientException;  
6 -use Lackoxygen\TiktokShop\Passage\ResultSet;  
7 -  
8 -trait Swap  
9 -{  
10 - public function refresh()  
11 - {  
12 - $app = app('tiktok.shop');  
13 - try {  
14 - /**  
15 - * @var ResultSet $result  
16 - */  
17 - $result = $app->authorize->refresh($this->store->getRefreshToken());  
18 -  
19 - if ($result->isSuccess()) {  
20 - $this->store->setAccessToken($result->get('access_token'));  
21 - $this->store->setRefreshToken($result->get('refresh_token'));  
22 - $this->store->setRefreshNum($this->store->getRefreshNum() + 1);  
23 - $this->store->setCreatedAt(now());  
24 - $this->store->setExpiredAt(now()->addMicroseconds($result->get('expired_in')));  
25 - }  
26 - } catch (ClientException $exception) {  
27 - $this->discard();  
28 - }  
29 - }  
30 -}  
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Transmit; 3 +namespace Lackoxygen\TiktokShop\Support\Client;
4 4
5 -use Lackoxygen\TiktokShop\Attribute\Config; 5 +use GuzzleHttp\Exception\GuzzleException;
  6 +use Lackoxygen\TiktokShop\Attribute\Config\Config;
  7 +use Lackoxygen\TiktokShop\Attribute\Config\Option;
6 use Lackoxygen\TiktokShop\Attribute\Request; 8 use Lackoxygen\TiktokShop\Attribute\Request;
7 use Lackoxygen\TiktokShop\Exception\ClientException; 9 use Lackoxygen\TiktokShop\Exception\ClientException;
8 use Lackoxygen\TiktokShop\Mock\Mock; 10 use Lackoxygen\TiktokShop\Mock\Mock;
9 -use GuzzleHttp\Exception\GuzzleException;  
10 use Psr\Http\Message\ResponseInterface; 11 use Psr\Http\Message\ResponseInterface;
11 12
12 -class Builder 13 +class Builder extends Config
13 { 14 {
14 - protected Request $request;  
15 -  
16 - protected Config $config; 15 + /**
  16 + * @var Request
  17 + */
  18 + protected Request $requestHandler;
17 19
18 - protected string $passage; 20 + /**
  21 + * @var string
  22 + */
  23 + protected string $request;
19 24
  25 + /**
  26 + * @var string
  27 + */
20 protected string $method; 28 protected string $method;
21 29
22 - public function __construct(Config $config, string $passage, string $method) 30 + public function __construct(Option $config, string $request, string $method)
23 { 31 {
24 - $this->request = new Request();  
25 - $this->config = $config;  
26 - $this->request->setConfig($config);  
27 - $this->passage = $passage; 32 + parent::__construct($config);
  33 + $this->requestHandler = new Request($config);
  34 + $this->request = $request;
28 $this->method = $method; 35 $this->method = $method;
29 } 36 }
30 37
31 - public static function create(Config $config, string $passage, string $method): Builder 38 + /**
  39 + * @param Option $config
  40 + * @param string $passage
  41 + * @param string $method
  42 + * @return Builder
  43 + */
  44 + public static function create(Option $config, string $passage, string $method): Builder
32 { 45 {
33 return new static(...func_get_args()); 46 return new static(...func_get_args());
34 } 47 }
35 48
  49 + /**
  50 + * @param string $method
  51 + * @return $this
  52 + */
36 public function method(string $method): Builder 53 public function method(string $method): Builder
37 { 54 {
38 - $this->request->setMethod($method); 55 + $this->requestHandler->setMethod($method);
39 return $this; 56 return $this;
40 } 57 }
41 58
  59 + /**
  60 + * @param array $params
  61 + * @return $this
  62 + */
42 public function params(array $params): Builder 63 public function params(array $params): Builder
43 { 64 {
44 - $this->request->setParams($params); 65 + $this->requestHandler->setParams($params);
45 return $this; 66 return $this;
46 } 67 }
47 68
  69 + /**
  70 + * @param string $v
  71 + * @return $this
  72 + */
48 public function v(string $v): Builder 73 public function v(string $v): Builder
49 { 74 {
50 - $this->request->setV($v); 75 + $this->requestHandler->setV($v);
51 return $this; 76 return $this;
52 } 77 }
53 78
  79 + /**
  80 + * @param $timestamp
  81 + * @return $this
  82 + */
54 public function timestamp($timestamp): Builder 83 public function timestamp($timestamp): Builder
55 { 84 {
56 - $this->request->setTimestamp($timestamp); 85 + $this->requestHandler->setTimestamp($timestamp);
57 return $this; 86 return $this;
58 } 87 }
59 88
  89 + /**
  90 + * @param string|null $service
  91 + * @return $this
  92 + */
60 public function service(?string $service): Builder 93 public function service(?string $service): Builder
61 { 94 {
62 - $this->request->setService($service); 95 + $this->requestHandler->setService($service);
63 return $this; 96 return $this;
64 } 97 }
65 98
  99 + /**
  100 + * @param bool $signature
  101 + * @return $this
  102 + */
66 public function signature(bool $signature): Builder 103 public function signature(bool $signature): Builder
67 { 104 {
68 - $this->request->setSignature($signature); 105 + $this->requestHandler->setSignature($signature);
69 return $this; 106 return $this;
70 } 107 }
71 108
  109 + /**
  110 + * @param string $path
  111 + * @return $this
  112 + */
72 public function path(string $path): Builder 113 public function path(string $path): Builder
73 { 114 {
74 - $this->request->setPath($path); 115 + $this->requestHandler->setPath($path);
75 return $this; 116 return $this;
76 } 117 }
77 118
@@ -80,7 +121,7 @@ class Builder @@ -80,7 +121,7 @@ class Builder
80 */ 121 */
81 public function getRequest(): Request 122 public function getRequest(): Request
82 { 123 {
83 - return $this->request; 124 + return $this->requestHandler;
84 } 125 }
85 126
86 /** 127 /**
@@ -91,11 +132,11 @@ class Builder @@ -91,11 +132,11 @@ class Builder
91 { 132 {
92 $client = Client::create(); 133 $client = Client::create();
93 if ($this->config->isEnableMock()) { 134 if ($this->config->isEnableMock()) {
94 - $mock = new Mock($this->passage, $this->method); 135 + $mock = new Mock($this->request, $this->method);
95 return $mock->response(); 136 return $mock->response();
96 } 137 }
97 try { 138 try {
98 - return $client->request($this->request); 139 + return $client->request($this->requestHandler);
99 } catch (GuzzleException $e) { 140 } catch (GuzzleException $e) {
100 throw new ClientException($e); 141 throw new ClientException($e);
101 } 142 }
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Transmit; 3 +namespace Lackoxygen\TiktokShop\Support\Client;
4 4
5 -use Lackoxygen\TiktokShop\Attribute\Config; 5 +use GuzzleHttp\Exception\ConnectException;
  6 +use GuzzleHttp\Exception\ServerException;
  7 +use GuzzleHttp\RequestOptions;
  8 +use Illuminate\Support\Str;
  9 +use Lackoxygen\TiktokShop\Attribute\Config\Option;
6 use Lackoxygen\TiktokShop\Attribute\Request; 10 use Lackoxygen\TiktokShop\Attribute\Request;
7 use Lackoxygen\TiktokShop\Exception\ClientException; 11 use Lackoxygen\TiktokShop\Exception\ClientException;
8 use Lackoxygen\TiktokShop\Exception\RetryException; 12 use Lackoxygen\TiktokShop\Exception\RetryException;
9 use Lackoxygen\TiktokShop\Util\Json; 13 use Lackoxygen\TiktokShop\Util\Json;
10 use Lackoxygen\TiktokShop\Util\Signature; 14 use Lackoxygen\TiktokShop\Util\Signature;
11 use Lackoxygen\TiktokShop\Util\Sort; 15 use Lackoxygen\TiktokShop\Util\Sort;
12 -use GuzzleHttp\Exception\ConnectException;  
13 -use GuzzleHttp\Exception\ServerException;  
14 -use GuzzleHttp\RequestOptions;  
15 -use Illuminate\Support\Str;  
16 use Psr\Http\Message\ResponseInterface; 16 use Psr\Http\Message\ResponseInterface;
17 17
18 class Client 18 class Client
19 { 19 {
  20 + /**
  21 + * @return Client
  22 + */
20 public static function create(): Client 23 public static function create(): Client
21 { 24 {
22 return new self(); 25 return new self();
@@ -74,6 +77,10 @@ class Client @@ -74,6 +77,10 @@ class Client
74 ]; 77 ];
75 } 78 }
76 79
  80 + /**
  81 + * @param Request $request
  82 + * @return array
  83 + */
77 protected function withQuery(Request $request): array 84 protected function withQuery(Request $request): array
78 { 85 {
79 return [ 86 return [
@@ -82,7 +89,11 @@ class Client @@ -82,7 +89,11 @@ class Client
82 ]; 89 ];
83 } 90 }
84 91
85 - public function guzzleHttp(Config $config): \GuzzleHttp\Client 92 + /**
  93 + * @param Option $config
  94 + * @return \GuzzleHttp\Client
  95 + */
  96 + public function guzzleHttp(Option $config): \GuzzleHttp\Client
86 { 97 {
87 return new \GuzzleHttp\Client([ 98 return new \GuzzleHttp\Client([
88 'base_uri' => $config->getBaseUri(), 99 'base_uri' => $config->getBaseUri(),
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Transmit; 3 +namespace Lackoxygen\TiktokShop\Support\Client;
4 4
5 use Lackoxygen\TiktokShop\Exception\ClientException; 5 use Lackoxygen\TiktokShop\Exception\ClientException;
6 use Lackoxygen\TiktokShop\Exception\RetryException; 6 use Lackoxygen\TiktokShop\Exception\RetryException;
7 7
8 class Retry 8 class Retry
9 { 9 {
  10 + /**
  11 + * @var \Closure
  12 + */
10 protected \Closure $execute; 13 protected \Closure $execute;
11 14
  15 + /**
  16 + * @var \Closure
  17 + */
12 protected \Closure $when; 18 protected \Closure $when;
13 19
14 /** 20 /**
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage; 3 +namespace Lackoxygen\TiktokShop\Support;
4 4
5 -class Verify extends Passage 5 +use Lackoxygen\TiktokShop\Attribute\Config\Config;
  6 +
  7 +class Verify extends Config
6 { 8 {
  9 + /**
  10 + * @param $sign
  11 + * @param string $body
  12 + * @return bool
  13 + */
7 public function md5($sign, string $body): bool 14 public function md5($sign, string $body): bool
8 { 15 {
9 - $md5 = md5($this->config->getAppKey() . 16 + $md5 = md5(
  17 + $this->config->getAppKey() .
10 $body . 18 $body .
11 - $this->config->getAppSecret()); 19 + $this->config->getAppSecret()
  20 + );
12 return $md5 === $sign; 21 return $md5 === $sign;
13 } 22 }
14 } 23 }
@@ -3,47 +3,48 @@ @@ -3,47 +3,48 @@
3 namespace Lackoxygen\TiktokShop; 3 namespace Lackoxygen\TiktokShop;
4 4
5 use Illuminate\Support\Arr; 5 use Illuminate\Support\Arr;
6 -use Lackoxygen\TiktokShop\Attribute\Config;  
7 -use Lackoxygen\TiktokShop\Passage\PassageProxy;  
8 -use Lackoxygen\TiktokShop\Passage\Verify; 6 +use Lackoxygen\TiktokShop\Attribute\Config\Config;
  7 +use Lackoxygen\TiktokShop\Attribute\Config\Option;
  8 +use Lackoxygen\TiktokShop\Request\RequestProxy;
  9 +use Lackoxygen\TiktokShop\Support\Verify;
9 10
10 /** 11 /**
11 * @method Verify verify() 12 * @method Verify verify()
12 - * @method Passage\Pigeon\PigeonInterface pigeon()  
13 - * @method Passage\Sms\SmsInterface sms()  
14 - * @method Passage\SupplyChain\SupplyChainInterface supplyChain()  
15 - * @method Passage\Topup\TopupInterface topup()  
16 - * @method Passage\OpenCloud\OpenCloudInterface openCloud()  
17 - * @method Passage\Btas\BtasInterface btas()  
18 - * @method Passage\Recycle\RecycleInterface recycle()  
19 - * @method Passage\Member\MemberInterface member()  
20 - * @method Passage\Buyin\BuyinInterface buyin()  
21 - * @method Passage\Yunc\YuncInterface yunc()  
22 - * @method Passage\OrderCode\OrderCodeInterface orderCode()  
23 - * @method Passage\Coupons\CouponsInterface coupons()  
24 - * @method Passage\Crossborder\CrossborderInterface crossborder()  
25 - * @method Passage\Iop\IopInterface iop()  
26 - * @method Passage\Antispam\AntispamInterface antispam()  
27 - * @method Passage\Token\TokenInterface token()  
28 - * @method Passage\Order\OrderInterface order()  
29 - * @method Passage\AfterSale\AfterSaleInterface afterSale()  
30 - * @method Passage\Logistics\LogisticsInterface logistics()  
31 - * @method Passage\Warehouse\WarehouseInterface warehouse()  
32 - * @method Passage\Product\ProductInterface product()  
33 - * @method Passage\Material\MaterialInterface material()  
34 - * @method Passage\Address\AddressInterface address() 13 + * @method Request\Pigeon\PigeonInterface pigeon()
  14 + * @method Request\Sms\SmsInterface sms()
  15 + * @method Request\SupplyChain\SupplyChainInterface supplyChain()
  16 + * @method Request\Topup\TopupInterface topup()
  17 + * @method Request\OpenCloud\OpenCloudInterface openCloud()
  18 + * @method Request\Btas\BtasInterface btas()
  19 + * @method Request\Recycle\RecycleInterface recycle()
  20 + * @method Request\Member\MemberInterface member()
  21 + * @method Request\Buyin\BuyinInterface buyin()
  22 + * @method Request\Yunc\YuncInterface yunc()
  23 + * @method Request\OrderCode\OrderCodeInterface orderCode()
  24 + * @method Request\Coupons\CouponsInterface coupons()
  25 + * @method Request\Crossborder\CrossborderInterface crossborder()
  26 + * @method Request\Iop\IopInterface iop()
  27 + * @method Request\Antispam\AntispamInterface antispam()
  28 + * @method Request\Token\TokenInterface token()
  29 + * @method Request\Order\OrderInterface order()
  30 + * @method Request\AfterSale\AfterSaleInterface afterSale()
  31 + * @method Request\Logistics\LogisticsInterface logistics()
  32 + * @method Request\Warehouse\WarehouseInterface warehouse()
  33 + * @method Request\Product\ProductInterface product()
  34 + * @method Request\Material\MaterialInterface material()
  35 + * @method Request\Address\AddressInterface address()
35 */ 36 */
36 class TiktokShop 37 class TiktokShop
37 { 38 {
38 /** 39 /**
39 - * @var Config 40 + * @var Option
40 */ 41 */
41 - protected Config $config; 42 + protected Option $config;
42 43
43 /** 44 /**
44 * @var array|string[] 45 * @var array|string[]
45 */ 46 */
46 - protected array $fixedPassages = [ 47 + protected array $fixedPriority = [
47 'verify' => Verify::class 48 'verify' => Verify::class
48 ]; 49 ];
49 50
@@ -76,11 +77,11 @@ class TiktokShop @@ -76,11 +77,11 @@ class TiktokShop
76 /** 77 /**
77 * @param array $options 78 * @param array $options
78 * 79 *
79 - * @return Config 80 + * @return Option
80 */ 81 */
81 - public static function newConfig(array $options): Config 82 + public static function newConfig(array $options): Option
82 { 83 {
83 - return new Config( 84 + return new Option(
84 Arr::get($options, 'app_key'), 85 Arr::get($options, 'app_key'),
85 Arr::get($options, 'app_secret'), 86 Arr::get($options, 'app_secret'),
86 Arr::get($options, 'base_uri'), 87 Arr::get($options, 'base_uri'),
@@ -113,40 +114,45 @@ class TiktokShop @@ -113,40 +114,45 @@ class TiktokShop
113 114
114 /** 115 /**
115 * @param string $name 116 * @param string $name
116 - * @return string 117 + * @return RequestProxy|object
117 */ 118 */
118 - private function guide(string $name): string 119 + private function guide(string $name)
119 { 120 {
120 - if (isset($this->fixedPassages[$name])) {  
121 - return $this->fixedPassages[$name]; 121 + if (array_key_exists($name, $this->fixedPriority)) {
  122 + return new $this->fixedPriority[$name]($this->config);
122 } 123 }
123 124
124 $name = ucfirst($name); 125 $name = ucfirst($name);
125 126
126 - $target = '\Lackoxygen\TiktokShop\Passage\\' . $name . '\\' . $name; 127 + $request = '\Lackoxygen\TiktokShop\Request\\' . $name . '\\' . $name;
127 128
128 - if (!class_exists($target)) {  
129 - throw new \OverflowException('class file(' . $target . ') not found'); 129 + if (!class_exists($request)) {
  130 + throw new \OverflowException('class file(' . $request . ') not found');
130 } 131 }
131 132
132 - return $target; 133 + return RequestProxy::proxy($request, $this->config);
133 } 134 }
134 135
135 /** 136 /**
136 * @param $name 137 * @param $name
137 * @param array $arguments 138 * @param array $arguments
138 * 139 *
139 - * @return PassageProxy 140 + * @return RequestProxy
140 */ 141 */
141 public function __call($name, array $arguments = []) 142 public function __call($name, array $arguments = [])
142 { 143 {
143 - $passage = $this->guide($name); 144 + $guide = $this->guide($name);
  145 +
  146 + if ($guide instanceof RequestProxy) {
144 try { 147 try {
145 - return PassageProxy::proxy($passage, $this->config); 148 + return $guide;
146 } finally { 149 } finally {
147 register_shutdown_function(function () { 150 register_shutdown_function(function () {
148 $this->config->setAccessToken(''); 151 $this->config->setAccessToken('');
149 }); 152 });
150 } 153 }
151 } 154 }
  155 +
  156 + return call_user_func_array([$guide, $name], $arguments);
  157 + }
152 } 158 }
@@ -3,8 +3,6 @@ @@ -3,8 +3,6 @@
3 namespace Lackoxygen\TiktokShop; 3 namespace Lackoxygen\TiktokShop;
4 4
5 use Illuminate\Support\ServiceProvider; 5 use Illuminate\Support\ServiceProvider;
6 -use Lackoxygen\TiktokShop\Command\RefreshToken;  
7 -use Release;  
8 6
9 class TiktokShopProvider extends ServiceProvider 7 class TiktokShopProvider extends ServiceProvider
10 { 8 {
@@ -16,9 +14,7 @@ class TiktokShopProvider extends ServiceProvider @@ -16,9 +14,7 @@ class TiktokShopProvider extends ServiceProvider
16 /** 14 /**
17 * @var array|string[] 15 * @var array|string[]
18 */ 16 */
19 - protected array $commands = [  
20 - RefreshToken::class  
21 - ]; 17 + protected array $commands = [];
22 18
23 /** 19 /**
24 * @return void 20 * @return void