| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace app\extra\dyLife\data;
- use app\extra\dyLife\BasicLife;
- use yzh52521\EasyHttp\Http;
- class BaseData extends BasicLife
- {
- /**
- * 获取来客绑定的所有门店
- * 一页最多50条
- */
- public function getStoreData(string $account,int $page = 1,int $size = 50): array
- {
- $data = [
- "account_id" => $account,
- "page" => $page,
- "size" => $size
- ];
- return $this->curlGetApi("goodlife/v1/shop/poi/query/",$data);
- }
- /**
- * 获取来客绑定的所有分类
- */
- public function getStoreCategoryData(string $account): array
- {
- $data = [
- "account_id" => $account,
- "query_category_type" => 1
- ];
- return $this->curlGetApi("goodlife/v1/goods/category/get/",$data);
- }
- }
|