| Total Complexity | 3 | 
| Total Lines | 39 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 8 | class Brand extends BaseRequest | ||
| 9 | { | ||
| 10 | /** | ||
| 11 | * 根据类目遍历品牌. | ||
| 12 | * | ||
| 13 | * @param array $params | ||
| 14 | * @return array | ||
| 15 | * @throws InvalidArgumentException | ||
| 16 | * @throws RequestException | ||
| 17 | */ | ||
| 18 | public function list(array $params): array | ||
| 21 | } | ||
| 22 | |||
| 23 | /** | ||
| 24 | * 通过前缀匹配召回品牌信息. | ||
| 25 | * | ||
| 26 | * @param array $params | ||
| 27 | * @return array | ||
| 28 | * @throws InvalidArgumentException | ||
| 29 | * @throws RequestException | ||
| 30 | */ | ||
| 31 | public function getSug(array $params): array | ||
| 32 |     { | ||
| 33 |         return $this->httpPost('brand/getSug', $params); | ||
| 34 | } | ||
| 35 | |||
| 36 | /** | ||
| 37 | * 兼容老品牌id转为新品牌id. | ||
| 38 | * | ||
| 39 | * @param array $params | ||
| 40 | * @return array | ||
| 41 | * @throws InvalidArgumentException | ||
| 42 | * @throws RequestException | ||
| 43 | */ | ||
| 44 | public function convert(array $params): array | ||
| 47 | } | ||
| 48 | } | ||
| 49 |