| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace app\modules\admin\controllers\team_grades;
- use app\modules\admin\controllers\BaseController;
- use app\modules\admin\models\team_grades\TeamGoodsForm;
- class TeamGoodsController extends BaseController
- {
- //设置分红商品
- public function actionSetGoods() {
- $model = new TeamGoodsForm();
- $model->attributes = post_params();
- $model->store_id = get_store_id();
- return $this->asJson($model->setGoods());
- }
- //获取分红商品
- public function actionList() {
- $model = new TeamGoodsForm();
- $model->attributes = get_params();
- $model->store_id = get_store_id();
- return $this->asJson($model->list());
- }
- //删除
- public function actionDel() {
- $model = new TeamGoodsForm();
- $model->attributes = get_params();
- $model->store_id = get_store_id();
- return $this->asJson($model->del());
- }
- }
|