LocalDeliveryCourierTagController.php 844 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace app\modules\admin\controllers;
  3. use app\modules\admin\models\LocalDeliveryCourierTagForm;
  4. class LocalDeliveryCourierTagController extends BaseController
  5. {
  6. //获取骑手标签列表
  7. public function actionList() {
  8. $form = new LocalDeliveryCourierTagForm();
  9. $form->attributes = get_params();
  10. return $this->asJson($form->getList());
  11. }
  12. //保存骑手标签
  13. public function actionSaveTag() {
  14. $form = new LocalDeliveryCourierTagForm();
  15. $form->attributes = post_params();
  16. return $this->asJson($form->saveTag());
  17. }
  18. //设置骑手标签
  19. public function actionSetStatus() {
  20. $form = new LocalDeliveryCourierTagForm();
  21. $form->attributes = get_params();
  22. return $this->asJson($form->setStatus());
  23. }
  24. }