| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\modules\admin\controllers\pt;
- use app\modules\admin\controllers\BaseController;
- use app\modules\admin\models\AboutArticleForm;
- use app\modules\admin\models\pt\PtActivityForm;
- class PtActivityController extends BaseController
- {
- /**
- * @return \yii\web\Response
- * 获取列表活动
- */
- public function actionList()
- {
- $form = new PtActivityForm();
- $form->attributes = get_params();
- $res = $form->search();
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 保存信息
- */
- public function actionSave()
- {
- $form = new PtActivityForm();
- $form->attributes = post_params();
- $res = $form->save();
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 获取信息
- */
- public function actionGetInfo()
- {
- $form = new PtActivityForm();
- $form->attributes = get_params();
- $res = $form->getInfo();
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 获取普通商品
- */
- public function actionGetGoods()
- {
- $form = new PtActivityForm();
- $form->attributes = get_params();
- $res = $form->getGoods();
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 获取拼团商品分类
- */
- public function actionGetPtGoodsCat()
- {
- $form = new PtActivityForm();
- $form->attributes = get_params();
- $res = $form->getGoodsCat();
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 修改状态
- */
- public function actionSetStatus()
- {
- $form = new PtActivityForm();
- $form->attributes = get_params();
- $res = $form->setStatus();
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 保存规则
- */
- public function actionSaveAritcle()
- {
- $form = new PtActivityForm();
- $form->attributes = post_params();
- $res = $form->saveArticle();
- return $this->asJson($res);
- }
- /**
- * 获取规则
- */
- public function actionGetArticle() {
- $form = new PtActivityForm();
- $form->attributes = get_params();
- $res = $form->getArticle();
- return $this->asJson($res);
- }
- /**
- * 联盟审核列表
- */
- public function actionGetAuditList() {
- $form = new PtActivityForm();
- $form->attributes = get_params();
- $res = $form->auditList();
- return $this->asJson($res);
- }
- /**
- * 活动审核状态修改
- */
- public function actionAuditHandle() {
- $form = new PtActivityForm();
- $form->attributes = post_params();
- $res = $form->auditHandle();
- return $this->asJson($res);
- }
- }
|