| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace app\modules\admin\controllers\team_grades;
- use app\modules\admin\controllers\BaseController;
- use app\modules\admin\models\team_grades\TeamLevelForm;
- class TeamLevelController extends BaseController
- {
- //团队等级列表
- public function actionList() {
- $form = new TeamLevelForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->list());
- }
- //设置团队等级
- public function actionSetLevel() {
- $form = new TeamLevelForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->setLevel());
- }
- //获取设置的信息
- public function actionGetEditInfo() {
- $form = new TeamLevelForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->getEditInfo());
- }
- //启用禁用删除
- public function actionSetStatus() {
- $form = new TeamLevelForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->handle());
- }
- }
|