2024-06-03 16:11:14 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace app\api\controller\product;
|
|
|
|
use app\api\controller\BaseApiController;
|
|
|
|
use app\api\lists\product\ProductLists;
|
2024-06-14 15:53:47 +08:00
|
|
|
|
2024-06-03 16:11:14 +08:00
|
|
|
|
|
|
|
class ProductController extends BaseApiController{
|
|
|
|
public $notNeedLogin = ['lists'];
|
|
|
|
/**
|
|
|
|
* 商品列表
|
|
|
|
*/
|
|
|
|
public function lists(){
|
|
|
|
|
2024-06-19 17:40:41 +08:00
|
|
|
return $this->dataLists(new ProductLists());
|
2024-06-03 16:11:14 +08:00
|
|
|
}
|
|
|
|
|
2024-06-06 14:58:20 +08:00
|
|
|
/**
|
2024-06-03 16:11:14 +08:00
|
|
|
* 商品列表
|
|
|
|
*/
|
|
|
|
public function mer_list(){
|
2024-06-06 14:58:20 +08:00
|
|
|
$this->request->__set('store_id',$this->request->userInfo['store_id']??0);
|
2024-06-03 16:11:14 +08:00
|
|
|
return $this->dataLists(new ProductLists());
|
|
|
|
}
|
|
|
|
|
2024-06-04 16:51:26 +08:00
|
|
|
}
|