SharingReceiverController.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace app\modules\admin\controllers;
  3. use app\modules\admin\models\SharingReceiverForm;
  4. class SharingReceiverController extends BaseController
  5. {
  6. //自定义分账接收方列表
  7. public function actionList() {
  8. $form = new SharingReceiverForm();
  9. $form->attributes = get_params();
  10. return $this->asJson($form->list());
  11. }
  12. //自定义分账接收方保存
  13. public function actionSave() {
  14. $form = new SharingReceiverForm();
  15. $form->attributes = post_params();
  16. return $this->asJson($form->save());
  17. }
  18. //自定义分账接收方删除
  19. public function actionDel() {
  20. $form = new SharingReceiverForm();
  21. $form->attributes = post_params();
  22. return $this->asJson($form->del());
  23. }
  24. //让利比例明细列表
  25. public function actionProfitList() {
  26. $form = new SharingReceiverForm();
  27. $form->attributes = get_params();
  28. return $this->asJson($form->profitList());
  29. }
  30. //商城让利比例详情
  31. public function actionStoreProfitDetail() {
  32. $form = new SharingReceiverForm();
  33. $form->attributes = get_params();
  34. return $this->asJson($form->storeProfitDetail());
  35. }
  36. //商城比例详情列表数据
  37. public function actionStoreProfitDetailList() {
  38. $form = new SharingReceiverForm();
  39. $form->attributes = get_params();
  40. return $this->asJson($form->storeProfitList());
  41. }
  42. }