| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- namespace app\modules\admin\controllers\team_grades;
- use app\modules\admin\controllers\BaseController;
- use app\modules\admin\models\team_grades\TeamForm;
- class TeamController extends BaseController
- {
- //审核列表
- public function actionAuditList() {
- $form = new TeamForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->auditList());
- }
- //审核处理
- public function actionHandle() {
- $form = new TeamForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->handle());
- }
- //团队人员列表
- public function actionList() {
- $form = new TeamForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->list());
- }
- //添加团队人员
- public function actionAddTeam() {
- $form = new TeamForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->addTeam());
- }
- //删除团队人员
- public function actionDelTeam() {
- $form = new TeamForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->delTeam());
- }
- //分红设置
- public function actionSetDividends() {
- $form = new TeamForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->setDividends());
- }
- //人员分红明细
- public function actionGetTeamDividendsList() {
- $form = new TeamForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->getTeamDividendsList());
- }
- }
|