You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UserSearchController.php 891B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace app\controller\api\v2\user;
  3. use app\services\user\UserSearchServices;
  4. use think\Request;
  5. /**
  6. * Class UserInvoiceController
  7. * @package app\api\controller\v2\user
  8. */
  9. class UserSearchController
  10. {
  11. /**
  12. * @var UserInvoiceServices
  13. */
  14. protected $services;
  15. /**
  16. * UserSearchController constructor.
  17. * @param UserSearchServices $services
  18. */
  19. public function __construct(UserSearchServices $services)
  20. {
  21. $this->services = $services;
  22. }
  23. public function getUserSeachList(Request $request)
  24. {
  25. return app('json')->successful($this->services->getUserList((int)$request->uid()));
  26. }
  27. public function cleanUserSearch(Request $request)
  28. {
  29. $uid = (int)$request->uid();
  30. $this->services->update(['uid' => $uid], ['is_del' => 1]);
  31. return app('json')->successful('删除成功');
  32. }
  33. }