|
|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
namespace hd\controllers;
|
|
|
|
|
|
+use bizHd\goods\classes\CategoryClass;
|
|
|
use bizHd\goods\services\CategoryService;
|
|
|
use bizHd\goods\services\GoodsCategoryService;
|
|
|
use Yii;
|
|
|
@@ -10,6 +11,13 @@ use common\components\util;
|
|
|
class CategoryController extends BaseController
|
|
|
{
|
|
|
|
|
|
+ public function actionGetAllCategory()
|
|
|
+ {
|
|
|
+ $where = ['mainId' => $this->mainId, 'delStatus' => 0];
|
|
|
+ $list = CategoryClass::getAllByCondition($where, null, '*');
|
|
|
+ util::success(['list' => $list]);
|
|
|
+ }
|
|
|
+
|
|
|
//分类列表
|
|
|
public function actionList()
|
|
|
{
|