作者 lackoxygen

feat:auto gen

要显示太多修改。

为保证性能只显示 20 of 20+ 个文件。

  1 +#!/bin/env php
  2 +<?php
  3 +
  4 +use Illuminate\Support\Enumerable;
  5 +
  6 +$app_path = dirname(__DIR__);
  7 +
  8 +$src_path = $app_path . '/src';
  9 +
  10 +/**
  11 + * @param string $message
  12 + * @param string $prefix
  13 + * @return void
  14 + */
  15 +function println(string $message, string $prefix = 'info')
  16 +{
  17 + \fwrite(
  18 + STDOUT,
  19 + '[' . date('Y-m-d H:i:s') . ' ' . strtoupper($prefix) . '] ' . $message . PHP_EOL
  20 + );
  21 +}
  22 +
  23 +/**
  24 + * @param string $url
  25 + * @param array $query
  26 + * @return bool|string
  27 + */
  28 +function curl_fetch(string $url, array $query = []): array
  29 +{
  30 + $ch = \curl_init();
  31 +
  32 + $query && $url .= '?' . http_build_query($query);
  33 +
  34 + \curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  35 +
  36 + \curl_setopt($ch, CURLOPT_URL, $url);
  37 +
  38 + \curl_setopt($ch, CURLOPT_TIMEOUT, 10);
  39 +
  40 + try {
  41 + $body = \curl_exec($ch);
  42 +
  43 + if (is_string($body)) {
  44 + return json_decode($body, true);
  45 + }
  46 + return [];
  47 + } finally {
  48 + \curl_close($ch);
  49 + }
  50 +}
  51 +
  52 +/**
  53 + * @param array $items
  54 + * @param string $subject
  55 + * @return string
  56 + */
  57 +function replaces(array $items, string $subject): string
  58 +{
  59 + return str_replace(
  60 + array_keys($items),
  61 + array_values($items),
  62 + $subject
  63 + );
  64 +}
  65 +
  66 +class Arr
  67 +{
  68 + /**
  69 + * @param array $array
  70 + * @param string|null $key
  71 + * @param $default
  72 + * @return mixed
  73 + */
  74 + public static function get(array $array, string $key = null, $default = null)
  75 + {
  76 + $keys = explode('.', $key);
  77 +
  78 + if (is_null($key)) {
  79 + return $array;
  80 + }
  81 +
  82 + foreach ($keys as $key) {
  83 + if (static::exists($array, $key)) {
  84 + $array = $array[$key];
  85 + } else {
  86 + return $default;
  87 + }
  88 + }
  89 +
  90 + return $array;
  91 + }
  92 +
  93 + /**
  94 + * @param $array
  95 + * @param $key
  96 + * @return bool
  97 + */
  98 + public static function exists($array, $key): bool
  99 + {
  100 + if ($array instanceof Enumerable) {
  101 + return $array->has($key);
  102 + }
  103 +
  104 + if ($array instanceof ArrayAccess) {
  105 + return $array->offsetExists($key);
  106 + }
  107 +
  108 + return array_key_exists($key, $array);
  109 + }
  110 +}
  111 +
  112 +class Cls
  113 +{
  114 + /**
  115 + * @param object $object
  116 + * @param string|null $key
  117 + * @param $default
  118 + * @return mixed|object|null
  119 + */
  120 + public static function get(object $object, string $key = null, $default = null)
  121 + {
  122 + $keys = explode('->', $key);
  123 +
  124 + if (is_null($key)) {
  125 + return $object;
  126 + }
  127 +
  128 + foreach ($keys as $key) {
  129 + if (is_object($object) && static::exists($object, $key)) {
  130 + $object = $object->{$key};
  131 + } elseif (is_array($object) && Arr::exists($object, $key)) {
  132 + $object = Arr::get($object, $key);
  133 + } else {
  134 + return $default;
  135 + }
  136 + }
  137 +
  138 + return $object;
  139 + }
  140 +
  141 + /**
  142 + * @param object $object
  143 + * @param $key
  144 + * @return bool
  145 + */
  146 + public static function exists(object $object, $key): bool
  147 + {
  148 + if ($object instanceof Enumerable) {
  149 + return $object->has($key);
  150 + }
  151 +
  152 + if ($object instanceof ArrayAccess) {
  153 + return $object->offsetExists($key);
  154 + }
  155 +
  156 + return property_exists($object, $key);
  157 + }
  158 +}
  159 +
  160 +class FetchDoc
  161 +{
  162 + /**
  163 + * fetch top doc menus.
  164 + * @return array|null
  165 + */
  166 + public function fetchDocMenus(): array
  167 + {
  168 + return curl_fetch(
  169 + 'https://op.jinritemai.com/doc/external/open/queryDocDirTree',
  170 + ['dirId' => 3]
  171 + );
  172 + }
  173 +
  174 + /**
  175 + * fetch in menu api list
  176 + * @param int $dirId
  177 + * @return array|null
  178 + */
  179 + public function fetchDocApis(int $dirId): array
  180 + {
  181 + return curl_fetch(
  182 + 'https://op.jinritemai.com/doc/external/open/queryDocArticleList',
  183 + [
  184 + 'dirId' => $dirId,
  185 + 'orderType' => 3,
  186 + 'pageIndex' => 0,
  187 + 'pageSize' => 9999,
  188 + 'status' => 1
  189 + ]
  190 + );
  191 + }
  192 +
  193 + /**
  194 + * fetch doc detail
  195 + * @param int $articleId
  196 + * @return array
  197 + */
  198 + public function fetchDocApi(int $articleId): array
  199 + {
  200 + return curl_fetch(
  201 + 'https://op.jinritemai.com/doc/external/open/queryDocArticleDetail',
  202 + [
  203 + 'articleId' => $articleId,
  204 + 'onlyView' => false,
  205 + ]
  206 + );
  207 + }
  208 +}
  209 +
  210 +class Name
  211 +{
  212 + /**
  213 + * @param string $value
  214 + * @return string
  215 + */
  216 + public static function methodName(string $value): string
  217 + {
  218 + $words = explode(' ', str_replace(['-', '_'], ' ', $value));
  219 +
  220 + $studlyWords = array_map(function ($word) {
  221 + return ucfirst($word);
  222 + }, $words);
  223 +
  224 + return lcfirst(implode($studlyWords));
  225 + }
  226 +
  227 + /**
  228 + * @param string $value
  229 + * @return string
  230 + */
  231 + public static function className(string $value): string
  232 + {
  233 + return ucfirst(static::methodName($value));
  234 + }
  235 +}
  236 +
  237 +class Main
  238 +{
  239 + /**
  240 + * @var CodeSpace
  241 + */
  242 + protected CodeSpace $codeSpace;
  243 +
  244 + /**
  245 + * @var FetchDoc
  246 + */
  247 + protected FetchDoc $fetchDoc;
  248 +
  249 + /**
  250 + * @return void
  251 + */
  252 + public static function run()
  253 + {
  254 + $static = new static();
  255 +
  256 + $static->do();
  257 + }
  258 +
  259 + public function __construct()
  260 + {
  261 + $this->codeSpace = new CodeSpace();
  262 +
  263 + $this->fetchDoc = new FetchDoc();
  264 + }
  265 +
  266 + /**
  267 + * main
  268 + * @return void
  269 + */
  270 + public function do()
  271 + {
  272 + $menus = $this->fetchDoc->fetchDocMenus();
  273 +
  274 + foreach (Arr::get($menus, 'data.dirs', []) as $item) {
  275 + $apis = $this->fetchDoc->fetchDocApis(Arr::get($item, 'id'));
  276 +
  277 + $articles = Arr::get($apis, 'data.articles', []);
  278 +
  279 + $this->codeSpace->push(
  280 + $this->createCodeSpace(
  281 + $item,
  282 + $articles
  283 + )
  284 + );
  285 + }
  286 +
  287 + println('success!');
  288 + }
  289 +
  290 + /**
  291 + * @param array $section
  292 + * @param array $articles
  293 + * @return CodeSelf
  294 + */
  295 + protected function createCodeSpace(array $section, array $articles): CodeSelf
  296 + {
  297 + $code = new CodeSelf();
  298 +
  299 + $code->className = Name::className($this->reckonClsName($articles));
  300 +
  301 + $code->annotate = Arr::get($section, 'name', '');
  302 +
  303 + foreach ($articles as $article) {
  304 + $apiArticle = $this->fetchDoc->fetchDocApi(
  305 + Arr::get($article, 'id')
  306 + );
  307 +
  308 + $subSelf = $this->createCodeMethod(
  309 + $section,
  310 + Arr::get($apiArticle, 'data.article', [])
  311 + );
  312 +
  313 + if ($subSelf->service) {
  314 + $code->methods[] = $this->createCodeMethod(
  315 + $section,
  316 + Arr::get($apiArticle, 'data.article', [])
  317 + );
  318 + }
  319 + }
  320 +
  321 + $this->codeSpace->push($code);
  322 +
  323 + return $code;
  324 + }
  325 +
  326 + /**
  327 + * @param array $section
  328 + * @param array $article
  329 + * @return CodeSubSelf
  330 + */
  331 + protected function createCodeMethod(array $section, array $article): CodeSubSelf
  332 + {
  333 + $subSelf = new CodeSubSelf();
  334 +
  335 + $content = Arr::get($article, 'content');
  336 +
  337 + if (strpos($content, 'TreeTable') !== false) {
  338 + preg_match(
  339 + '/"demoValue":"([^"]*)"/',
  340 + Arr::get($article, 'content'),
  341 + $match
  342 + );
  343 +
  344 + $subSelf->service = Arr::get($match, 1);
  345 + } elseif (strpos(Arr::get($article, 'content'), '|--|--|') !== false) {
  346 + $parts = explode(PHP_EOL, $content);
  347 +
  348 + $flag = false;
  349 +
  350 + $pos = 0;
  351 +
  352 + foreach ($parts as $key => $line) {
  353 + if (mb_strpos($line, '公共参数') !== false) {
  354 + $pos = $key;
  355 + }
  356 +
  357 + if ($pos && $key == $pos + 1) {
  358 + $flag = true;
  359 + }
  360 +
  361 + if ($flag && '' == $line) {
  362 + $flag = false;
  363 + }
  364 +
  365 + if ($flag) {
  366 + if ($key === $pos + 3) {
  367 + $parts = explode('|', trim($line, '|'));
  368 +
  369 + $subSelf->service = trim($parts[3]);
  370 + }
  371 + }
  372 + }
  373 + } else {
  374 + $content = json_decode(
  375 + $content,
  376 + true,
  377 + 512,
  378 + JSON_INVALID_UTF8_SUBSTITUTE
  379 + );
  380 +
  381 + $subSelf->service = Arr::get($content, 'request.publicParam.0.example');
  382 + }
  383 +
  384 + $subSelf->method = 'POST';
  385 +
  386 + $subSelf->path = Arr::get($article, 'info.title');
  387 +
  388 + $subSelf->name = Name::methodName(
  389 + str_replace('.', '_', $subSelf->service)
  390 + );
  391 +
  392 + $subSelf->docUri = sprintf(
  393 + 'https://op.jinritemai.com/docs/api-docs/%d/%d',
  394 + Arr::get($section, 'id'),
  395 + Arr::get($article, 'info.id')
  396 + );
  397 +
  398 + $subSelf->annotate = Arr::get($article, 'info.subtitle');
  399 +
  400 + return $subSelf;
  401 + }
  402 +
  403 + /**
  404 + * @param array $articles
  405 + * @return false|int|string
  406 + */
  407 + protected function reckonClsName(array $articles): string
  408 + {
  409 + $titles = array_map(function ($article) {
  410 + $title = trim(Arr::get($article, 'title', ''), '/');
  411 +
  412 + $parts = explode('/', $title);
  413 +
  414 + return $parts ? $parts[0] : '';
  415 + }, $articles);
  416 +
  417 + $titleCountValues = array_count_values($titles);
  418 +
  419 + arsort($titleCountValues);
  420 +
  421 + return current(array_keys($titleCountValues));
  422 + }
  423 +
  424 + /**
  425 + * @return void
  426 + */
  427 + protected function refreshAnnotate()
  428 + {
  429 + $queue = $this->codeSpace->toQueue();
  430 +
  431 + $targets = [];
  432 + do {
  433 + /**
  434 + * @var CodeSelf $code
  435 + */
  436 + $code = $queue->pop();
  437 +
  438 + $targets[] = Name::methodName($code->className);
  439 + } while (!$queue->isEmpty());
  440 +
  441 + $targets = array_unique($targets);
  442 +
  443 + $metaMethods = array_map(function ($target) {
  444 + $name = ucfirst($target);
  445 + $interface = sprintf('Passage\\%s\\%sInterface', $name, $name);
  446 + $method = lcfirst($target);
  447 + return ' * @method ' . $interface . ' ' . $method . '()';
  448 + }, $targets);
  449 +
  450 + array_unshift($metaMethods, ' * @method Verify verify()');
  451 +
  452 + $metaAnnotate = '/**' . "\n";
  453 + $metaAnnotate .= join("\n", $metaMethods) . "\n";
  454 + $metaAnnotate .= ' */';
  455 +
  456 + global $src_path;
  457 +
  458 + $metaFile = $src_path . '/TiktokShop.php';
  459 +
  460 + require_once $metaFile;
  461 +
  462 + $ref = new ReflectionClass(\Lackoxygen\TiktokShop\TiktokShop::class);
  463 +
  464 + $content = file_get_contents($metaFile);
  465 +
  466 + file_put_contents($metaFile, str_replace($ref->getDocComment(), $metaAnnotate, $content));
  467 + }
  468 +
  469 + public function __destruct()
  470 + {
  471 + $this->codeSpace->write();
  472 +
  473 + $this->refreshAnnotate();
  474 + }
  475 +}
  476 +
  477 +class CodeSpace
  478 +{
  479 + protected SplQueue $spaces;
  480 +
  481 + protected CodeWriter $writer;
  482 +
  483 + public function __construct()
  484 + {
  485 + $this->spaces = new SplQueue();
  486 +
  487 + $this->writer = new CodeWriter();
  488 + }
  489 +
  490 + public function push(CodeSelf $codeSelf)
  491 + {
  492 + $this->spaces->push($codeSelf);
  493 + }
  494 +
  495 + public function write()
  496 + {
  497 + $this->writer->batchWrite($this->toQueue());
  498 + }
  499 +
  500 + public function toQueue(): SplQueue
  501 + {
  502 + return clone $this->spaces;
  503 + }
  504 +}
  505 +
  506 +class CodeWriter
  507 +{
  508 + /**
  509 + * @param SplQueue $queue
  510 + * @return void
  511 + */
  512 + public function batchWrite(SplQueue $queue)
  513 + {
  514 + do {
  515 + $code = $queue->pop();
  516 +
  517 + $this->write($code);
  518 + } while (!$queue->isEmpty());
  519 + }
  520 +
  521 + /**
  522 + * @param CodeSelf $codeSelf
  523 + * @return void
  524 + */
  525 + public function write(CodeSelf $codeSelf)
  526 + {
  527 + $interface = new CodeGenerateInterface(
  528 + clone $codeSelf
  529 + );
  530 +
  531 + $class = new CodeGenerateClass(
  532 + clone $codeSelf,
  533 + $interface->toArray()['name']
  534 + );
  535 +
  536 + global $src_path;
  537 +
  538 + $baseDir = $src_path . '/Passage';
  539 +
  540 + $directory = $baseDir . '/' . $class->toArray()['name'];
  541 +
  542 + if (!is_dir($directory)) {
  543 + @mkdir($directory);
  544 + }
  545 +
  546 + file_put_contents(
  547 + $directory . '/' . $interface->toArray()['file'],
  548 + $interface
  549 + );
  550 +
  551 + file_put_contents(
  552 + $directory . '/' . $class->toArray()['file'],
  553 + $class
  554 + );
  555 + }
  556 +}
  557 +
  558 +
  559 +class CodeGenerateInterface
  560 +{
  561 + protected static string $template = <<<temp
  562 +<?php
  563 +namespace Lackoxygen\TiktokShop\Passage\\\${SECTION};
  564 +
  565 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  566 +
  567 +/**
  568 + * @note \${ANNOTATE}
  569 + */
  570 +interface \${NAME}Interface
  571 +{
  572 +\${METHOD}
  573 +}
  574 +temp;
  575 +
  576 + protected string $content = '';
  577 +
  578 + protected CodeSelf $codeSelf;
  579 +
  580 + /**
  581 + * @param CodeSelf $codeSelf
  582 + */
  583 + public function __construct(CodeSelf $codeSelf)
  584 + {
  585 + $methods = [];
  586 +
  587 + /**
  588 + * @var CodeSubSelf $method
  589 + */
  590 + foreach ($codeSelf->methods as $method) {
  591 + $methods[] = $this->generateMethod($method);
  592 + }
  593 +
  594 + $this->content = replaces(
  595 + [
  596 + '${SECTION}' => $codeSelf->className,
  597 + '${ANNOTATE}' => $codeSelf->annotate,
  598 + '${NAME}' => $codeSelf->className,
  599 + '${METHOD}' => join(
  600 + PHP_EOL . PHP_EOL,
  601 + array_map(function ($method) {
  602 + return join(PHP_EOL, $method);
  603 + }, $methods)
  604 + )
  605 + ],
  606 + static::$template
  607 + );
  608 +
  609 + $this->codeSelf = $codeSelf;
  610 + }
  611 +
  612 + /**
  613 + * @param CodeSubSelf $subSelf
  614 + * @return array
  615 + */
  616 + protected function generateMethod(CodeSubSelf $subSelf): array
  617 + {
  618 + $template[] = "\t" . '/**';
  619 + $template[] = "\t" . ' * ' . $subSelf->annotate;
  620 + $template[] = "\t" . ' * @link ' . $subSelf->docUri;
  621 + $template[] = "\t" . ' * @param array $params';
  622 + $template[] = "\t" . ' * @return ResultSet';
  623 + $template[] = "\t" . ' */';
  624 + $template[] = "\t" . 'function ' . $subSelf->name . '(array $params);';
  625 +
  626 + return $template;
  627 + }
  628 +
  629 +
  630 + /**
  631 + * @return string
  632 + */
  633 + public function __toString(): string
  634 + {
  635 + return $this->content;
  636 + }
  637 +
  638 + /**
  639 + * @return array
  640 + */
  641 + public function toArray(): array
  642 + {
  643 + $name = $this->codeSelf->className . 'Interface';
  644 +
  645 + return [
  646 + 'name' => $name,
  647 + 'file' => $name . '.php',
  648 + 'content' => $this->content,
  649 + ];
  650 + }
  651 +}
  652 +
  653 +class CodeGenerateClass
  654 +{
  655 + protected static string $template = <<<temp
  656 +<?php
  657 +
  658 +namespace Lackoxygen\TiktokShop\Passage\\\${SECTION};
  659 +
  660 +use Lackoxygen\TiktokShop\Passage\Passage;
  661 +
  662 +class \${NAME} extends Passage implements \${INTERFACE}
  663 +{
  664 +\${METHOD}
  665 +}
  666 +temp;
  667 +
  668 + protected string $content = '';
  669 +
  670 + protected CodeSelf $codeSelf;
  671 +
  672 + protected string $interface = '';
  673 +
  674 + public function __construct(CodeSelf $codeSelf, string $interface)
  675 + {
  676 + $this->codeSelf = $codeSelf;
  677 +
  678 + $this->interface = $interface;
  679 +
  680 + $methods = [];
  681 +
  682 + /**
  683 + * @var CodeSubSelf $method
  684 + */
  685 + foreach ($codeSelf->methods as $method) {
  686 + $methods[] = $this->generateMethod($method);
  687 + }
  688 +
  689 + $this->content = replaces(
  690 + [
  691 + '${SECTION}' => $codeSelf->className,
  692 + '${ANNOTATE}' => $codeSelf->annotate,
  693 + '${INTERFACE}' => $this->interface,
  694 + '${NAME}' => $codeSelf->className,
  695 + '${METHOD}' => join(
  696 + PHP_EOL . PHP_EOL,
  697 + array_map(function ($method) {
  698 + return join(PHP_EOL, $method);
  699 + }, $methods)
  700 + )
  701 + ],
  702 + static::$template
  703 + );
  704 + }
  705 +
  706 + /**
  707 + * @param CodeSubSelf $subSelf
  708 + * @return array
  709 + */
  710 + protected function generateMethod(CodeSubSelf $subSelf): array
  711 + {
  712 + $template[] = "\t" . '/**';
  713 + $template[] = "\t" . ' * @inheritDoc';
  714 + $template[] = "\t" . ' */';
  715 + $template[] = "\t" . 'function ' . $subSelf->name . '(array $params)';
  716 + $template[] = "\t" . '{';
  717 + $template[] = "\t\t" . '$this->builder->method(\'' . $subSelf->method . '\')';
  718 + $template[] = "\t\t\t" . '->service(\'' . $subSelf->service . '\')';
  719 + $template[] = "\t\t\t" . '->path(\'' . $subSelf->path . '\')';
  720 + $template[] = "\t\t\t" . '->params($params);';
  721 + $template[] = "\t" . '}';
  722 +
  723 + return $template;
  724 + }
  725 +
  726 + /**
  727 + * @return string
  728 + */
  729 + public function __toString(): string
  730 + {
  731 + return $this->content;
  732 + }
  733 +
  734 + /**
  735 + * @return array
  736 + */
  737 + public function toArray(): array
  738 + {
  739 + return [
  740 + 'name' => $this->codeSelf->className,
  741 + 'file' => $this->codeSelf->className . '.php',
  742 + 'content' => $this->content,
  743 + ];
  744 + }
  745 +}
  746 +
  747 +class CodeSelf
  748 +{
  749 + /**
  750 + * @var string
  751 + */
  752 + public string $className = '';
  753 +
  754 + /**
  755 + * @var string
  756 + */
  757 + public string $annotate = '';
  758 +
  759 + /**
  760 + * @var array [] $methods
  761 + */
  762 + public array $methods = [];
  763 +}
  764 +
  765 +class CodeSubSelf
  766 +{
  767 + /**
  768 + * @var string
  769 + */
  770 + public string $docUri = '';
  771 +
  772 + /**
  773 + * @var string
  774 + */
  775 + public string $name = '';
  776 +
  777 + /**
  778 + * @var string
  779 + */
  780 + public string $method = '';
  781 +
  782 + /**
  783 + * @var string
  784 + */
  785 + public string $service = '';
  786 +
  787 + /**
  788 + * @var string
  789 + */
  790 + public string $path = '';
  791 +
  792 + /**
  793 + * @var string
  794 + */
  795 + public string $annotate = '';
  796 +}
  797 +
  798 +Main::run();
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Shop; 3 +namespace Lackoxygen\TiktokShop\Passage\Address;
4 4
5 use Lackoxygen\TiktokShop\Passage\Passage; 5 use Lackoxygen\TiktokShop\Passage\Passage;
6 6
7 -class Shop extends Passage implements ShopInterface 7 +class Address extends Passage implements AddressInterface
8 { 8 {
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
11 */ 11 */
12 - public function brandList(array $params) 12 + public function qualificationSettle(array $params)
13 { 13 {
14 - $this->builder  
15 - ->method('POST')  
16 - ->params($params)  
17 - ->service('shop.brandList'); 14 + $this->builder->method('POST')
  15 + ->service('qualification.settle')
  16 + ->path('/qualification/settle')
  17 + ->params($params);
18 } 18 }
19 19
20 /** 20 /**
21 * @inheritDoc 21 * @inheritDoc
22 */ 22 */
23 - public function searchMemberList(array $params)  
24 - {  
25 - $this->builder  
26 - ->method('POST')  
27 - ->params($params)  
28 - ->service('member.searchList');  
29 - }  
30 -  
31 - /**  
32 - * @inheritDoc  
33 - */  
34 - public function userLogin(array $params) 23 + public function addressUpdate(array $params)
35 { 24 {
36 - $this->builder  
37 - ->method('POST')  
38 - ->params($params)  
39 - ->service('antispam.userLogin'); 25 + $this->builder->method('POST')
  26 + ->service('address.update')
  27 + ->path('/address/update')
  28 + ->params($params);
40 } 29 }
41 30
42 /** 31 /**
43 * @inheritDoc 32 * @inheritDoc
44 */ 33 */
45 - public function getShopCategory(array $params) 34 + public function addressCreate(array $params)
46 { 35 {
47 - $this->builder  
48 - ->method('POST')  
49 - ->params($params)  
50 - ->service('shop.getShopCategory'); 36 + $this->builder->method('POST')
  37 + ->service('address.create')
  38 + ->path('/address/create')
  39 + ->params($params);
51 } 40 }
52 41
53 /** 42 /**
54 * @inheritDoc 43 * @inheritDoc
55 */ 44 */
56 - public function addressUpdate(array $params) 45 + public function memberGetShopShortLink(array $params)
57 { 46 {
58 - $this->builder  
59 - ->method('POST')  
60 - ->params($params)  
61 - ->service('address.update'); 47 + $this->builder->method('POST')
  48 + ->service('member.getShopShortLink')
  49 + ->path('/member/getShopShortLink')
  50 + ->params($params);
62 } 51 }
63 52
64 /** 53 /**
65 * @inheritDoc 54 * @inheritDoc
66 */ 55 */
67 - public function addressCreate(array $params) 56 + public function addressList(array $params)
68 { 57 {
69 - $this->builder  
70 - ->method('POST')  
71 - ->params($params)  
72 - ->service('address.create'); 58 + $this->builder->method('POST')
  59 + ->service('address.list')
  60 + ->path('/address/list')
  61 + ->params($params);
73 } 62 }
74 63
75 /** 64 /**
76 * @inheritDoc 65 * @inheritDoc
77 */ 66 */
78 - public function getShopShortLink(array $params) 67 + public function shopGetShopCategory(array $params)
79 { 68 {
80 - $this->builder  
81 - ->method('POST')  
82 - ->params($params)  
83 - ->service('member.getShopShortLink'); 69 + $this->builder->method('POST')
  70 + ->service('shop.getShopCategory')
  71 + ->path('/shop/getShopCategory')
  72 + ->params($params);
84 } 73 }
85 74
86 /** 75 /**
87 * @inheritDoc 76 * @inheritDoc
88 */ 77 */
89 - public function addressList(array $params) 78 + public function shopBrandList(array $params)
90 { 79 {
91 - $this->builder  
92 - ->method('POST')  
93 - ->params($params)  
94 - ->service('address.list'); 80 + $this->builder->method('POST')
  81 + ->service('shop.brandList')
  82 + ->path('/shop/brandList')
  83 + ->params($params);
95 } 84 }
96 } 85 }
1 <?php 1 <?php
2 2
3 -namespace Lackoxygen\TiktokShop\Passage\Shop; 3 +namespace Lackoxygen\TiktokShop\Passage\Address;
4 4
5 use Lackoxygen\TiktokShop\Passage\ResultSet; 5 use Lackoxygen\TiktokShop\Passage\ResultSet;
6 6
7 -interface ShopInterface  
8 -{  
9 - /**  
10 - * @link https://op.jinritemai.com/docs/api-docs/13/54  
11 - * @param array $params  
12 - * @return ResultSet 7 +/**
  8 + * @note 店铺API
13 */ 9 */
14 - public function brandList(array $params);  
15 - 10 +interface AddressInterface
  11 +{
16 /** 12 /**
17 - * @link https://op.jinritemai.com/docs/api-docs/13/366 13 + * 商家入驻提交资料
  14 + * @link https://op.jinritemai.com/docs/api-docs/13/658
18 * @param array $params 15 * @param array $params
19 * @return ResultSet 16 * @return ResultSet
20 */ 17 */
21 - public function searchMemberList(array $params); 18 + public function qualificationSettle(array $params);
22 19
23 /** 20 /**
24 - * @link https://op.jinritemai.com/docs/api-docs/13/635 21 + * 店铺修改售后地址接口
  22 + * @link https://op.jinritemai.com/docs/api-docs/13/1511
25 * @param array $params 23 * @param array $params
26 * @return ResultSet 24 * @return ResultSet
27 */ 25 */
28 - public function userLogin(array $params); 26 + public function addressUpdate(array $params);
29 27
30 /** 28 /**
31 - * @link https://op.jinritemai.com/docs/api-docs/13/821 29 + * 创建店铺地址库
  30 + * @link https://op.jinritemai.com/docs/api-docs/13/1510
32 * @param array $params 31 * @param array $params
33 * @return ResultSet 32 * @return ResultSet
34 */ 33 */
35 - public function getShopCategory(array $params); 34 + public function addressCreate(array $params);
36 35
37 /** 36 /**
38 - * @link https://op.jinritemai.com/docs/api-docs/13/1511 37 + * 获取商家推广链接接口
  38 + * @link https://op.jinritemai.com/docs/api-docs/13/1455
39 * @param array $params 39 * @param array $params
40 * @return ResultSet 40 * @return ResultSet
41 */ 41 */
42 - public function addressUpdate(array $params); 42 + public function memberGetShopShortLink(array $params);
43 43
44 /** 44 /**
45 - * @link https://op.jinritemai.com/docs/api-docs/13/1510 45 + * 售后地址列表接口
  46 + * @link https://op.jinritemai.com/docs/api-docs/13/1435
46 * @param array $params 47 * @param array $params
47 * @return ResultSet 48 * @return ResultSet
48 */ 49 */
49 - public function addressCreate(array $params); 50 + public function addressList(array $params);
50 51
51 /** 52 /**
52 - * @link https://op.jinritemai.com/docs/api-docs/13/1455 53 + * 获取店铺后台供商家发布商品的类目
  54 + * @link https://op.jinritemai.com/docs/api-docs/13/1820
53 * @param array $params 55 * @param array $params
54 * @return ResultSet 56 * @return ResultSet
55 */ 57 */
56 - public function getShopShortLink(array $params); 58 + public function shopGetShopCategory(array $params);
57 59
58 /** 60 /**
59 - * @link https://op.jinritemai.com/docs/api-docs/13/1435 61 + * 获取店铺的已授权品牌列表
  62 + * @link https://op.jinritemai.com/docs/api-docs/13/1821
60 * @param array $params 63 * @param array $params
61 * @return ResultSet 64 * @return ResultSet
62 */ 65 */
63 - public function addressList(array $params); 66 + public function shopBrandList(array $params);
64 } 67 }
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\AfterSale;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class AfterSale extends Passage implements AfterSaleInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function afterSaleOperate(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('afterSale.operate')
  16 + ->path('/afterSale/operate')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function afterSaleDetail(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('afterSale.Detail')
  27 + ->path('/afterSale/Detail')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function afterSaleList(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('afterSale.List')
  38 + ->path('/afterSale/List')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + public function afterSaleAddOrderRemark(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('afterSale.addOrderRemark')
  49 + ->path('/afterSale/addOrderRemark')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + public function afterSaleOpenAfterSaleChannel(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('afterSale.OpenAfterSaleChannel')
  60 + ->path('/afterSale/OpenAfterSaleChannel')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + public function afterSaleBuyerExchangeConfirm(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('afterSale.buyerExchangeConfirm')
  71 + ->path('/afterSale/buyerExchangeConfirm')
  72 + ->params($params);
  73 + }
  74 +
  75 + /**
  76 + * @inheritDoc
  77 + */
  78 + public function afterSaleApplyLogisticsIntercept(array $params)
  79 + {
  80 + $this->builder->method('POST')
  81 + ->service('afterSale.applyLogisticsIntercept')
  82 + ->path('/afterSale/applyLogisticsIntercept')
  83 + ->params($params);
  84 + }
  85 +
  86 + /**
  87 + * @inheritDoc
  88 + */
  89 + public function afterSaleCancelSendGoodsSuccess(array $params)
  90 + {
  91 + $this->builder->method('POST')
  92 + ->service('afterSale.CancelSendGoodsSuccess')
  93 + ->path('/afterSale/CancelSendGoodsSuccess')
  94 + ->params($params);
  95 + }
  96 +
  97 + /**
  98 + * @inheritDoc
  99 + */
  100 + public function afterSaleReturnGoodsToWareHouseSuccess(array $params)
  101 + {
  102 + $this->builder->method('POST')
  103 + ->service('afterSale.returnGoodsToWareHouseSuccess')
  104 + ->path('/afterSale/returnGoodsToWareHouseSuccess')
  105 + ->params($params);
  106 + }
  107 +
  108 + /**
  109 + * @inheritDoc
  110 + */
  111 + public function tradeRefundListSearch(array $params)
  112 + {
  113 + $this->builder->method('POST')
  114 + ->service('trade.refundListSearch')
  115 + ->path('/trade/refundListSearch')
  116 + ->params($params);
  117 + }
  118 +
  119 + /**
  120 + * @inheritDoc
  121 + */
  122 + public function afterSaleTimeExtend(array $params)
  123 + {
  124 + $this->builder->method('POST')
  125 + ->service('afterSale.timeExtend')
  126 + ->path('/afterSale/timeExtend')
  127 + ->params($params);
  128 + }
  129 +
  130 + /**
  131 + * @inheritDoc
  132 + */
  133 + public function afterSaleBuyerExchange(array $params)
  134 + {
  135 + $this->builder->method('POST')
  136 + ->service('afterSale.buyerExchange')
  137 + ->path('/afterSale/buyerExchange')
  138 + ->params($params);
  139 + }
  140 +
  141 + /**
  142 + * @inheritDoc
  143 + */
  144 + public function afterSaleRejectReasonCodeList(array $params)
  145 + {
  146 + $this->builder->method('POST')
  147 + ->service('afterSale.rejectReasonCodeList')
  148 + ->path('/afterSale/rejectReasonCodeList')
  149 + ->params($params);
  150 + }
  151 +
  152 + /**
  153 + * @inheritDoc
  154 + */
  155 + public function afterSaleFillLogistics(array $params)
  156 + {
  157 + $this->builder->method('POST')
  158 + ->service('afterSale.fillLogistics')
  159 + ->path('/afterSale/fillLogistics')
  160 + ->params($params);
  161 + }
  162 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\AfterSale;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 售后退款API
  9 + */
  10 +interface AfterSaleInterface
  11 +{
  12 + /**
  13 + * 售后审核接口聚合版
  14 + * @link https://op.jinritemai.com/docs/api-docs/17/560
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function afterSaleOperate(array $params);
  19 +
  20 + /**
  21 + * 提供给商家获取售后单详情信息
  22 + * @link https://op.jinritemai.com/docs/api-docs/17/1095
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function afterSaleDetail(array $params);
  27 +
  28 + /**
  29 + * 售后列表接口
  30 + * @link https://op.jinritemai.com/docs/api-docs/17/1295
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function afterSaleList(array $params);
  35 +
  36 + /**
  37 + * 店家给售后单添加备注
  38 + * @link https://op.jinritemai.com/docs/api-docs/17/585
  39 + * @param array $params
  40 + * @return ResultSet
  41 + */
  42 + public function afterSaleAddOrderRemark(array $params);
  43 +
  44 + /**
  45 + * 打开售后通道,使用户可以发起超级售后
  46 + * @link https://op.jinritemai.com/docs/api-docs/17/764
  47 + * @param array $params
  48 + * @return ResultSet
  49 + */
  50 + public function afterSaleOpenAfterSaleChannel(array $params);
  51 +
  52 + /**
  53 + * 商家确认是否收到换货
  54 + * @link https://op.jinritemai.com/docs/api-docs/17/768
  55 + * @param array $params
  56 + * @return ResultSet
  57 + */
  58 + public function afterSaleBuyerExchangeConfirm(array $params);
  59 +
  60 + /**
  61 + * 申请物流拦截
  62 + * @link https://op.jinritemai.com/docs/api-docs/17/897
  63 + * @param array $params
  64 + * @return ResultSet
  65 + */
  66 + public function afterSaleApplyLogisticsIntercept(array $params);
  67 +
  68 + /**
  69 + * 商家在未发货仅退款途中发送取消发货的状态
  70 + * @link https://op.jinritemai.com/docs/api-docs/17/816
  71 + * @param array $params
  72 + * @return ResultSet
  73 + */
  74 + public function afterSaleCancelSendGoodsSuccess(array $params);
  75 +
  76 + /**
  77 + * 商家确认售后单对应的用户退货入仓成功
  78 + * @link https://op.jinritemai.com/docs/api-docs/17/815
  79 + * @param array $params
  80 + * @return ResultSet
  81 + */
  82 + public function afterSaleReturnGoodsToWareHouseSuccess(array $params);
  83 +
  84 + /**
  85 + * 售后单列表查询推荐使用/afterSale/List
  86 + * @link https://op.jinritemai.com/docs/api-docs/17/254
  87 + * @param array $params
  88 + * @return ResultSet
  89 + */
  90 + public function tradeRefundListSearch(array $params);
  91 +
  92 + /**
  93 + * 商家延时收获接口
  94 + * @link https://op.jinritemai.com/docs/api-docs/17/770
  95 + * @param array $params
  96 + * @return ResultSet
  97 + */
  98 + public function afterSaleTimeExtend(array $params);
  99 +
  100 + /**
  101 + * 商家处理换货请求接口
  102 + * @link https://op.jinritemai.com/docs/api-docs/17/769
  103 + * @param array $params
  104 + * @return ResultSet
  105 + */
  106 + public function afterSaleBuyerExchange(array $params);
  107 +
  108 + /**
  109 + * 售后审核处理原因列表查询接口
  110 + * @link https://op.jinritemai.com/docs/api-docs/17/1540
  111 + * @param array $params
  112 + * @return ResultSet
  113 + */
  114 + public function afterSaleRejectReasonCodeList(array $params);
  115 +
  116 + /**
  117 + * 售后商家发货
  118 + * @link https://op.jinritemai.com/docs/api-docs/17/1908
  119 + * @param array $params
  120 + * @return ResultSet
  121 + */
  122 + public function afterSaleFillLogistics(array $params);
  123 +}
1 -<?php  
2 -  
3 -namespace Lackoxygen\TiktokShop\Passage\Alliance;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\Passage;  
6 -  
7 -class Alliance extends Passage implements AllianceInterface  
8 -{  
9 - /**  
10 - * @inheritDoc  
11 - */  
12 - public function simplePlan(array $params)  
13 - {  
14 - $this->builder  
15 - ->method('POST')  
16 - ->params($params)  
17 - ->path('buyin/simplePlan')  
18 - ->service('buyin.simplePlan');  
19 - }  
20 -  
21 - /**  
22 - * @inheritDoc  
23 - */  
24 - public function exclusivePlan(array $params)  
25 - {  
26 - $this->builder  
27 - ->method('POST')  
28 - ->params($params)  
29 - ->path('buyin/exclusivePlan')  
30 - ->service('buyin.exclusivePlan');  
31 - }  
32 -  
33 - /**  
34 - * @inheritDoc  
35 - */  
36 - public function activitySearch(array $params)  
37 - {  
38 - $this->builder  
39 - ->method('POST')  
40 - ->params($params)  
41 - ->path('buyin/activitySearch')  
42 - ->service('buyin.activitySearch');  
43 - }  
44 -  
45 - /**  
46 - * @inheritDoc  
47 - */  
48 - public function applyActivities(array $params)  
49 - {  
50 - $this->builder  
51 - ->method('POST')  
52 - ->params($params)  
53 - ->path('buyin/applyActivities')  
54 - ->service('buyin.applyActivities');  
55 - }  
56 -  
57 - /**  
58 - * @inheritDoc  
59 - */  
60 - public function createOrUpdateOrienPlan(array $params)  
61 - {  
62 - $this->builder  
63 - ->method('POST')  
64 - ->params($params)  
65 - ->path('buyin/createOrUpdateOrienPlan')  
66 - ->service('buyin.createOrUpdateOrienPlan');  
67 - }  
68 -  
69 - /**  
70 - * @inheritDoc  
71 - */  
72 - public function orienPlanList(array $params)  
73 - {  
74 - $this->builder  
75 - ->method('POST')  
76 - ->params($params)  
77 - ->path('buyin/orienPlanList')  
78 - ->service('buyin.orienPlanList');  
79 - }  
80 -  
81 - /**  
82 - * @inheritDoc  
83 - */  
84 - public function orienPlanAuthors(array $params)  
85 - {  
86 - $this->builder  
87 - ->method('POST')  
88 - ->params($params)  
89 - ->path('buyin/orienPlanAuthors')  
90 - ->service('buyin.orienPlanAuthors');  
91 - }  
92 -  
93 - /**  
94 - * @inheritDoc  
95 - */  
96 - public function orienPlanCtrl(array $params)  
97 - {  
98 - $this->builder  
99 - ->method('POST')  
100 - ->params($params)  
101 - ->path('buyin/orienPlanCtrl')  
102 - ->service('buyin.orienPlanCtrl');  
103 - }  
104 -  
105 - /**  
106 - * @inheritDoc  
107 - */  
108 - public function orienPlanAuthorsAdd(array $params)  
109 - {  
110 - $this->builder  
111 - ->method('POST')  
112 - ->params($params)  
113 - ->path('buyin/orienPlanAuthorsAdd')  
114 - ->service('buyin.orienPlanAuthorsAdd');  
115 - }  
116 -  
117 - /**  
118 - * @inheritDoc  
119 - */  
120 - public function orienPlanAudit(array $params)  
121 - {  
122 - $this->builder  
123 - ->method('POST')  
124 - ->params($params)  
125 - ->path('buyin/orienPlanAudit')  
126 - ->service('buyin.orienPlanAudit');  
127 - }  
128 -  
129 - /**  
130 - * @inheritDoc  
131 - */  
132 - public function colonelActivityCreateOrUpdate(array $params)  
133 - {  
134 - $this->builder  
135 - ->method('POST')  
136 - ->params($params)  
137 - ->path('alliance/colonelActivityCreateOrUpdate')  
138 - ->service('alliance.colonelActivityCreateOrUpdate');  
139 - }  
140 -  
141 - /**  
142 - * @inheritDoc  
143 - */  
144 - public function activityProductCategoryList(array $params)  
145 - {  
146 - $this->builder  
147 - ->method('POST')  
148 - ->params($params)  
149 - ->path('alliance/activityProductCategoryList')  
150 - ->service('alliance.activityProductCategoryList');  
151 - }  
152 -  
153 - /**  
154 - * @inheritDoc  
155 - */  
156 - public function instituteColonelActivityList(array $params)  
157 - {  
158 - $this->builder  
159 - ->method('POST')  
160 - ->params($params)  
161 - ->path('alliance/instituteColonelActivityList')  
162 - ->service('alliance.instituteColonelActivityList');  
163 - }  
164 -  
165 - /**  
166 - * @inheritDoc  
167 - */  
168 - public function instituteColonelActivityOperate(array $params)  
169 - {  
170 - $this->builder  
171 - ->method('POST')  
172 - ->params($params)  
173 - ->path('alliance/instituteColonelActivityOperate')  
174 - ->service('alliance.instituteColonelActivityOperate');  
175 - }  
176 -  
177 - /**  
178 - * @inheritDoc  
179 - */  
180 - public function colonelActivityProduct(array $params)  
181 - {  
182 - $this->builder  
183 - ->method('POST')  
184 - ->params($params)  
185 - ->path('alliance/colonelActivityProduct')  
186 - ->service('alliance.colonelActivityProduct');  
187 - }  
188 -  
189 - /**  
190 - * @inheritDoc  
191 - */  
192 - public function colonelActivityProductAudit(array $params)  
193 - {  
194 - $this->builder  
195 - ->method('POST')  
196 - ->params($params)  
197 - ->path('alliance/colonelActivityProductAudit')  
198 - ->service('alliance.colonelActivityProductAudit');  
199 - }  
200 -  
201 - /**  
202 - * @inheritDoc  
203 - */  
204 - public function colonelActivityProductExtension(array $params)  
205 - {  
206 - $this->builder  
207 - ->method('POST')  
208 - ->params($params)  
209 - ->path('alliance/colonelActivityProductExtension')  
210 - ->service('alliance.colonelActivityProductExtension');  
211 - }  
212 -  
213 - /**  
214 - * @inheritDoc  
215 - */  
216 - public function specialApplyList(array $params)  
217 - {  
218 - $this->builder  
219 - ->method('POST')  
220 - ->params($params)  
221 - ->path('buyin.colonel/specialApplyList')  
222 - ->service('buyin.colonel.specialApplyList');  
223 - }  
224 -  
225 - /**  
226 - * @inheritDoc  
227 - */  
228 - public function specialApplyDeal(array $params)  
229 - {  
230 - $this->builder  
231 - ->method('POST')  
232 - ->params($params)  
233 - ->path('buyin.colonel/specialApplyDeal')  
234 - ->service('buyin.colonel.specialApplyDeal');  
235 - }  
236 -  
237 - /**  
238 - * @inheritDoc  
239 - */  
240 - public function materialsProductsSearch(array $params)  
241 - {  
242 - $this->builder  
243 - ->method('POST')  
244 - ->params($params)  
245 - ->path('alliance/materialsProductsSearch')  
246 - ->service('alliance.materialsProductsSearch');  
247 - }  
248 -  
249 - /**  
250 - * @inheritDoc  
251 - */  
252 - public function materialsProductsDetails(array $params)  
253 - {  
254 - $this->builder  
255 - ->method('POST')  
256 - ->params($params)  
257 - ->path('alliance/materialsProductsDetails')  
258 - ->service('alliance.materialsProductsDetails');  
259 - }  
260 -  
261 - /**  
262 - * @inheritDoc  
263 - */  
264 - public function materialsProductCategory(array $params)  
265 - {  
266 - $this->builder  
267 - ->method('POST')  
268 - ->params($params)  
269 - ->path('alliance/materialsProductCategory')  
270 - ->service('alliance.materialsProductCategory');  
271 - }  
272 -  
273 - /**  
274 - * @inheritDoc  
275 - */  
276 - public function materialsProductStatus(array $params)  
277 - {  
278 - $this->builder  
279 - ->method('POST')  
280 - ->params($params)  
281 - ->path('buyin/materialsProductStatus')  
282 - ->service('buyin.materialsProductStatus');  
283 - }  
284 -  
285 - /**  
286 - * @inheritDoc  
287 - */  
288 - public function queryInstituteOrders(array $params)  
289 - {  
290 - $this->builder  
291 - ->method('POST')  
292 - ->params($params)  
293 - ->path('buyin/queryInstituteOrders')  
294 - ->service('buyin.queryInstituteOrders');  
295 - }  
296 -  
297 - /**  
298 - * @inheritDoc  
299 - */  
300 - public function kolPidCreate(array $params)  
301 - {  
302 - $this->builder  
303 - ->method('POST')  
304 - ->params($params)  
305 - ->path('buyin/kolPidCreate')  
306 - ->service('buyin.kolPidCreate');  
307 - }  
308 -  
309 - /**  
310 - * @inheritDoc  
311 - */  
312 - public function kolPidList(array $params)  
313 - {  
314 - $this->builder  
315 - ->method('POST')  
316 - ->params($params)  
317 - ->path('buyin/kolPidList')  
318 - ->service('buyin.kolPidList');  
319 - }  
320 -  
321 - /**  
322 - * @inheritDoc  
323 - */  
324 - public function kolPidEdit(array $params)  
325 - {  
326 - $this->builder  
327 - ->method('POST')  
328 - ->params($params)  
329 - ->path('buyin/kolPidEdit')  
330 - ->service('buyin.kolPidEdit');  
331 - }  
332 -  
333 - /**  
334 - * @inheritDoc  
335 - */  
336 - public function kolPidDel(array $params)  
337 - {  
338 - $this->builder  
339 - ->method('POST')  
340 - ->params($params)  
341 - ->path('buyin/kolPidDel')  
342 - ->service('buyin.kolPidDel');  
343 - }  
344 -  
345 - /**  
346 - * @inheritDoc  
347 - */  
348 - public function kolProductShare(array $params)  
349 - {  
350 - $this->builder  
351 - ->method('POST')  
352 - ->params($params)  
353 - ->path('buyin/kolProductShare')  
354 - ->service('buyin.kolProductShare');  
355 - }  
356 -  
357 - /**  
358 - * @inheritDoc  
359 - */  
360 - public function institutePidCreate(array $params)  
361 - {  
362 - $this->builder  
363 - ->method('POST')  
364 - ->params($params)  
365 - ->path('buyin/institutePidCreate')  
366 - ->service('buyin.institutePidCreate');  
367 - }  
368 -  
369 - /**  
370 - * @inheritDoc  
371 - */  
372 - public function institutePidList(array $params)  
373 - {  
374 - $this->builder  
375 - ->method('POST')  
376 - ->params($params)  
377 - ->path('buyin/institutePidList')  
378 - ->service('buyin.institutePidList');  
379 - }  
380 -  
381 - /**  
382 - * @inheritDoc  
383 - */  
384 - public function institutePidEdit(array $params)  
385 - {  
386 - $this->builder  
387 - ->method('POST')  
388 - ->params($params)  
389 - ->path('buyin/institutePidEdit')  
390 - ->service('buyin.institutePidEdit');  
391 - }  
392 -  
393 - /**  
394 - * @inheritDoc  
395 - */  
396 - public function institutePidDel(array $params)  
397 - {  
398 - $this->builder  
399 - ->method('POST')  
400 - ->params($params)  
401 - ->path('buyin/institutePidDel')  
402 - ->service('buyin.institutePidDel');  
403 - }  
404 -  
405 - /**  
406 - * @inheritDoc  
407 - */  
408 - public function liveShareMaterial(array $params)  
409 - {  
410 - $this->builder  
411 - ->method('POST')  
412 - ->params($params)  
413 - ->path('buyin/liveShareMaterial')  
414 - ->service('buyin.liveShareMaterial');  
415 - }  
416 -  
417 - /**  
418 - * @inheritDoc  
419 - */  
420 - public function instituteLiveShare(array $params)  
421 - {  
422 - $this->builder  
423 - ->method('POST')  
424 - ->params($params)  
425 - ->path('buyin/instituteLiveShare')  
426 - ->service('buyin.instituteLiveShare');  
427 - }  
428 -  
429 - /**  
430 - * @inheritDoc  
431 - */  
432 - public function instituteOrderAds(array $params)  
433 - {  
434 - $this->builder  
435 - ->method('POST')  
436 - ->params($params)  
437 - ->path('buyin/instituteOrderAds')  
438 - ->service('buyin.instituteOrderAds');  
439 - }  
440 -  
441 - /**  
442 - * @inheritDoc  
443 - */  
444 - public function kolOrderAds(array $params)  
445 - {  
446 - $this->builder  
447 - ->method('POST')  
448 - ->params($params)  
449 - ->path('buyin/kolOrderAds')  
450 - ->service('buyin.kolOrderAds');  
451 - }  
452 -  
453 - /**  
454 - * @inheritDoc  
455 - */  
456 - public function shopPidMemberCreate(array $params)  
457 - {  
458 - $this->builder  
459 - ->method('POST')  
460 - ->params($params)  
461 - ->path('buyin/shopPidMemberCreate')  
462 - ->service('buyin.shopPidMemberCreate');  
463 - }  
464 -  
465 - /**  
466 - * @inheritDoc  
467 - */  
468 - public function kolMaterialsProductsDetails(array $params)  
469 - {  
470 - $this->builder  
471 - ->method('POST')  
472 - ->params($params)  
473 - ->path('buyin/kolMaterialsProductsDetails')  
474 - ->service('buyin.kolMaterialsProductsDetails');  
475 - }  
476 -  
477 - /**  
478 - * @inheritDoc  
479 - */  
480 - public function getProductShareMaterial(array $params)  
481 - {  
482 - $this->builder  
483 - ->method('POST')  
484 - ->params($params)  
485 - ->path('buyin/getProductShareMaterial')  
486 - ->service('buyin.getProductShareMaterial');  
487 - }  
488 -  
489 - /**  
490 - * @inheritDoc  
491 - */  
492 - public function getProductSkus(array $params)  
493 - {  
494 - $this->builder  
495 - ->method('POST')  
496 - ->params($params)  
497 - ->path('buyin/productSkus')  
498 - ->service('buyin.productSkus');  
499 - }  
500 -  
501 - /**  
502 - * @inheritDoc  
503 - */  
504 - public function shareCommandParse(array $params)  
505 - {  
506 - $this->builder  
507 - ->method('POST')  
508 - ->params($params)  
509 - ->path('buyin/shareCommandParse')  
510 - ->service('buyin.shareCommandParse');  
511 - }  
512 -  
513 - /**  
514 - * @inheritDoc  
515 - */  
516 - public function activityShareConvert(array $params)  
517 - {  
518 - $this->builder  
519 - ->method('POST')  
520 - ->params($params)  
521 - ->path('buyin/activityShareConvert')  
522 - ->service('buyin.activityShareConvert');  
523 - }  
524 -}  
1 -<?php  
2 -  
3 -namespace Lackoxygen\TiktokShop\Passage\Alliance;  
4 -  
5 -use Lackoxygen\TiktokShop\Passage\ResultSet;  
6 -  
7 -interface AllianceInterface  
8 -{  
9 - /**  
10 - * @link https://op.jinritemai.com/docs/api-docs/61/923  
11 - * @param array $params  
12 - * @return ResultSet  
13 - */  
14 - public function simplePlan(array $params);  
15 -  
16 - /**  
17 - * @link https://op.jinritemai.com/docs/api-docs/61/922  
18 - * @param array $params  
19 - * @return ResultSet  
20 - */  
21 - public function exclusivePlan(array $params);  
22 -  
23 - /**  
24 - * @link https://op.jinritemai.com/docs/api-docs/61/743  
25 - * @param array $params  
26 - * @return ResultSet  
27 - */  
28 - public function activitySearch(array $params);  
29 -  
30 - /**  
31 - * @link https://op.jinritemai.com/docs/api-docs/61/744  
32 - * @param array $params  
33 - * @return ResultSet  
34 - */  
35 - public function applyActivities(array $params);  
36 -  
37 - /**  
38 - * @link https://op.jinritemai.com/docs/api-docs/61/708  
39 - * @param array $params  
40 - * @return ResultSet  
41 - */  
42 - public function createOrUpdateOrienPlan(array $params);  
43 -  
44 - /**  
45 - * @link https://op.jinritemai.com/docs/api-docs/61/705  
46 - * @param array $params  
47 - * @return ResultSet  
48 - */  
49 - public function orienPlanList(array $params);  
50 -  
51 - /**  
52 - * @link https://op.jinritemai.com/docs/api-docs/61/709  
53 - * @param array $params  
54 - * @return ResultSet  
55 - */  
56 - public function orienPlanAuthors(array $params);  
57 -  
58 - /**  
59 - * @link https://op.jinritemai.com/docs/api-docs/61/706  
60 - * @param array $params  
61 - * @return ResultSet  
62 - */  
63 - public function orienPlanCtrl(array $params);  
64 -  
65 - /**  
66 - * @link https://op.jinritemai.com/docs/api-docs/61/706  
67 - * @param array $params  
68 - * @return ResultSet  
69 - */  
70 - public function orienPlanAuthorsAdd(array $params);  
71 -  
72 - /**  
73 - * @link https://op.jinritemai.com/docs/api-docs/61/707  
74 - * @param array $params  
75 - * @return ResultSet  
76 - */  
77 - public function orienPlanAudit(array $params);  
78 -  
79 - /**  
80 - * @link https://op.jinritemai.com/docs/api-docs/61/966  
81 - * @param array $params  
82 - * @return ResultSet  
83 - */  
84 - public function colonelActivityCreateOrUpdate(array $params);  
85 -  
86 - /**  
87 - * @link https://op.jinritemai.com/docs/api-docs/61/970  
88 - * @param array $params  
89 - * @return ResultSet  
90 - */  
91 - public function activityProductCategoryList(array $params);  
92 -  
93 - /**  
94 - * @link https://op.jinritemai.com/docs/api-docs/61/1330  
95 - * @param array $params  
96 - * @return ResultSet  
97 - */  
98 - public function instituteColonelActivityList(array $params);  
99 -  
100 - /**  
101 - * @link https://op.jinritemai.com/docs/api-docs/61/972  
102 - * @param array $params  
103 - * @return ResultSet  
104 - */  
105 - public function instituteColonelActivityOperate(array $params);  
106 -  
107 - /**  
108 - * @link https://op.jinritemai.com/docs/api-docs/61/968  
109 - * @param array $params  
110 - * @return ResultSet  
111 - */  
112 - public function colonelActivityProduct(array $params);  
113 -  
114 - /**  
115 - * @link https://op.jinritemai.com/docs/api-docs/61/971  
116 - * @param array $params  
117 - * @return ResultSet  
118 - */  
119 - public function colonelActivityProductAudit(array $params);  
120 -  
121 - /**  
122 - * @link https://op.jinritemai.com/docs/api-docs/61/967  
123 - * @param array $params  
124 - * @return ResultSet  
125 - */  
126 - public function colonelActivityProductExtension(array $params);  
127 -  
128 - /**  
129 - * @link https://op.jinritemai.com/docs/api-docs/61/1552  
130 - * @param array $params  
131 - * @return ResultSet  
132 - */  
133 - public function specialApplyList(array $params);  
134 -  
135 - /**  
136 - * @link https://op.jinritemai.com/docs/api-docs/61/1553  
137 - * @param array $params  
138 - * @return ResultSet  
139 - */  
140 - public function specialApplyDeal(array $params);  
141 -  
142 - /**  
143 - * @link https://op.jinritemai.com/docs/api-docs/61/924  
144 - * @param array $params  
145 - * @return ResultSet  
146 - */  
147 - public function materialsProductsSearch(array $params);  
148 -  
149 - /**  
150 - * @link https://op.jinritemai.com/docs/api-docs/61/1356  
151 - * @param array $params  
152 - * @return ResultSet  
153 - */  
154 - public function materialsProductsDetails(array $params);  
155 -  
156 - /**  
157 - * @link https://op.jinritemai.com/docs/api-docs/61/637  
158 - * @param array $params  
159 - * @return ResultSet  
160 - */  
161 - public function materialsProductCategory(array $params);  
162 -  
163 - /**  
164 - * @link https://op.jinritemai.com/docs/api-docs/61/1497  
165 - * @param array $params  
166 - * @return ResultSet  
167 - */  
168 - public function materialsProductStatus(array $params);  
169 -  
170 - /**  
171 - * @link https://op.jinritemai.com/docs/api-docs/61/1398  
172 - * @param array $params  
173 - * @return ResultSet  
174 - */  
175 - public function queryInstituteOrders(array $params);  
176 -  
177 - /**  
178 - * @link https://op.jinritemai.com/docs/api-docs/61/1460  
179 - * @param array $params  
180 - * @return ResultSet  
181 - */  
182 - public function kolPidCreate(array $params);  
183 -  
184 - /**  
185 - * @link https://op.jinritemai.com/docs/api-docs/61/1461  
186 - * @param array $params  
187 - * @return ResultSet  
188 - */  
189 - public function kolPidList(array $params);  
190 -  
191 - /**  
192 - * @link https://op.jinritemai.com/docs/api-docs/61/1462  
193 - * @param array $params  
194 - * @return ResultSet  
195 - */  
196 - public function kolPidEdit(array $params);  
197 -  
198 - /**  
199 - * @link https://op.jinritemai.com/docs/api-docs/61/1463  
200 - * @param array $params  
201 - * @return ResultSet  
202 - */  
203 - public function kolPidDel(array $params);  
204 -  
205 - /**  
206 - * @link https://op.jinritemai.com/docs/api-docs/61/1464  
207 - * @param array $params  
208 - * @return ResultSet  
209 - */  
210 - public function kolProductShare(array $params);  
211 -  
212 - /**  
213 - * @link https://op.jinritemai.com/docs/api-docs/61/1273  
214 - * @param array $params  
215 - * @return ResultSet  
216 - */  
217 - public function institutePidCreate(array $params);  
218 -  
219 - /**  
220 - * @link https://op.jinritemai.com/docs/api-docs/61/1269  
221 - * @param array $params  
222 - * @return ResultSet  
223 - */  
224 - public function institutePidList(array $params);  
225 -  
226 - /**  
227 - * @link https://op.jinritemai.com/docs/api-docs/61/1270  
228 - * @param array $params  
229 - * @return ResultSet  
230 - */  
231 - public function institutePidEdit(array $params);  
232 -  
233 - /**  
234 - * @link https://op.jinritemai.com/docs/api-docs/61/1271  
235 - * @param array $params  
236 - * @return ResultSet  
237 - */  
238 - public function institutePidDel(array $params);  
239 -  
240 - /**  
241 - * @link https://op.jinritemai.com/docs/api-docs/61/1396  
242 - * @param array $params  
243 - * @return ResultSet  
244 - */  
245 - public function liveShareMaterial(array $params);  
246 -  
247 - /**  
248 - * @link https://op.jinritemai.com/docs/api-docs/61/1297  
249 - * @param array $params  
250 - * @return ResultSet  
251 - */  
252 - public function instituteLiveShare(array $params);  
253 -  
254 - /**  
255 - * @link https://op.jinritemai.com/docs/api-docs/61/1296  
256 - * @param array $params  
257 - * @return ResultSet  
258 - */  
259 - public function instituteOrderAds(array $params);  
260 -  
261 - /**  
262 - * @link https://op.jinritemai.com/docs/api-docs/61/1459  
263 - * @param array $params  
264 - * @return ResultSet  
265 - */  
266 - public function kolOrderAds(array $params);  
267 -  
268 - /**  
269 - * @link https://op.jinritemai.com/docs/api-docs/61/1493  
270 - * @param array $params  
271 - * @return ResultSet  
272 - */  
273 - public function shopPidMemberCreate(array $params);  
274 -  
275 - /**  
276 - * @link https://op.jinritemai.com/docs/api-docs/61/1589  
277 - * @param array $params  
278 - * @return ResultSet  
279 - */  
280 - public function kolMaterialsProductsDetails(array $params);  
281 -  
282 - /**  
283 - * @link https://op.jinritemai.com/docs/api-docs/61/1588  
284 - * @param array $params  
285 - * @return ResultSet  
286 - */  
287 - public function getProductShareMaterial(array $params);  
288 -  
289 - /**  
290 - * @link https://op.jinritemai.com/docs/api-docs/61/1626  
291 - * @param array $params  
292 - * @return mixed  
293 - */  
294 - public function getProductSkus(array $params);  
295 -  
296 - /**  
297 - * @link https://op.jinritemai.com/docs/api-docs/61/1726  
298 - * @param array $params  
299 - * @return mixed  
300 - */  
301 - public function shareCommandParse(array $params);  
302 -  
303 - /**  
304 - * @link https://op.jinritemai.com/docs/api-docs/61/2003  
305 - * @param array $params  
306 - * @return mixed  
307 - */  
308 - public function activityShareConvert(array $params);  
309 -}  
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Antispam;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Antispam extends Passage implements AntispamInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function antispamUserLogin(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('antispam.userLogin')
  16 + ->path('/antispam/userLogin')
  17 + ->params($params);
  18 + }
  19 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Antispam;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 风控安全API
  9 + */
  10 +interface AntispamInterface
  11 +{
  12 + /**
  13 + * 商户登陆风险检查
  14 + * @link https://op.jinritemai.com/docs/api-docs/187/635
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function antispamUserLogin(array $params);
  19 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Btas;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Btas extends Passage implements BtasInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function btasShipping(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('btas.shipping')
  16 + ->path('/btas/shipping')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function btasGetInspectionOrder(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('btas.getInspectionOrder')
  27 + ->path('/btas/getInspectionOrder')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function btasSaveInspectionOnline(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('btas.saveInspectionOnline')
  38 + ->path('/btas/saveInspectionOnline')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + public function btasGetOrderInspectionResult(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('btas.getOrderInspectionResult')
  49 + ->path('/btas/getOrderInspectionResult')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + public function btasSaveInspectionInfo(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('btas.saveInspectionInfo')
  60 + ->path('/btas/saveInspectionInfo')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + public function btasListBrand(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('btas.listBrand')
  71 + ->path('/btas/listBrand')
  72 + ->params($params);
  73 + }
  74 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Btas;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note BTAS质检API
  9 + */
  10 +interface BtasInterface
  11 +{
  12 + /**
  13 + * 商家调用发货
  14 + * @link https://op.jinritemai.com/docs/api-docs/49/489
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function btasShipping(array $params);
  19 +
  20 + /**
  21 + * ⁣查询订单是否需要质检
  22 + * @link https://op.jinritemai.com/docs/api-docs/49/473
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function btasGetInspectionOrder(array $params);
  27 +
  28 + /**
  29 + * 图片质检送检
  30 + * @link https://op.jinritemai.com/docs/api-docs/49/572
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function btasSaveInspectionOnline(array $params);
  35 +
  36 + /**
  37 + * 获取订单的质检结果
  38 + * @link https://op.jinritemai.com/docs/api-docs/49/573
  39 + * @param array $params
  40 + * @return ResultSet
  41 + */
  42 + public function btasGetOrderInspectionResult(array $params);
  43 +
  44 + /**
  45 + * 商家送检调用
  46 + * @link https://op.jinritemai.com/docs/api-docs/49/574
  47 + * @param array $params
  48 + * @return ResultSet
  49 + */
  50 + public function btasSaveInspectionInfo(array $params);
  51 +
  52 + /**
  53 + * 获取可图片鉴定的品牌
  54 + * @link https://op.jinritemai.com/docs/api-docs/49/1865
  55 + * @param array $params
  56 + * @return ResultSet
  57 + */
  58 + public function btasListBrand(array $params);
  59 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Buyin;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Buyin extends Passage implements BuyinInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + function buyinSimplePlan(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('buyin.simplePlan')
  16 + ->path('/buyin/simplePlan')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + function buyinShopActivityList(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('buyin.ShopActivityList')
  27 + ->path('/buyin/ShopActivityList')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + function buyinShopActivityDetail(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('buyin.shopActivityDetail')
  38 + ->path('/buyin/shopActivityDetail')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + function buyinApplyActivities(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('buyin.applyActivities')
  49 + ->path('/buyin/applyActivities')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + function buyinActivityProductExtendList(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('buyin.activityProductExtendList')
  60 + ->path('/buyin/activityProductExtendList')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + function buyinActivityProductExtendApprove(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('buyin.activityProductExtendApprove')
  71 + ->path('/buyin/activityProductExtendApprove')
  72 + ->params($params);
  73 + }
  74 +
  75 + /**
  76 + * @inheritDoc
  77 + */
  78 + function buyinCreateOrUpdateOrienPlan(array $params)
  79 + {
  80 + $this->builder->method('POST')
  81 + ->service('buyin.createOrUpdateOrienPlan')
  82 + ->path('/buyin/createOrUpdateOrienPlan')
  83 + ->params($params);
  84 + }
  85 +
  86 + /**
  87 + * @inheritDoc
  88 + */
  89 + function buyinOrienPlanList(array $params)
  90 + {
  91 + $this->builder->method('POST')
  92 + ->service('buyin.orienPlanList')
  93 + ->path('/buyin/orienPlanList')
  94 + ->params($params);
  95 + }
  96 +
  97 + /**
  98 + * @inheritDoc
  99 + */
  100 + function buyinOrienPlanCtrl(array $params)
  101 + {
  102 + $this->builder->method('POST')
  103 + ->service('buyin.orienPlanCtrl')
  104 + ->path('/buyin/orienPlanCtrl')
  105 + ->params($params);
  106 + }
  107 +
  108 + /**
  109 + * @inheritDoc
  110 + */
  111 + function buyinOrienPlanAuthors(array $params)
  112 + {
  113 + $this->builder->method('POST')
  114 + ->service('buyin.orienPlanAuthors')
  115 + ->path('/buyin/orienPlanAuthors')
  116 + ->params($params);
  117 + }
  118 +
  119 + /**
  120 + * @inheritDoc
  121 + */
  122 + function buyinOrienPlanAuthorsAdd(array $params)
  123 + {
  124 + $this->builder->method('POST')
  125 + ->service('buyin.orienPlanAuthorsAdd')
  126 + ->path('/buyin/orienPlanAuthorsAdd')
  127 + ->params($params);
  128 + }
  129 +
  130 + /**
  131 + * @inheritDoc
  132 + */
  133 + function buyinOrienPlanAudit(array $params)
  134 + {
  135 + $this->builder->method('POST')
  136 + ->service('buyin.orienPlanAudit')
  137 + ->path('/buyin/orienPlanAudit')
  138 + ->params($params);
  139 + }
  140 +
  141 + /**
  142 + * @inheritDoc
  143 + */
  144 + function buyinExclusivePlan(array $params)
  145 + {
  146 + $this->builder->method('POST')
  147 + ->service('buyin.exclusivePlan')
  148 + ->path('/buyin/exclusivePlan')
  149 + ->params($params);
  150 + }
  151 +
  152 + /**
  153 + * @inheritDoc
  154 + */
  155 + function buyinExclusivePlanAuthorOperate(array $params)
  156 + {
  157 + $this->builder->method('POST')
  158 + ->service('buyin.exclusivePlanAuthorOperate')
  159 + ->path('/buyin/exclusivePlanAuthorOperate')
  160 + ->params($params);
  161 + }
  162 +
  163 + /**
  164 + * @inheritDoc
  165 + */
  166 + function allianceColonelActivityCreateOrUpdate(array $params)
  167 + {
  168 + $this->builder->method('POST')
  169 + ->service('alliance.colonelActivityCreateOrUpdate')
  170 + ->path('/alliance/colonelActivityCreateOrUpdate')
  171 + ->params($params);
  172 + }
  173 +
  174 + /**
  175 + * @inheritDoc
  176 + */
  177 + function allianceActivityProductCategoryList(array $params)
  178 + {
  179 + $this->builder->method('POST')
  180 + ->service('alliance.activityProductCategoryList')
  181 + ->path('/alliance/activityProductCategoryList')
  182 + ->params($params);
  183 + }
  184 +
  185 + /**
  186 + * @inheritDoc
  187 + */
  188 + function allianceInstituteColonelActivityList(array $params)
  189 + {
  190 + $this->builder->method('POST')
  191 + ->service('alliance.instituteColonelActivityList')
  192 + ->path('/alliance/instituteColonelActivityList')
  193 + ->params($params);
  194 + }
  195 +
  196 + /**
  197 + * @inheritDoc
  198 + */
  199 + function allianceInstituteColonelActivityOperate(array $params)
  200 + {
  201 + $this->builder->method('POST')
  202 + ->service('alliance.instituteColonelActivityOperate')
  203 + ->path('/alliance/instituteColonelActivityOperate')
  204 + ->params($params);
  205 + }
  206 +
  207 + /**
  208 + * @inheritDoc
  209 + */
  210 + function allianceColonelActivityProduct(array $params)
  211 + {
  212 + $this->builder->method('POST')
  213 + ->service('alliance.colonelActivityProduct')
  214 + ->path('/alliance/colonelActivityProduct')
  215 + ->params($params);
  216 + }
  217 +
  218 + /**
  219 + * @inheritDoc
  220 + */
  221 + function allianceColonelActivityProductAudit(array $params)
  222 + {
  223 + $this->builder->method('POST')
  224 + ->service('alliance.colonelActivityProductAudit')
  225 + ->path('/alliance/colonelActivityProductAudit')
  226 + ->params($params);
  227 + }
  228 +
  229 + /**
  230 + * @inheritDoc
  231 + */
  232 + function buyinColonel/specialApplyList(array $params)
  233 + {
  234 + $this->builder->method('POST')
  235 + ->service('buyin.colonel/specialApplyList')
  236 + ->path('/buyin/colonel/specialApplyList')
  237 + ->params($params);
  238 + }
  239 +
  240 + /**
  241 + * @inheritDoc
  242 + */
  243 + function allianceColonelActivityProductExtension(array $params)
  244 + {
  245 + $this->builder->method('POST')
  246 + ->service('alliance.colonelActivityProductExtension')
  247 + ->path('/alliance/colonelActivityProductExtension')
  248 + ->params($params);
  249 + }
  250 +
  251 + /**
  252 + * @inheritDoc
  253 + */
  254 + function buyinColonel/specialApplyDeal(array $params)
  255 + {
  256 + $this->builder->method('POST')
  257 + ->service('buyin.colonel/specialApplyDeal')
  258 + ->path('/buyin/colonel/specialApplyDeal')
  259 + ->params($params);
  260 + }
  261 +
  262 + /**
  263 + * @inheritDoc
  264 + */
  265 + function buyinOriginColonelEnrollableActivityList(array $params)
  266 + {
  267 + $this->builder->method('POST')
  268 + ->service('buyin.originColonelEnrollableActivityList')
  269 + ->path('/buyin/originColonelEnrollableActivityList')
  270 + ->params($params);
  271 + }
  272 +
  273 + /**
  274 + * @inheritDoc
  275 + */
  276 + function buyinColonelActivityDetail(array $params)
  277 + {
  278 + $this->builder->method('POST')
  279 + ->service('buyin.colonelActivityDetail')
  280 + ->path('/buyin/colonelActivityDetail')
  281 + ->params($params);
  282 + }
  283 +
  284 + /**
  285 + * @inheritDoc
  286 + */
  287 + function buyinOriginColonelUnappliedProductList(array $params)
  288 + {
  289 + $this->builder->method('POST')
  290 + ->service('buyin.originColonelUnappliedProductList')
  291 + ->path('/buyin/originColonelUnappliedProductList')
  292 + ->params($params);
  293 + }
  294 +
  295 + /**
  296 + * @inheritDoc
  297 + */
  298 + function buyinOriginColonelApplyActivities(array $params)
  299 + {
  300 + $this->builder->method('POST')
  301 + ->service('buyin.originColonelApplyActivities')
  302 + ->path('/buyin/originColonelApplyActivities')
  303 + ->params($params);
  304 + }
  305 +
  306 + /**
  307 + * @inheritDoc
  308 + */
  309 + function buyinActivityProductList(array $params)
  310 + {
  311 + $this->builder->method('POST')
  312 + ->service('buyin.activityProductList')
  313 + ->path('/buyin/activityProductList')
  314 + ->params($params);
  315 + }
  316 +
  317 + /**
  318 + * @inheritDoc
  319 + */
  320 + function buyinActivityProductCancel(array $params)
  321 + {
  322 + $this->builder->method('POST')
  323 + ->service('buyin.activityProductCancel')
  324 + ->path('/buyin/activityProductCancel')
  325 + ->params($params);
  326 + }
  327 +
  328 + /**
  329 + * @inheritDoc
  330 + */
  331 + function allianceMaterialsProductsSearch(array $params)
  332 + {
  333 + $this->builder->method('POST')
  334 + ->service('alliance.materialsProductsSearch')
  335 + ->path('/alliance/materialsProductsSearch')
  336 + ->params($params);
  337 + }
  338 +
  339 + /**
  340 + * @inheritDoc
  341 + */
  342 + function buyinSimplePlanList(array $params)
  343 + {
  344 + $this->builder->method('POST')
  345 + ->service('buyin.simplePlanList')
  346 + ->path('/buyin/simplePlanList')
  347 + ->params($params);
  348 + }
  349 +
  350 + /**
  351 + * @inheritDoc
  352 + */
  353 + function allianceMaterialsProductsDetails(array $params)
  354 + {
  355 + $this->builder->method('POST')
  356 + ->service('alliance.materialsProductsDetails')
  357 + ->path('/alliance/materialsProductsDetails')
  358 + ->params($params);
  359 + }
  360 +
  361 + /**
  362 + * @inheritDoc
  363 + */
  364 + function buyinProductSkus(array $params)
  365 + {
  366 + $this->builder->method('POST')
  367 + ->service('buyin.productSkus')
  368 + ->path('/buyin/productSkus')
  369 + ->params($params);
  370 + }
  371 +
  372 + /**
  373 + * @inheritDoc
  374 + */
  375 + function allianceMaterialsProductCategory(array $params)
  376 + {
  377 + $this->builder->method('POST')
  378 + ->service('alliance.materialsProductCategory')
  379 + ->path('/alliance/materialsProductCategory')
  380 + ->params($params);
  381 + }
  382 +
  383 + /**
  384 + * @inheritDoc
  385 + */
  386 + function buyinMaterialsProductStatus(array $params)
  387 + {
  388 + $this->builder->method('POST')
  389 + ->service('buyin.materialsProductStatus')
  390 + ->path('/buyin/materialsProductStatus')
  391 + ->params($params);
  392 + }
  393 +
  394 + /**
  395 + * @inheritDoc
  396 + */
  397 + function buyinKolMaterialsProductsSearch(array $params)
  398 + {
  399 + $this->builder->method('POST')
  400 + ->service('buyin.kolMaterialsProductsSearch')
  401 + ->path('/buyin/kolMaterialsProductsSearch')
  402 + ->params($params);
  403 + }
  404 +
  405 + /**
  406 + * @inheritDoc
  407 + */
  408 + function buyinKolMaterialsProductsDetails(array $params)
  409 + {
  410 + $this->builder->method('POST')
  411 + ->service('buyin.kolMaterialsProductsDetails')
  412 + ->path('/buyin/kolMaterialsProductsDetails')
  413 + ->params($params);
  414 + }
  415 +
  416 + /**
  417 + * @inheritDoc
  418 + */
  419 + function buyinQueryInstituteOrders(array $params)
  420 + {
  421 + $this->builder->method('POST')
  422 + ->service('buyin.queryInstituteOrders')
  423 + ->path('/buyin/queryInstituteOrders')
  424 + ->params($params);
  425 + }
  426 +
  427 + /**
  428 + * @inheritDoc
  429 + */
  430 + function buyinInstituteOrderMCN(array $params)
  431 + {
  432 + $this->builder->method('POST')
  433 + ->service('buyin.instituteOrderMCN')
  434 + ->path('/buyin/instituteOrderMCN')
  435 + ->params($params);
  436 + }
  437 +
  438 + /**
  439 + * @inheritDoc
  440 + */
  441 + function buyinInstituteOrderColonel(array $params)
  442 + {
  443 + $this->builder->method('POST')
  444 + ->service('buyin.instituteOrderColonel')
  445 + ->path('/buyin/instituteOrderColonel')
  446 + ->params($params);
  447 + }
  448 +
  449 + /**
  450 + * @inheritDoc
  451 + */
  452 + function buyinInstPickSourceConvert(array $params)
  453 + {
  454 + $this->builder->method('POST')
  455 + ->service('buyin.instPickSourceConvert')
  456 + ->path('/buyin/instPickSourceConvert')
  457 + ->params($params);
  458 + }
  459 +
  460 + /**
  461 + * @inheritDoc
  462 + */
  463 + function buyinInstGmv(array $params)
  464 + {
  465 + $this->builder->method('POST')
  466 + ->service('buyin.instGmv')
  467 + ->path('/buyin/instGmv')
  468 + ->params($params);
  469 + }
  470 +
  471 + /**
  472 + * @inheritDoc
  473 + */
  474 + function buyinInstGmvDetail(array $params)
  475 + {
  476 + $this->builder->method('POST')
  477 + ->service('buyin.instGmvDetail')
  478 + ->path('/buyin/instGmvDetail')
  479 + ->params($params);
  480 + }
  481 +
  482 + /**
  483 + * @inheritDoc
  484 + */
  485 + function buyinKolPidCreate(array $params)
  486 + {
  487 + $this->builder->method('POST')
  488 + ->service('buyin.kolPidCreate')
  489 + ->path('/buyin/kolPidCreate')
  490 + ->params($params);
  491 + }
  492 +
  493 + /**
  494 + * @inheritDoc
  495 + */
  496 + function buyinKolPidList(array $params)
  497 + {
  498 + $this->builder->method('POST')
  499 + ->service('buyin.kolPidList')
  500 + ->path('/buyin/kolPidList')
  501 + ->params($params);
  502 + }
  503 +
  504 + /**
  505 + * @inheritDoc
  506 + */
  507 + function buyinKolPidEdit(array $params)
  508 + {
  509 + $this->builder->method('POST')
  510 + ->service('buyin.kolPidEdit')
  511 + ->path('/buyin/kolPidEdit')
  512 + ->params($params);
  513 + }
  514 +
  515 + /**
  516 + * @inheritDoc
  517 + */
  518 + function buyinKolPidDel(array $params)
  519 + {
  520 + $this->builder->method('POST')
  521 + ->service('buyin.kolPidDel')
  522 + ->path('/buyin/kolPidDel')
  523 + ->params($params);
  524 + }
  525 +
  526 + /**
  527 + * @inheritDoc
  528 + */
  529 + function buyinShareCommandParse(array $params)
  530 + {
  531 + $this->builder->method('POST')
  532 + ->service('buyin.shareCommandParse')
  533 + ->path('/buyin/shareCommandParse')
  534 + ->params($params);
  535 + }
  536 +
  537 + /**
  538 + * @inheritDoc
  539 + */
  540 + function buyinKolProductShare(array $params)
  541 + {
  542 + $this->builder->method('POST')
  543 + ->service('buyin.kolProductShare')
  544 + ->path('/buyin/kolProductShare')
  545 + ->params($params);
  546 + }
  547 +
  548 + /**
  549 + * @inheritDoc
  550 + */
  551 + function buyinInstitutePidCreate(array $params)
  552 + {
  553 + $this->builder->method('POST')
  554 + ->service('buyin.institutePidCreate')
  555 + ->path('/buyin/institutePidCreate')
  556 + ->params($params);
  557 + }
  558 +
  559 + /**
  560 + * @inheritDoc
  561 + */
  562 + function buyinInstitutePidList(array $params)
  563 + {
  564 + $this->builder->method('POST')
  565 + ->service('buyin.institutePidList')
  566 + ->path('/buyin/institutePidList')
  567 + ->params($params);
  568 + }
  569 +
  570 + /**
  571 + * @inheritDoc
  572 + */
  573 + function buyinInstitutePidEdit(array $params)
  574 + {
  575 + $this->builder->method('POST')
  576 + ->service('buyin.institutePidEdit')
  577 + ->path('/buyin/institutePidEdit')
  578 + ->params($params);
  579 + }
  580 +
  581 + /**
  582 + * @inheritDoc
  583 + */
  584 + function buyinInstitutePidDel(array $params)
  585 + {
  586 + $this->builder->method('POST')
  587 + ->service('buyin.institutePidDel')
  588 + ->path('/buyin/institutePidDel')
  589 + ->params($params);
  590 + }
  591 +
  592 + /**
  593 + * @inheritDoc
  594 + */
  595 + function buyinLiveShareMaterial(array $params)
  596 + {
  597 + $this->builder->method('POST')
  598 + ->service('buyin.liveShareMaterial')
  599 + ->path('/buyin/liveShareMaterial')
  600 + ->params($params);
  601 + }
  602 +
  603 + /**
  604 + * @inheritDoc
  605 + */
  606 + function buyinDistributionLiveProductList(array $params)
  607 + {
  608 + $this->builder->method('POST')
  609 + ->service('buyin.distributionLiveProductList')
  610 + ->path('/buyin/distributionLiveProductList')
  611 + ->params($params);
  612 + }
  613 +
  614 + /**
  615 + * @inheritDoc
  616 + */
  617 + function buyinInstituteLiveShare(array $params)
  618 + {
  619 + $this->builder->method('POST')
  620 + ->service('buyin.instituteLiveShare')
  621 + ->path('/buyin/instituteLiveShare')
  622 + ->params($params);
  623 + }
  624 +
  625 + /**
  626 + * @inheritDoc
  627 + */
  628 + function buyinInstituteOrderAds(array $params)
  629 + {
  630 + $this->builder->method('POST')
  631 + ->service('buyin.instituteOrderAds')
  632 + ->path('/buyin/instituteOrderAds')
  633 + ->params($params);
  634 + }
  635 +
  636 + /**
  637 + * @inheritDoc
  638 + */
  639 + function buyinKolOrderAds(array $params)
  640 + {
  641 + $this->builder->method('POST')
  642 + ->service('buyin.kolOrderAds')
  643 + ->path('/buyin/kolOrderAds')
  644 + ->params($params);
  645 + }
  646 +
  647 + /**
  648 + * @inheritDoc
  649 + */
  650 + function buyinShopPidMemberCreate(array $params)
  651 + {
  652 + $this->builder->method('POST')
  653 + ->service('buyin.shopPidMemberCreate')
  654 + ->path('/buyin/shopPidMemberCreate')
  655 + ->params($params);
  656 + }
  657 +
  658 + /**
  659 + * @inheritDoc
  660 + */
  661 + function buyinKolLiveShare(array $params)
  662 + {
  663 + $this->builder->method('POST')
  664 + ->service('buyin.kolLiveShare')
  665 + ->path('/buyin/kolLiveShare')
  666 + ->params($params);
  667 + }
  668 +
  669 + /**
  670 + * @inheritDoc
  671 + */
  672 + function buyinMHandleTrusteeshipApply(array $params)
  673 + {
  674 + $this->builder->method('POST')
  675 + ->service('buyin.mHandleTrusteeshipApply')
  676 + ->path('/buyin/mHandleTrusteeshipApply')
  677 + ->params($params);
  678 + }
  679 +
  680 + /**
  681 + * @inheritDoc
  682 + */
  683 + function buyinColonel/trusteeshipList(array $params)
  684 + {
  685 + $this->builder->method('POST')
  686 + ->service('buyin.colonel/trusteeshipList')
  687 + ->path('/buyin/colonel/trusteeshipList')
  688 + ->params($params);
  689 + }
  690 +
  691 + /**
  692 + * @inheritDoc
  693 + */
  694 + function buyinInstituteOrderPick(array $params)
  695 + {
  696 + $this->builder->method('POST')
  697 + ->service('buyin.instituteOrderPick')
  698 + ->path('/buyin/instituteOrderPick')
  699 + ->params($params);
  700 + }
  701 +
  702 + /**
  703 + * @inheritDoc
  704 + */
  705 + function buyinInstituteLivePreviewShare(array $params)
  706 + {
  707 + $this->builder->method('POST')
  708 + ->service('buyin.instituteLivePreviewShare')
  709 + ->path('/buyin/instituteLivePreviewShare')
  710 + ->params($params);
  711 + }
  712 +
  713 + /**
  714 + * @inheritDoc
  715 + */
  716 + function buyinKolLivePreviewShare(array $params)
  717 + {
  718 + $this->builder->method('POST')
  719 + ->service('buyin.kolLivePreviewShare')
  720 + ->path('/buyin/kolLivePreviewShare')
  721 + ->params($params);
  722 + }
  723 +
  724 + /**
  725 + * @inheritDoc
  726 + */
  727 + function buyinActivityShareConvert(array $params)
  728 + {
  729 + $this->builder->method('POST')
  730 + ->service('buyin.activityShareConvert')
  731 + ->path('/buyin/activityShareConvert')
  732 + ->params($params);
  733 + }
  734 +}
  1 +<?php
  2 +namespace Lackoxygen\TiktokShop\Passage\Buyin;
  3 +
  4 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  5 +
  6 +/**
  7 + * @note 精选联盟API
  8 + */
  9 +interface BuyinInterface
  10 +{
  11 + /**
  12 + * 创建/修改普通商品推广计划
  13 + * @link https://op.jinritemai.com/docs/api-docs/61/923
  14 + * @param array $params
  15 + * @return ResultSet
  16 + */
  17 + function buyinSimplePlan(array $params);
  18 +
  19 + /**
  20 + * 商家可参与的团长活动查询接口
  21 + * @link https://op.jinritemai.com/docs/api-docs/61/1671
  22 + * @param array $params
  23 + * @return ResultSet
  24 + */
  25 + function buyinShopActivityList(array $params);
  26 +
  27 + /**
  28 + * 商家侧获取团长活动详情
  29 + * @link https://op.jinritemai.com/docs/api-docs/61/1797
  30 + * @param array $params
  31 + * @return ResultSet
  32 + */
  33 + function buyinShopActivityDetail(array $params);
  34 +
  35 + /**
  36 + * 商品团长活动提报接口
  37 + * @link https://op.jinritemai.com/docs/api-docs/61/744
  38 + * @param array $params
  39 + * @return ResultSet
  40 + */
  41 + function buyinApplyActivities(array $params);
  42 +
  43 + /**
  44 + * 延长推广待处理/已处理记录查询
  45 + * @link https://op.jinritemai.com/docs/api-docs/61/1674
  46 + * @param array $params
  47 + * @return ResultSet
  48 + */
  49 + function buyinActivityProductExtendList(array $params);
  50 +
  51 + /**
  52 + * 商家处理团长活动商品的推广延期申请
  53 + * @link https://op.jinritemai.com/docs/api-docs/61/1673
  54 + * @param array $params
  55 + * @return ResultSet
  56 + */
  57 + function buyinActivityProductExtendApprove(array $params);
  58 +
  59 + /**
  60 + * 创建/修改商品定向计划
  61 + * @link https://op.jinritemai.com/docs/api-docs/61/708
  62 + * @param array $params
  63 + * @return ResultSet
  64 + */
  65 + function buyinCreateOrUpdateOrienPlan(array $params);
  66 +
  67 + /**
  68 + * 商品定向计划查询
  69 + * @link https://op.jinritemai.com/docs/api-docs/61/705
  70 + * @param array $params
  71 + * @return ResultSet
  72 + */
  73 + function buyinOrienPlanList(array $params);
  74 +
  75 + /**
  76 + * 商品定向计划管理
  77 + * @link https://op.jinritemai.com/docs/api-docs/61/704
  78 + * @param array $params
  79 + * @return ResultSet
  80 + */
  81 + function buyinOrienPlanCtrl(array $params);
  82 +
  83 + /**
  84 + * 查询定向计划作者列表
  85 + * @link https://op.jinritemai.com/docs/api-docs/61/1879
  86 + * @param array $params
  87 + * @return ResultSet
  88 + */
  89 + function buyinOrienPlanAuthors(array $params);
  90 +
  91 + /**
  92 + * 向指定定向计划中添加达人
  93 + * @link https://op.jinritemai.com/docs/api-docs/61/1877
  94 + * @param array $params
  95 + * @return ResultSet
  96 + */
  97 + function buyinOrienPlanAuthorsAdd(array $params);
  98 +
  99 + /**
  100 + * 定向计划达人申请审核
  101 + * @link https://op.jinritemai.com/docs/api-docs/61/1878
  102 + * @param array $params
  103 + * @return ResultSet
  104 + */
  105 + function buyinOrienPlanAudit(array $params);
  106 +
  107 + /**
  108 + * 创建/修改商品专属推广计划
  109 + * @link https://op.jinritemai.com/docs/api-docs/61/1880
  110 + * @param array $params
  111 + * @return ResultSet
  112 + */
  113 + function buyinExclusivePlan(array $params);
  114 +
  115 + /**
  116 + * 店铺专属达人管理
  117 + * @link https://op.jinritemai.com/docs/api-docs/61/1935
  118 + * @param array $params
  119 + * @return ResultSet
  120 + */
  121 + function buyinExclusivePlanAuthorOperate(array $params);
  122 +
  123 + /**
  124 + * 团长活动创建/编辑接口
  125 + * @link https://op.jinritemai.com/docs/api-docs/61/966
  126 + * @param array $params
  127 + * @return ResultSet
  128 + */
  129 + function allianceColonelActivityCreateOrUpdate(array $params);
  130 +
  131 + /**
  132 + * 创建活动时候可选择的类目接口
  133 + * @link https://op.jinritemai.com/docs/api-docs/61/1882
  134 + * @param array $params
  135 + * @return ResultSet
  136 + */
  137 + function allianceActivityProductCategoryList(array $params);
  138 +
  139 + /**
  140 + * 团长活动查询接口
  141 + * @link https://op.jinritemai.com/docs/api-docs/61/1330
  142 + * @param array $params
  143 + * @return ResultSet
  144 + */
  145 + function allianceInstituteColonelActivityList(array $params);
  146 +
  147 + /**
  148 + * 专属团长活动删除接口(下线+删除)
  149 + * @link https://op.jinritemai.com/docs/api-docs/61/972
  150 + * @param array $params
  151 + * @return ResultSet
  152 + */
  153 + function allianceInstituteColonelActivityOperate(array $params);
  154 +
  155 + /**
  156 + * 活动商品查询接口
  157 + * @link https://op.jinritemai.com/docs/api-docs/61/968
  158 + * @param array $params
  159 + * @return ResultSet
  160 + */
  161 + function allianceColonelActivityProduct(array $params);
  162 +
  163 + /**
  164 + * 专属团长活动商品审核接口
  165 + * @link https://op.jinritemai.com/docs/api-docs/61/971
  166 + * @param array $params
  167 + * @return ResultSet
  168 + */
  169 + function allianceColonelActivityProductAudit(array $params);
  170 +
  171 + /**
  172 + * 查询团长活动特殊申请
  173 + * @link https://op.jinritemai.com/docs/api-docs/61/1552
  174 + * @param array $params
  175 + * @return ResultSet
  176 + */
  177 + function buyinColonel/specialApplyList(array $params);
  178 +
  179 + /**
  180 + * 专属团长活动商品延时接口
  181 + * @link https://op.jinritemai.com/docs/api-docs/61/1881
  182 + * @param array $params
  183 + * @return ResultSet
  184 + */
  185 + function allianceColonelActivityProductExtension(array $params);
  186 +
  187 + /**
  188 + * 团长活动特殊申请审核
  189 + * @link https://op.jinritemai.com/docs/api-docs/61/1553
  190 + * @param array $params
  191 + * @return ResultSet
  192 + */
  193 + function buyinColonel/specialApplyDeal(array $params);
  194 +
  195 + /**
  196 + * 团长可参与的二级团长活动查询接口
  197 + * @link https://op.jinritemai.com/docs/api-docs/61/1675
  198 + * @param array $params
  199 + * @return ResultSet
  200 + */
  201 + function buyinOriginColonelEnrollableActivityList(array $params);
  202 +
  203 + /**
  204 + * 获取团长活动详情
  205 + * @link https://op.jinritemai.com/docs/api-docs/61/1670
  206 + * @param array $params
  207 + * @return ResultSet
  208 + */
  209 + function buyinColonelActivityDetail(array $params);
  210 +
  211 + /**
  212 + * 团长获取可提报二级团长活动的商品列表
  213 + * @link https://op.jinritemai.com/docs/api-docs/61/1677
  214 + * @param array $params
  215 + * @return ResultSet
  216 + */
  217 + function buyinOriginColonelUnappliedProductList(array $params);
  218 +
  219 + /**
  220 + * 团长报名二级团长活动
  221 + * @link https://op.jinritemai.com/docs/api-docs/61/1672
  222 + * @param array $params
  223 + * @return ResultSet
  224 + */
  225 + function buyinOriginColonelApplyActivities(array $params);
  226 +
  227 + /**
  228 + * 一级团长查询提报活动商品
  229 + * @link https://op.jinritemai.com/docs/api-docs/61/1926
  230 + * @param array $params
  231 + * @return ResultSet
  232 + */
  233 + function buyinActivityProductList(array $params);
  234 +
  235 + /**
  236 + * 一级团长取消活动提报申请接口
  237 + * @link https://op.jinritemai.com/docs/api-docs/61/1927
  238 + * @param array $params
  239 + * @return ResultSet
  240 + */
  241 + function buyinActivityProductCancel(array $params);
  242 +
  243 + /**
  244 + * 检索精选联盟商品
  245 + * @link https://op.jinritemai.com/docs/api-docs/61/924
  246 + * @param array $params
  247 + * @return ResultSet
  248 + */
  249 + function allianceMaterialsProductsSearch(array $params);
  250 +
  251 + /**
  252 + * 商品推广 普通计划查询
  253 + * @link https://op.jinritemai.com/docs/api-docs/61/349
  254 + * @param array $params
  255 + * @return ResultSet
  256 + */
  257 + function buyinSimplePlanList(array $params);
  258 +
  259 + /**
  260 + * 批量查询推广商品详情
  261 + * @link https://op.jinritemai.com/docs/api-docs/61/1356
  262 + * @param array $params
  263 + * @return ResultSet
  264 + */
  265 + function allianceMaterialsProductsDetails(array $params);
  266 +
  267 + /**
  268 + * 查询商品 SKU
  269 + * @link https://op.jinritemai.com/docs/api-docs/61/1626
  270 + * @param array $params
  271 + * @return ResultSet
  272 + */
  273 + function buyinProductSkus(array $params);
  274 +
  275 + /**
  276 + * 类目查询
  277 + * @link https://op.jinritemai.com/docs/api-docs/61/637
  278 + * @param array $params
  279 + * @return ResultSet
  280 + */
  281 + function allianceMaterialsProductCategory(array $params);
  282 +
  283 + /**
  284 + * 商品状态查询
  285 + * @link https://op.jinritemai.com/docs/api-docs/61/1497
  286 + * @param array $params
  287 + * @return ResultSet
  288 + */
  289 + function buyinMaterialsProductStatus(array $params);
  290 +
  291 + /**
  292 + * 检索精选联盟商品,需达人授权
  293 + * @link https://op.jinritemai.com/docs/api-docs/61/1725
  294 + * @param array $params
  295 + * @return ResultSet
  296 + */
  297 + function buyinKolMaterialsProductsSearch(array $params);
  298 +
  299 + /**
  300 + * 查询达人视角商品详情
  301 + * @link https://op.jinritemai.com/docs/api-docs/61/1589
  302 + * @param array $params
  303 + * @return ResultSet
  304 + */
  305 + function buyinKolMaterialsProductsDetails(array $params);
  306 +
  307 + /**
  308 + * 【即将下线】查询机构联盟订单
  309 + * @link https://op.jinritemai.com/docs/api-docs/61/1398
  310 + * @param array $params
  311 + * @return ResultSet
  312 + */
  313 + function buyinQueryInstituteOrders(array $params);
  314 +
  315 + /**
  316 + * 查询MCN机构订单
  317 + * @link https://op.jinritemai.com/docs/api-docs/61/1602
  318 + * @param array $params
  319 + * @return ResultSet
  320 + */
  321 + function buyinInstituteOrderMCN(array $params);
  322 +
  323 + /**
  324 + * 机构查询团长订单
  325 + * @link https://op.jinritemai.com/docs/api-docs/61/1603
  326 + * @param array $params
  327 + * @return ResultSet
  328 + */
  329 + function buyinInstituteOrderColonel(array $params);
  330 +
  331 + /**
  332 + * 商品选品来源转链
  333 + * @link https://op.jinritemai.com/docs/api-docs/61/1454
  334 + * @param array $params
  335 + * @return ResultSet
  336 + */
  337 + function buyinInstPickSourceConvert(array $params);
  338 +
  339 + /**
  340 + * 机构选品GMV查询接口
  341 + * @link https://op.jinritemai.com/docs/api-docs/61/1652
  342 + * @param array $params
  343 + * @return ResultSet
  344 + */
  345 + function buyinInstGmv(array $params);
  346 +
  347 + /**
  348 + * 机构选品GMV明细查询接口
  349 + * @link https://op.jinritemai.com/docs/api-docs/61/1653
  350 + * @param array $params
  351 + * @return ResultSet
  352 + */
  353 + function buyinInstGmvDetail(array $params);
  354 +
  355 + /**
  356 + * 达人PID创建
  357 + * @link https://op.jinritemai.com/docs/api-docs/61/1460
  358 + * @param array $params
  359 + * @return ResultSet
  360 + */
  361 + function buyinKolPidCreate(array $params);
  362 +
  363 + /**
  364 + * 达人PID查询接口
  365 + * @link https://op.jinritemai.com/docs/api-docs/61/1461
  366 + * @param array $params
  367 + * @return ResultSet
  368 + */
  369 + function buyinKolPidList(array $params);
  370 +
  371 + /**
  372 + * 达人PID 编辑
  373 + * @link https://op.jinritemai.com/docs/api-docs/61/1462
  374 + * @param array $params
  375 + * @return ResultSet
  376 + */
  377 + function buyinKolPidEdit(array $params);
  378 +
  379 + /**
  380 + * 达人PID删除
  381 + * @link https://op.jinritemai.com/docs/api-docs/61/1463
  382 + * @param array $params
  383 + * @return ResultSet
  384 + */
  385 + function buyinKolPidDel(array $params);
  386 +
  387 + /**
  388 + * 商品口令转商品解析
  389 + * @link https://op.jinritemai.com/docs/api-docs/61/1726
  390 + * @param array $params
  391 + * @return ResultSet
  392 + */
  393 + function buyinShareCommandParse(array $params);
  394 +
  395 + /**
  396 + * 达人商品分销转链
  397 + * @link https://op.jinritemai.com/docs/api-docs/61/1464
  398 + * @param array $params
  399 + * @return ResultSet
  400 + */
  401 + function buyinKolProductShare(array $params);
  402 +
  403 + /**
  404 + * 机构PID创建
  405 + * @link https://op.jinritemai.com/docs/api-docs/61/1273
  406 + * @param array $params
  407 + * @return ResultSet
  408 + */
  409 + function buyinInstitutePidCreate(array $params);
  410 +
  411 + /**
  412 + * 机构PID查询接口
  413 + * @link https://op.jinritemai.com/docs/api-docs/61/1269
  414 + * @param array $params
  415 + * @return ResultSet
  416 + */
  417 + function buyinInstitutePidList(array $params);
  418 +
  419 + /**
  420 + * 机构PID 编辑
  421 + * @link https://op.jinritemai.com/docs/api-docs/61/1270
  422 + * @param array $params
  423 + * @return ResultSet
  424 + */
  425 + function buyinInstitutePidEdit(array $params);
  426 +
  427 + /**
  428 + * 机构PID删除
  429 + * @link https://op.jinritemai.com/docs/api-docs/61/1271
  430 + * @param array $params
  431 + * @return ResultSet
  432 + */
  433 + function buyinInstitutePidDel(array $params);
  434 +
  435 + /**
  436 + * 直播间分销物料查询
  437 + * @link https://op.jinritemai.com/docs/api-docs/61/1396
  438 + * @param array $params
  439 + * @return ResultSet
  440 + */
  441 + function buyinLiveShareMaterial(array $params);
  442 +
  443 + /**
  444 + * 分销直播间商品列表
  445 + * @link https://op.jinritemai.com/docs/api-docs/61/1770
  446 + * @param array $params
  447 + * @return ResultSet
  448 + */
  449 + function buyinDistributionLiveProductList(array $params);
  450 +
  451 + /**
  452 + * 机构获取达人直播间分享链接
  453 + * @link https://op.jinritemai.com/docs/api-docs/61/1297
  454 + * @param array $params
  455 + * @return ResultSet
  456 + */
  457 + function buyinInstituteLiveShare(array $params);
  458 +
  459 + /**
  460 + * 查询抖客直播间分销订单
  461 + * @link https://op.jinritemai.com/docs/api-docs/61/1296
  462 + * @param array $params
  463 + * @return ResultSet
  464 + */
  465 + function buyinInstituteOrderAds(array $params);
  466 +
  467 + /**
  468 + * 查询达人的直播间分销、商品分销、活动页分销订单
  469 + * @link https://op.jinritemai.com/docs/api-docs/61/1459
  470 + * @param array $params
  471 + * @return ResultSet
  472 + */
  473 + function buyinKolOrderAds(array $params);
  474 +
  475 + /**
  476 + * 店铺会员绑定渠道关系创建
  477 + * @link https://op.jinritemai.com/docs/api-docs/61/1493
  478 + * @param array $params
  479 + * @return ResultSet
  480 + */
  481 + function buyinShopPidMemberCreate(array $params);
  482 +
  483 + /**
  484 + * 获取达人直播间分享链接
  485 + * @link https://op.jinritemai.com/docs/api-docs/61/1724
  486 + * @param array $params
  487 + * @return ResultSet
  488 + */
  489 + function buyinKolLiveShare(array $params);
  490 +
  491 + /**
  492 + * 团长托管商品审核
  493 + * @link https://op.jinritemai.com/docs/api-docs/61/2138
  494 + * @param array $params
  495 + * @return ResultSet
  496 + */
  497 + function buyinMHandleTrusteeshipApply(array $params);
  498 +
  499 + /**
  500 + * 团长托管商品查询
  501 + * @link https://op.jinritemai.com/docs/api-docs/61/2137
  502 + * @param array $params
  503 + * @return ResultSet
  504 + */
  505 + function buyinColonel/trusteeshipList(array $params);
  506 +
  507 + /**
  508 + * 选品订单明细查询接口
  509 + * @link https://op.jinritemai.com/docs/api-docs/61/2008
  510 + * @param array $params
  511 + * @return ResultSet
  512 + */
  513 + function buyinInstituteOrderPick(array $params);
  514 +
  515 + /**
  516 + * 机构直播预告转链
  517 + * @link https://op.jinritemai.com/docs/api-docs/61/2007
  518 + * @param array $params
  519 + * @return ResultSet
  520 + */
  521 + function buyinInstituteLivePreviewShare(array $params);
  522 +
  523 + /**
  524 + * 达人直播预告转链
  525 + * @link https://op.jinritemai.com/docs/api-docs/61/2006
  526 + * @param array $params
  527 + * @return ResultSet
  528 + */
  529 + function buyinKolLivePreviewShare(array $params);
  530 +
  531 + /**
  532 + * 活动页转链接口
  533 + * @link https://op.jinritemai.com/docs/api-docs/61/2003
  534 + * @param array $params
  535 + * @return ResultSet
  536 + */
  537 + function buyinActivityShareConvert(array $params);
  538 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Coupons;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Coupons extends Passage implements CouponsInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function couponsCancelVerify(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('coupons.cancelVerify')
  16 + ->path('/coupons/cancelVerify')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function couponsAbandon(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('coupons.abandon')
  27 + ->path('/coupons/abandon')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function couponsSyncV2(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('coupons.syncV2')
  38 + ->path('/coupons/syncV2')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + public function couponsVerifyV2(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('coupons.verifyV2')
  49 + ->path('/coupons/verifyV2')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + public function couponsCertVerifyUpdate(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('coupons.certVerifyUpdate')
  60 + ->path('/coupons/certVerifyUpdate')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + public function orderSettle(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('order.settle')
  71 + ->path('/coupons/list')
  72 + ->params($params);
  73 + }
  74 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Coupons;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 卡券API
  9 + */
  10 +interface CouponsInterface
  11 +{
  12 + /**
  13 + * 卡券取消核销接口
  14 + * @link https://op.jinritemai.com/docs/api-docs/52/668
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function couponsCancelVerify(array $params);
  19 +
  20 + /**
  21 + * 卡券废弃接口
  22 + * @link https://op.jinritemai.com/docs/api-docs/52/669
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function couponsAbandon(array $params);
  27 +
  28 + /**
  29 + * 卡券同步
  30 + * @link https://op.jinritemai.com/docs/api-docs/52/712
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function couponsSyncV2(array $params);
  35 +
  36 + /**
  37 + * 卡券核销接口V2版本
  38 + * @link https://op.jinritemai.com/docs/api-docs/52/797
  39 + * @param array $params
  40 + * @return ResultSet
  41 + */
  42 + public function couponsVerifyV2(array $params);
  43 +
  44 + /**
  45 + * 卡券核销次数更新
  46 + * @link https://op.jinritemai.com/docs/api-docs/52/900
  47 + * @param array $params
  48 + * @return ResultSet
  49 + */
  50 + public function couponsCertVerifyUpdate(array $params);
  51 +
  52 + /**
  53 + * 三方卡券列表查询
  54 + * @link https://op.jinritemai.com/docs/api-docs/52/369
  55 + * @param array $params
  56 + * @return ResultSet
  57 + */
  58 + public function orderSettle(array $params);
  59 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Crossborder;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Crossborder extends Passage implements CrossborderInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function dutyFreeOrderList(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('dutyFree.orderList')
  16 + ->path('/dutyFree/orderList')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function crossborderStockTaking(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('crossborder.stockTaking')
  27 + ->path('/crossborder/stockTaking')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function crossborderStockTransform(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('crossborder.stockTransform')
  38 + ->path('/crossborder/stockTransform')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + public function crossborderOrderInterception(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('crossborder.OrderInterception')
  49 + ->path('/crossborder/OrderInterception')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + public function crossborderTakingLogisticsInfo(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('crossborder.takingLogisticsInfo')
  60 + ->path('/crossborder/takingLogisticsInfo')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + public function crossborderWarehouseInOutboundEvent(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('crossborder.warehouseInOutboundEvent')
  71 + ->path('/crossborder/warehouseInOutboundEvent')
  72 + ->params($params);
  73 + }
  74 +
  75 + /**
  76 + * @inheritDoc
  77 + */
  78 + public function crossBorderGetTradeOrderStatus(array $params)
  79 + {
  80 + $this->builder->method('POST')
  81 + ->service('crossBorder.getTradeOrderStatus')
  82 + ->path('/crossBorder/getTradeOrderStatus')
  83 + ->params($params);
  84 + }
  85 +
  86 + /**
  87 + * @inheritDoc
  88 + */
  89 + public function crossBorderCustomsTaxInfo(array $params)
  90 + {
  91 + $this->builder->method('POST')
  92 + ->service('crossBorder.customsTaxInfo')
  93 + ->path('/crossBorder/customsTaxInfo')
  94 + ->params($params);
  95 + }
  96 +
  97 + /**
  98 + * @inheritDoc
  99 + */
  100 + public function dutyFreeOrderConfirm(array $params)
  101 + {
  102 + $this->builder->method('POST')
  103 + ->service('dutyFree.orderConfirm')
  104 + ->path('/dutyFree/orderConfirm')
  105 + ->params($params);
  106 + }
  107 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Crossborder;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 跨境API
  9 + */
  10 +interface CrossborderInterface
  11 +{
  12 + /**
  13 + * 商家拉单
  14 + * @link https://op.jinritemai.com/docs/api-docs/53/703
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function dutyFreeOrderList(array $params);
  19 +
  20 + /**
  21 + * 库存盘点回告
  22 + * @link https://op.jinritemai.com/docs/api-docs/53/883
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function crossborderStockTaking(array $params);
  27 +
  28 + /**
  29 + * 库存类型变动回告
  30 + * @link https://op.jinritemai.com/docs/api-docs/53/918
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function crossborderStockTransform(array $params);
  35 +
  36 + /**
  37 + * 服务商锁单结果回告
  38 + * @link https://op.jinritemai.com/docs/api-docs/53/920
  39 + * @param array $params
  40 + * @return ResultSet
  41 + */
  42 + public function crossborderOrderInterception(array $params);
  43 +
  44 + /**
  45 + * 运单信息回告
  46 + * @link https://op.jinritemai.com/docs/api-docs/53/1293
  47 + * @param array $params
  48 + * @return ResultSet
  49 + */
  50 + public function crossborderTakingLogisticsInfo(array $params);
  51 +
  52 + /**
  53 + * 入库和提货出库回告
  54 + * @link https://op.jinritemai.com/docs/api-docs/53/1205
  55 + * @param array $params
  56 + * @return ResultSet
  57 + */
  58 + public function crossborderWarehouseInOutboundEvent(array $params);
  59 +
  60 + /**
  61 + * 获取交易订单状态
  62 + * @link https://op.jinritemai.com/docs/api-docs/53/1650
  63 + * @param array $params
  64 + * @return ResultSet
  65 + */
  66 + public function crossBorderGetTradeOrderStatus(array $params);
  67 +
  68 + /**
  69 + * 服务商回告海关税费
  70 + * @link https://op.jinritemai.com/docs/api-docs/53/1761
  71 + * @param array $params
  72 + * @return ResultSet
  73 + */
  74 + public function crossBorderCustomsTaxInfo(array $params);
  75 +
  76 + /**
  77 + * 商家接单
  78 + * @link https://op.jinritemai.com/docs/api-docs/53/1873
  79 + * @param array $params
  80 + * @return ResultSet
  81 + */
  82 + public function dutyFreeOrderConfirm(array $params);
  83 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Iop;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\Passage;
  6 +
  7 +class Iop extends Passage implements IopInterface
  8 +{
  9 + /**
  10 + * @inheritDoc
  11 + */
  12 + public function iopOrderList(array $params)
  13 + {
  14 + $this->builder->method('POST')
  15 + ->service('iop.orderList')
  16 + ->path('/iop/orderList')
  17 + ->params($params);
  18 + }
  19 +
  20 + /**
  21 + * @inheritDoc
  22 + */
  23 + public function iopWaybillGet(array $params)
  24 + {
  25 + $this->builder->method('POST')
  26 + ->service('iop.waybillGet')
  27 + ->path('/iop/waybillGet')
  28 + ->params($params);
  29 + }
  30 +
  31 + /**
  32 + * @inheritDoc
  33 + */
  34 + public function iopWaybillCancel(array $params)
  35 + {
  36 + $this->builder->method('POST')
  37 + ->service('iop.waybillCancel')
  38 + ->path('/iop/waybillCancel')
  39 + ->params($params);
  40 + }
  41 +
  42 + /**
  43 + * @inheritDoc
  44 + */
  45 + public function iopWaybillReturn(array $params)
  46 + {
  47 + $this->builder->method('POST')
  48 + ->service('iop.waybillReturn')
  49 + ->path('/iop/waybillReturn')
  50 + ->params($params);
  51 + }
  52 +
  53 + /**
  54 + * @inheritDoc
  55 + */
  56 + public function iopWaybillUpdate(array $params)
  57 + {
  58 + $this->builder->method('POST')
  59 + ->service('iop.waybillUpdate')
  60 + ->path('/iop/waybillUpdate')
  61 + ->params($params);
  62 + }
  63 +
  64 + /**
  65 + * @inheritDoc
  66 + */
  67 + public function iopOrderInfo(array $params)
  68 + {
  69 + $this->builder->method('POST')
  70 + ->service('iop.orderInfo')
  71 + ->path('/iop/orderInfo')
  72 + ->params($params);
  73 + }
  74 +
  75 + /**
  76 + * @inheritDoc
  77 + */
  78 + public function iopSellerDistribute(array $params)
  79 + {
  80 + $this->builder->method('POST')
  81 + ->service('iop.sellerDistribute')
  82 + ->path('/iop/sellerDistribute')
  83 + ->params($params);
  84 + }
  85 +
  86 + /**
  87 + * @inheritDoc
  88 + */
  89 + public function iopSellerOrderList(array $params)
  90 + {
  91 + $this->builder->method('POST')
  92 + ->service('iop.sellerOrderList')
  93 + ->path('/iop/sellerOrderList')
  94 + ->params($params);
  95 + }
  96 +
  97 + /**
  98 + * @inheritDoc
  99 + */
  100 + public function iopGetSellerList(array $params)
  101 + {
  102 + $this->builder->method('POST')
  103 + ->service('iop.getSellerList')
  104 + ->path('/iop/getSellerList')
  105 + ->params($params);
  106 + }
  107 +
  108 + /**
  109 + * @inheritDoc
  110 + */
  111 + public function iopRoleGet(array $params)
  112 + {
  113 + $this->builder->method('POST')
  114 + ->service('iop.roleGet')
  115 + ->path('/iop/roleGet')
  116 + ->params($params);
  117 + }
  118 +
  119 + /**
  120 + * @inheritDoc
  121 + */
  122 + public function iopSellerCancleDistribute(array $params)
  123 + {
  124 + $this->builder->method('POST')
  125 + ->service('iop.sellerCancleDistribute')
  126 + ->path('/iop/sellerCancleDistribute')
  127 + ->params($params);
  128 + }
  129 +
  130 + /**
  131 + * @inheritDoc
  132 + */
  133 + public function iopSellerSupplierList(array $params)
  134 + {
  135 + $this->builder->method('POST')
  136 + ->service('iop.sellerSupplierList')
  137 + ->path('/iop/sellerSupplierList')
  138 + ->params($params);
  139 + }
  140 +
  141 + /**
  142 + * @inheritDoc
  143 + */
  144 + public function iopSellerOrderInfo(array $params)
  145 + {
  146 + $this->builder->method('POST')
  147 + ->service('iop.sellerOrderInfo')
  148 + ->path('/iop/sellerOrderInfo')
  149 + ->params($params);
  150 + }
  151 +}
  1 +<?php
  2 +
  3 +namespace Lackoxygen\TiktokShop\Passage\Iop;
  4 +
  5 +use Lackoxygen\TiktokShop\Passage\ResultSet;
  6 +
  7 +/**
  8 + * @note 代发API
  9 + */
  10 +interface IopInterface
  11 +{
  12 + /**
  13 + * 【厂商】查询代打订单列表
  14 + * @link https://op.jinritemai.com/docs/api-docs/59/673
  15 + * @param array $params
  16 + * @return ResultSet
  17 + */
  18 + public function iopOrderList(array $params);
  19 +
  20 + /**
  21 + * 【厂商】电子面单取号
  22 + * @link https://op.jinritemai.com/docs/api-docs/59/674
  23 + * @param array $params
  24 + * @return ResultSet
  25 + */
  26 + public function iopWaybillGet(array $params);
  27 +
  28 + /**
  29 + * 【厂商】取消电子面单
  30 + * @link https://op.jinritemai.com/docs/api-docs/59/675
  31 + * @param array $params
  32 + * @return ResultSet
  33 + */
  34 + public function iopWaybillCancel(array $params);
  35 +
  36 + /**
  37 + * 【厂商】代发订单发货接口
  38 + * @link https://op.jinritemai.com/docs/api-docs/59/676
  39 + * @param array $params
  40 + * @return ResultSet
  41 + */
  42 + public function iopWaybillReturn(array $params);
  43 +
  44 + /**
  45 + * 【厂商】代发订单更新发货接口
  46 + * @link https://op.jinritemai.com/docs/api-docs/59/677
  47 + * @param array $params
  48 + * @return ResultSet
  49 + */
  50 + public function iopWaybillUpdate(array $params);
  51 +
  52 + /**
  53 + * 【厂商】订单详情
  54 + * @link https://op.jinritemai.com/docs/api-docs/59/678
  55 + * @param array $params
  56 + * @return ResultSet
  57 + */
  58 + public function iopOrderInfo(array $params);
  59 +
  60 + /**
  61 + * 【商家】分配代发订单
  62 + * @link https://op.jinritemai.com/docs/api-docs/59/958
  63 + * @param array $params
  64 + * @return ResultSet
  65 + */
  66 + public function iopSellerDistribute(array $params);
  67 +
  68 + /**
  69 + * 【商家】查看代发订单列表
  70 + * @link https://op.jinritemai.com/docs/api-docs/59/960
  71 + * @param array $params
  72 + * @return ResultSet
  73 + */
  74 + public function iopSellerOrderList(array $params);
  75 +
  76 + /**
  77 + * 【厂家】查询商家列表
  78 + * @link https://op.jinritemai.com/docs/api-docs/59/1752
  79 + * @param array $params
  80 + * @return ResultSet
  81 + */
  82 + public function iopGetSellerList(array $params);
  83 +
  84 + /**
  85 + * 【厂商】查询店铺身份
  86 + * @link https://op.jinritemai.com/docs/api-docs/59/1874
  87 + * @param array $params
  88 + * @return ResultSet
  89 + */
  90 + public function iopRoleGet(array $params);
  91 +
  92 + /**
  93 + * 【商家】取消分配代发订单
  94 + * @link https://op.jinritemai.com/docs/api-docs/59/1876
  95 + * @param array $params
  96 + * @return ResultSet
  97 + */
  98 + public function iopSellerCancleDistribute(array $params);
  99 +
  100 + /**
  101 + * 【商家】查询厂商管理列表
  102 + * @link https://op.jinritemai.com/docs/api-docs/59/1799
  103 + * @param array $params
  104 + * @return ResultSet
  105 + */
  106 + public function iopSellerSupplierList(array $params);
  107 +
  108 + /**
  109 + * 【商家】查看代发订单详情
  110 + * @link https://op.jinritemai.com/docs/api-docs/59/1875
  111 + * @param array $params
  112 + * @return ResultSet
  113 + */
  114 + public function iopSellerOrderInfo(array $params);
  115 +}
@@ -9,67 +9,66 @@ class Logistics extends Passage implements LogisticsInterface @@ -9,67 +9,66 @@ class Logistics extends Passage implements LogisticsInterface
9 /** 9 /**
10 * @inheritDoc 10 * @inheritDoc
11 */ 11 */
12 - public function appendSubOrder(array $params) 12 + public function logisticsAppendSubOrder(array $params)
13 { 13 {
14 $this->builder->method('POST') 14 $this->builder->method('POST')
15 ->service('logistics.appendSubOrder') 15 ->service('logistics.appendSubOrder')
16 - ->path('logistics/appendSubOrder') 16 + ->path('/logistics/appendSubOrder')
17 ->params($params); 17 ->params($params);
18 } 18 }
19 19
20 /** 20 /**
21 * @inheritDoc 21 * @inheritDoc
22 */ 22 */
23 - public function logisticsCompanyList(array $params) 23 + public function orderLogisticsCompanyList(array $params)
24 { 24 {
25 $this->builder->method('POST') 25 $this->builder->method('POST')
26 ->service('order.logisticsCompanyList') 26 ->service('order.logisticsCompanyList')
27 - ->path('order/logisticsCompanyList') 27 + ->path('/order/logisticsCompanyList')
28 ->params($params); 28 ->params($params);
29 } 29 }
30 30
31 -  
32 /** 31 /**
33 * @inheritDoc 32 * @inheritDoc
34 */ 33 */
35 - public function add(array $params) 34 + public function orderLogisticsAdd(array $params)
36 { 35 {
37 $this->builder->method('POST') 36 $this->builder->method('POST')
38 ->service('order.logisticsAdd') 37 ->service('order.logisticsAdd')
39 - ->path('order/logisticsAdd') 38 + ->path('/order/logisticsAdd')
40 ->params($params); 39 ->params($params);
41 } 40 }
42 41
43 /** 42 /**
44 * @inheritDoc 43 * @inheritDoc
45 */ 44 */
46 - public function edit(array $params) 45 + public function orderLogisticsEdit(array $params)
47 { 46 {
48 $this->builder->method('POST') 47 $this->builder->method('POST')
49 ->service('order.logisticsEdit') 48 ->service('order.logisticsEdit')
50 - ->path('order/logisticsEdit') 49 + ->path('/order/logisticsEdit')
51 ->params($params); 50 ->params($params);
52 } 51 }
53 52
54 /** 53 /**
55 * @inheritDoc 54 * @inheritDoc
56 */ 55 */
57 - public function logisticsEditByPack(array $params) 56 + public function orderLogisticsEditByPack(array $params)
58 { 57 {
59 $this->builder->method('POST') 58 $this->builder->method('POST')
60 ->service('order.logisticsEditByPack') 59 ->service('order.logisticsEditByPack')
61 - ->path('order/logisticsEditByPack') 60 + ->path('/order/logisticsEditByPack')
62 ->params($params); 61 ->params($params);
63 } 62 }
64 63
65 /** 64 /**
66 * @inheritDoc 65 * @inheritDoc
67 */ 66 */
68 - public function logisticsAddMultiPack(array $params) 67 + public function orderLogisticsAddMultiPack(array $params)
69 { 68 {
70 $this->builder->method('POST') 69 $this->builder->method('POST')
71 ->service('order.logisticsAddMultiPack') 70 ->service('order.logisticsAddMultiPack')
72 - ->path('order/logisticsAddMultiPack') 71 + ->path('/order/logisticsAddMultiPack')
73 ->params($params); 72 ->params($params);
74 } 73 }
75 74
@@ -80,140 +79,403 @@ class Logistics extends Passage implements LogisticsInterface @@ -80,140 +79,403 @@ class Logistics extends Passage implements LogisticsInterface
80 { 79 {
81 $this->builder->method('POST') 80 $this->builder->method('POST')
82 ->service('freightTemplate.list') 81 ->service('freightTemplate.list')
83 - ->path('freightTemplate/list') 82 + ->path('/freightTemplate/list')
84 ->params($params); 83 ->params($params);
85 } 84 }
86 85
87 /** 86 /**
88 * @inheritDoc 87 * @inheritDoc
89 */ 88 */
90 - public function logisticsAddSinglePack(array $params) 89 + public function orderLogisticsAddSinglePack(array $params)
91 { 90 {
92 $this->builder->method('POST') 91 $this->builder->method('POST')
93 ->service('order.logisticsAddSinglePack') 92 ->service('order.logisticsAddSinglePack')
94 - ->path('order/logisticsAddSinglePack') 93 + ->path('/order/logisticsAddSinglePack')
95 ->params($params); 94 ->params($params);
96 } 95 }
97 96
98 /** 97 /**
99 * @inheritDoc 98 * @inheritDoc
100 */ 99 */
101 - public function updateOrder(array $params) 100 + public function logisticsUpdateOrder(array $params)
102 { 101 {
103 $this->builder->method('POST') 102 $this->builder->method('POST')
104 ->service('logistics.updateOrder') 103 ->service('logistics.updateOrder')
105 - ->path('logistics/updateOrder') 104 + ->path('/logistics/updateOrder')
106 ->params($params); 105 ->params($params);
107 } 106 }
108 107
109 /** 108 /**
110 * @inheritDoc 109 * @inheritDoc
111 */ 110 */
112 - public function cancelOrder(array $params) 111 + public function logisticsCancelOrder(array $params)
113 { 112 {
114 $this->builder->method('POST') 113 $this->builder->method('POST')
115 ->service('logistics.cancelOrder') 114 ->service('logistics.cancelOrder')
116 - ->path('logistics/cancelOrder') 115 + ->path('/logistics/cancelOrder')
117 ->params($params); 116 ->params($params);
118 } 117 }
119 118
120 /** 119 /**
121 * @inheritDoc 120 * @inheritDoc
122 */ 121 */
123 - public function orderOperate(array $params) 122 + public function crossBorderOrderOperate(array $params)
124 { 123 {
125 $this->builder->method('POST') 124 $this->builder->method('POST')
126 ->service('crossBorder.orderOperate') 125 ->service('crossBorder.orderOperate')
127 - ->path('crossBorder/orderOperate') 126 + ->path('/crossBorder/orderOperate')
128 ->params($params); 127 ->params($params);
129 } 128 }
130 129
131 /** 130 /**
132 * @inheritDoc 131 * @inheritDoc
133 */ 132 */
134 - public function orderCustomClearance(array $params) 133 + public function crossborderOrderCustomClearance(array $params)
135 { 134 {
136 $this->builder->method('POST') 135 $this->builder->method('POST')
137 ->service('crossborder.orderCustomClearance') 136 ->service('crossborder.orderCustomClearance')
138 - ->path('crossborder/orderCustomClearance') 137 + ->path('/crossborder/orderCustomClearance')
139 ->params($params); 138 ->params($params);
140 } 139 }
141 140
142 -  
143 /** 141 /**
144 * @inheritDoc 142 * @inheritDoc
145 */ 143 */
146 - public function orderLogisticsTrace(array $params) 144 + public function crossborderOrderLogisticsTrace(array $params)
147 { 145 {
148 $this->builder->method('POST') 146 $this->builder->method('POST')
149 ->service('crossborder.orderLogisticsTrace') 147 ->service('crossborder.orderLogisticsTrace')
150 - ->path('crossborder/orderLogisticsTrace') 148 + ->path('/crossborder/orderLogisticsTrace')
151 ->params($params); 149 ->params($params);
152 } 150 }
153 151
154 /** 152 /**
155 * @inheritDoc 153 * @inheritDoc
156 */ 154 */
157 - public function customTemplateList(array $params) 155 + public function logisticsCustomTemplateList(array $params)
158 { 156 {
159 $this->builder->method('POST') 157 $this->builder->method('POST')
160 ->service('logistics.customTemplateList') 158 ->service('logistics.customTemplateList')
161 - ->path('logistics/customTemplateList') 159 + ->path('/logistics/customTemplateList')
162 ->params($params); 160 ->params($params);
163 } 161 }
164 162
165 /** 163 /**
166 * @inheritDoc 164 * @inheritDoc
167 */ 165 */
168 - public function getOutRange(array $params) 166 + public function logisticsGetOutRange(array $params)
169 { 167 {
170 $this->builder->method('POST') 168 $this->builder->method('POST')
171 ->service('logistics.getOutRange') 169 ->service('logistics.getOutRange')
172 - ->path('logistics/getOutRange') 170 + ->path('/logistics/getOutRange')
173 ->params($params); 171 ->params($params);
174 } 172 }
175 173
176 /** 174 /**
177 * @inheritDoc 175 * @inheritDoc
178 */ 176 */
179 - public function templateList(array $params) 177 + public function crossBorderOrderConfirm(array $params)
  178 + {
  179 + $this->builder->method('POST')
  180 + ->service('crossBorder.orderConfirm')
  181 + ->path('/crossBorder/orderConfirm')
  182 + ->params($params);
  183 + }
  184 +
  185 + /**
  186 + * @inheritDoc
  187 + */
  188 + public function logisticsTemplateList(array $params)
180 { 189 {
181 $this->builder->method('POST') 190 $this->builder->method('POST')
182 ->service('logistics.templateList') 191 ->service('logistics.templateList')
183 - ->path('logistics/templateList') 192 + ->path('/logistics/templateList')
184 ->params($params); 193 ->params($params);
185 } 194 }
186 195
187 /** 196 /**
188 * @inheritDoc 197 * @inheritDoc
189 */ 198 */
190 - public function waybillApply(array $params) 199 + public function logisticsWaybillApply(array $params)
191 { 200 {
192 $this->builder->method('POST') 201 $this->builder->method('POST')
193 ->service('logistics.waybillApply') 202 ->service('logistics.waybillApply')
194 - ->path('logistics/waybillApply') 203 + ->path('/logistics/waybillApply')
195 ->params($params); 204 ->params($params);
196 } 205 }
197 206
198 /** 207 /**
199 * @inheritDoc 208 * @inheritDoc
200 */ 209 */
201 - public function deliveryNotice(array $params) 210 + public function logisticsDeliveryNotice(array $params)
202 { 211 {
203 $this->builder->method('POST') 212 $this->builder->method('POST')
204 ->service('logistics.deliveryNotice') 213 ->service('logistics.deliveryNotice')
205 - ->path('logistics/deliveryNotice') 214 + ->path('/logistics/deliveryNotice')
206 ->params($params); 215 ->params($params);
207 } 216 }
208 217
209 /** 218 /**
210 * @inheritDoc 219 * @inheritDoc
211 */ 220 */
212 - public function isByteDancePackage(array $params) 221 + public function powerIsByteDancePackage(array $params)
213 { 222 {
214 $this->builder->method('POST') 223 $this->builder->method('POST')
215 ->service('power.isByteDancePackage') 224 ->service('power.isByteDancePackage')
216 - ->path('power/isByteDancePackage') 225 + ->path('/power/isByteDancePackage')
  226 + ->params($params);
  227 + }
  228 +
  229 + /**
  230 + * @inheritDoc
  231 + */
  232 + public function powerPushFirstSortCode(array $params)
  233 + {
  234 + $this->builder->method('POST')
  235 + ->service('power.pushFirstSortCode')
  236 + ->path('/power/pushFirstSortCode')
  237 + ->params($params);
  238 + }
  239 +
  240 + /**
  241 + * @inheritDoc
  242 + */
  243 + public function powerPushCustomSortCode(array $params)
  244 + {
  245 + $this->builder->method('POST')
  246 + ->service('power.pushCustomSortCode')
  247 + ->path('/power/pushCustomSortCode')
  248 + ->params($params);
  249 + }
  250 +
  251 + /**
  252 + * @inheritDoc
  253 + */
  254 + public function powerPushThirdSortCode(array $params)
  255 + {
  256 + $this->builder->method('POST')
  257 + ->service('power.pushThirdSortCode')
  258 + ->path('/power/pushThirdSortCode')
  259 + ->params($params);
  260 + }
  261 +
  262 + /**
  263 + * @inheritDoc
  264 + */
  265 + public function logisticsNewCreateOrder(array $params)
  266 + {
  267 + $this->builder->method('POST')
  268 + ->service('logistics.newCreateOrder')
  269 + ->path('/logistics/newCreateOrder')
  270 + ->params($params);
  271 + }
  272 +
  273 + /**
  274 + * @inheritDoc
  275 + */
  276 + public function logisticsQueryPackageRoute(array $params)
  277 + {
  278 + $this->builder->method('POST')
  279 + ->service('logistics.queryPackageRoute')
  280 + ->path('/logistics/queryPackageRoute')
  281 + ->params($params);
  282 + }
  283 +
  284 + /**
  285 + * @inheritDoc
  286 + */
  287 + public function logisticsRegisterPackageRoute(array $params)
  288 + {
  289 + $this->builder->method('POST')
  290 + ->service('logistics.registerPackageRoute')
  291 + ->path('/logistics/registerPackageRoute')
  292 + ->params($params);
  293 + }
  294 +
  295 + /**
  296 + * @inheritDoc
  297 + */
  298 + public function powerUpdateCollectTime(array $params)
  299 + {
  300 + $this->builder->method('POST')
  301 + ->service('power.updateCollectTime')
  302 + ->path('/power/updateCollectTime')
  303 + ->params($params);
  304 + }
  305 +
  306 + /**
  307 + * @inheritDoc
  308 + */
  309 + public function freightTemplateUpdate(array $params)
  310 + {
  311 + $this->builder->method('POST')
  312 + ->service('freightTemplate.update')
  313 + ->path('/freightTemplate/update')
  314 + ->params($params);
  315 + }
  316 +
  317 + /**
  318 + * @inheritDoc
  319 + */
  320 + public function freightTemplateCreate(array $params)
  321 + {
  322 + $this->builder->method('POST')
  323 + ->service('freightTemplate.create')
  324 + ->path('/freightTemplate/create')
  325 + ->params($params);
  326 + }
  327 +
  328 + /**
  329 + * @inheritDoc
  330 + */
  331 + public function powerPickupCodeCallback(array $params)
  332 + {
  333 + $this->builder->method('POST')
  334 + ->service('power.pickupCodeCallback')
  335 + ->path('/power/pickupCodeCallback')
  336 + ->params($params);
  337 + }
  338 +
  339 + /**
  340 + * @inheritDoc
  341 + */
  342 + public function logisticsGetDesignTemplateList(array $params)
  343 + {
  344 + $this->builder->method('POST')
  345 + ->service('logistics.getDesignTemplateList')
  346 + ->path('/logistics/getDesignTemplateList')
  347 + ->params($params);
  348 + }
  349 +
  350 + /**
  351 + * @inheritDoc
  352 + */
  353 + public function powerVirtualServicePushCallRecord(array $params)
  354 + {
  355 + $this->builder->method('POST')
  356 + ->service('power.virtualServicePushCallRecord')
  357 + ->path('/power/virtualServicePushCallRecord')
  358 + ->params($params);
  359 + }
  360 +
  361 + /**
  362 + * @inheritDoc
  363 + */
  364 + public function logisticsGetCustomTemplateList(array $params)
  365 + {
  366 + $this->builder->method('POST')
  367 + ->service('logistics.getCustomTemplateList')
  368 + ->path('/logistics/getCustomTemplateList')
  369 + ->params($params);
  370 + }
  371 +
  372 + /**
  373 + * @inheritDoc
  374 + */
  375 + public function logisticsTrackNoRouteDetail(array $params)
  376 + {
  377 + $this->builder->method('POST')
  378 + ->service('logistics.trackNoRouteDetail')
  379 + ->path('/logistics/trackNoRouteDetail')
  380 + ->params($params);
  381 + }
  382 +
  383 + /**
  384 + * @inheritDoc
  385 + */
  386 + public function dutyFreeOrderOperate(array $params)
  387 + {
  388 + $this->builder->method('POST')
  389 + ->service('dutyFree.orderOperate')
  390 + ->path('/dutyFree/orderOperate')
  391 + ->params($params);
  392 + }
  393 +
  394 + /**
  395 + * @inheritDoc
  396 + */
  397 + public function crossBorderOrderList(array $params)
  398 + {
  399 + $this->builder->method('POST')
  400 + ->service('crossBorder.orderList')
  401 + ->path('/crossBorder/orderList')
  402 + ->params($params);
  403 + }
  404 +
  405 + /**
  406 + * @inheritDoc
  407 + */
  408 + public function logisticsListShopNetsite(array $params)
  409 + {
  410 + $this->builder->method('POST')
  411 + ->service('logistics.listShopNetsite')
  412 + ->path('/logistics/listShopNetsite')
  413 + ->params($params);
  414 + }
  415 +
  416 + /**
  417 + * @inheritDoc
  418 + */
  419 + public function addressGetProvince(array $params)
  420 + {
  421 + $this->builder->method('POST')
  422 + ->service('address.getProvince')
  423 + ->path('/address/getProvince')
  424 + ->params($params);
  425 + }
  426 +
  427 + /**
  428 + * @inheritDoc
  429 + */
  430 + public function addressGetAreasByProvince(array $params)
  431 + {
  432 + $this->builder->method('POST')
  433 + ->service('address.getAreasByProvince')
  434 + ->path('/address/getAreasByProvince')
  435 + ->params($params);
  436 + }
  437 +
  438 + /**
  439 + * @inheritDoc
  440 + */
  441 + public function freightTemplateDetail(array $params)
  442 + {
  443 + $this->builder->method('POST')
  444 + ->service('freightTemplate.detail')
  445 + ->path('/freightTemplate/detail')
  446 + ->params($params);
  447 + }
  448 +
  449 + /**
  450 + * @inheritDoc
  451 + */
  452 + public function crossBorderReceiveReceiptOfCustomsWayBill(array $params)
  453 + {
  454 + $this->builder->method('POST')
  455 + ->service('crossBorder.receiveReceiptOfCustomsWayBill')
  456 + ->path('/crossBorder/receiveReceiptOfCustomsWayBill')
  457 + ->params($params);
  458 + }
  459 +
  460 + /**
  461 + * @inheritDoc
  462 + */
  463 + public function logisticsUpdateTerminalOrder(array $params)
  464 + {
  465 + $this->builder->method('POST')
  466 + ->service('logistics.updateTerminalOrder')
  467 + ->path('/logistics/updateTerminalOrder')
  468 + ->params($params);
  469 + }
  470 +
  471 + /**
  472 + * @inheritDoc
  473 + */
  474 + public function powerHandleVirtualTelConnect(array $params)
  475 + {
  476 + $this->builder->method('POST')
  477 + ->service('power.HandleVirtualTelConnect')
  478 + ->path('/power/HandleVirtualTelConnect')
217 ->params($params); 479 ->params($params);
218 } 480 }
219 } 481 }