UserCancel.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace app\adminapi\controller\v1\user;
  3. use app\adminapi\controller\AuthController;
  4. use app\services\user\UserCancelServices;
  5. use think\facade\App;
  6. class UserCancel extends AuthController
  7. {
  8. /**
  9. * UserCancel constructor.
  10. * @param App $app
  11. * @param UserCancelServices $services
  12. */
  13. public function __construct(App $app, UserCancelServices $services)
  14. {
  15. parent::__construct($app);
  16. $this->services = $services;
  17. }
  18. /**
  19. * 获取注销列表
  20. * @return mixed
  21. */
  22. public function getCancelList()
  23. {
  24. $where = $this->request->postMore([
  25. ['status', 0],
  26. ['keywords', ''],
  27. ]);
  28. $data = $this->services->getCancelList($where);
  29. return app('json')->success($data);
  30. }
  31. /**
  32. * 备注
  33. * @return mixed
  34. */
  35. public function setMark()
  36. {
  37. [$id, $mark] = $this->request->postMore([
  38. ['id', 0],
  39. ['mark', ''],
  40. ], true);
  41. $this->services->serMark($id, $mark);
  42. return app('json')->success(100024);
  43. }
  44. public function agreeCancel($id)
  45. {
  46. return app('json')->success(400319);
  47. }
  48. public function refuseCancel($id)
  49. {
  50. return app('json')->success(400320);
  51. }
  52. }