add 数据之眼-商品分类列表
This commit is contained in:
parent
6f1556b27b
commit
68f84782cc
@ -2,10 +2,8 @@
|
|||||||
|
|
||||||
namespace app\controller\api\dataview;
|
namespace app\controller\api\dataview;
|
||||||
|
|
||||||
use app\common\repositories\BaseRepository;
|
|
||||||
use app\common\repositories\store\order\StoreOrderRepository;
|
use app\common\repositories\store\StoreCategoryRepository as repository;
|
||||||
use app\common\repositories\system\merchant\MerchantRepository;
|
|
||||||
use app\common\repositories\user\UserRepository;
|
|
||||||
use app\common\repositories\user\UserVisitRepository;
|
use app\common\repositories\user\UserVisitRepository;
|
||||||
use crmeb\basic\BaseController;
|
use crmeb\basic\BaseController;
|
||||||
use think\App;
|
use think\App;
|
||||||
@ -23,7 +21,7 @@ class Product extends BaseController
|
|||||||
|
|
||||||
public $streetCode; // 镇街道地区码
|
public $streetCode; // 镇街道地区码
|
||||||
|
|
||||||
public function __construct(App $app, BaseRepository $repository)
|
public function __construct(App $app, repository $repository)
|
||||||
{
|
{
|
||||||
parent::__construct($app);
|
parent::__construct($app);
|
||||||
$this->repository = $repository;
|
$this->repository = $repository;
|
||||||
@ -277,4 +275,9 @@ class Product extends BaseController
|
|||||||
return (float)bcdiv(bcsub($today, $last, $scale), $last, $scale);
|
return (float)bcdiv(bcsub($today, $last, $scale), $last, $scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function productCategoryList()
|
||||||
|
{
|
||||||
|
return app('json')->success($this->repository->getFormatList($this->request->merId()));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -731,14 +731,20 @@ Route::group('api/', function () {
|
|||||||
|
|
||||||
|
|
||||||
/**---------------------数据之眼可视化大屏api------------------- start */
|
/**---------------------数据之眼可视化大屏api------------------- start */
|
||||||
Route::get('user_merchat_count', 'User/userMerchantCount');
|
|
||||||
|
// Order
|
||||||
Route::get('order_statistics', 'Order/orderStatistics');
|
Route::get('order_statistics', 'Order/orderStatistics');
|
||||||
Route::get('sales_ranking', 'Order/salesRanking');
|
Route::get('sales_ranking', 'Order/salesRanking');
|
||||||
Route::get('curr_day_order_amount', 'Order/currDayOrderAmount');
|
Route::get('curr_day_order_amount', 'Order/currDayOrderAmount');
|
||||||
Route::get('product_count', 'Product/productCount');
|
|
||||||
Route::get('view_count', 'Product/viewCount');
|
// User
|
||||||
|
Route::get('user_merchat_count', 'User/userMerchantCount');
|
||||||
Route::get('user_trade_count', 'User/userTradeCount');
|
Route::get('user_trade_count', 'User/userTradeCount');
|
||||||
|
|
||||||
|
// Product
|
||||||
|
Route::get('product_count', 'Product/productCount');
|
||||||
|
Route::get('view_count', 'Product/viewCount');
|
||||||
|
Route::get('product_category_list', 'Product/productCategoryList');
|
||||||
|
|
||||||
/**---------------------数据之眼可视化大屏api-------------------- end */
|
/**---------------------数据之眼可视化大屏api-------------------- end */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user