ShareLevelController.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\modules\admin\controllers;
  8. use app\modules\admin\models\ShareLevelFrom;
  9. class ShareLevelController extends BaseController
  10. {
  11. //分销商等级列表
  12. public function actionShareLevelList() {
  13. $form = new ShareLevelFrom();
  14. $form->attributes = get_params();
  15. $form->store_id = get_store_id();
  16. return $this->asJson($form->list());
  17. }
  18. //分销商等级修改
  19. public function actionShareLevelSave() {
  20. $form = new ShareLevelFrom();
  21. $form->attributes = post_params();
  22. $form->store_id = get_store_id();
  23. return $this->asJson($form->setShareLevel());
  24. }
  25. //分销商等级状态修改
  26. public function actionShareLevelStatus() {
  27. $form = new ShareLevelFrom();
  28. $form->attributes = post_params();
  29. $form->store_id = get_store_id();
  30. return $this->asJson($form->setStatus());
  31. }
  32. }