| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace app\modules\client\controllers\v1;
- use app\modules\client\controllers\BaseController;
- use app\modules\client\models\v1\GoodsBrandForm;
- class GoodsBrandController extends BaseController
- {
- //获取品牌列表
- public function actionGetBrandList() {
- $form = new GoodsBrandForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- $form->user_id = get_user_id();
- $this->asJson($form->getBrandList());
- }
- public function actionGetList() {
- $form = new GoodsBrandForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- $form->user_id = get_user_id();
- $this->asJson($form->getList());
- }
- //获取品牌分类列表
- public function actionGetBrandCatList() {
- $form = new GoodsBrandForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- $form->user_id = get_user_id();
- $this->asJson($form->getCatList());
- }
- //关注/取消关注品牌
- public function actionUserBrandSubscribe() {
- $form = new GoodsBrandForm();
- $form->attributes = post_params();
- $form->user_id = get_user_id();
- $form->store_id = get_store_id();
- $this->asJson($form->userBrandSubscribe());
- }
- //获取品牌详情
- public function actionBrandInfo() {
- $form = new GoodsBrandForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- $form->user_id = get_user_id();
- $form->md_id = get_md_id();
- $this->asJson($form->brandInfo());
- }
- }
|