| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace app\modules\admin\controllers;
- use app\modules\admin\models\GoodsBrandForm;
- class GoodsBrandController extends BaseController
- {
- //获取品牌列表
- public function actionList() {
- $form = new GoodsBrandForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->getList());
- }
- //获取品牌列表
- public function actionSaveBrand() {
- $form = new GoodsBrandForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->saveBrand());
- }
- //设置品牌状态
- public function actionSetStatus() {
- $form = new GoodsBrandForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->setStatus());
- }
- }
|