IndexController.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace app\modules\admin\controllers\storeDividends;
  3. use app\modules\admin\controllers\BaseController;
  4. use app\modules\admin\models\storeDividends\IndexForm;
  5. class IndexController extends BaseController
  6. {
  7. /**
  8. * 平台分红池
  9. */
  10. public function actionStoreDividendsPool() {
  11. $form = new IndexForm();
  12. $form->attributes = get_params();
  13. return $this->asJson($form->storeDividendsPool());
  14. }
  15. /**
  16. * 让利明细
  17. */
  18. public function actionStoreDividendsDetail() {
  19. $form = new IndexForm();
  20. $form->attributes = get_params();
  21. return $this->asJson($form->storeDividendsDetail());
  22. }
  23. /**
  24. * 分红记录
  25. */
  26. public function actionStoreDividendsRecord() {
  27. $form = new IndexForm();
  28. $form->attributes = get_params();
  29. return $this->asJson($form->storeDividendsRecord());
  30. }
  31. /**
  32. * 执行分红
  33. */
  34. public function actionStoreDividendsSend() {
  35. $form = new IndexForm();
  36. $form->attributes = post_params();
  37. return $this->asJson($form->storeDividendsSend());
  38. }
  39. /**
  40. * 分红明细
  41. */
  42. public function actionStoreDividendsDetailList() {
  43. $form = new IndexForm();
  44. $form->attributes = get_params();
  45. return $this->asJson($form->storeDividendsDetailList());
  46. }
  47. }