| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace app\modules\admin\controllers\integralAppreciation;
- use app\modules\admin\controllers\BaseController;
- use app\modules\admin\models\integralAppreciation\GoodsForm;
- class GoodsController extends BaseController
- {
- /**
- * 保存
- */
- public function actionSave() {
- $form = new GoodsForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->save());
- }
- /**
- * 列表
- */
- public function actionList() {
- $form = new GoodsForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->getList());
- }
- /**
- * 删除
- */
- public function actionDel() {
- $form = new GoodsForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->del());
- }
- }
|