ManageService.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: hp
  5. * Date: 2017/12/2
  6. * Time: 15:56
  7. */
  8. namespace App\Modules\Manage\Services;
  9. use App\Modules\Manage\Models\Manage;
  10. class ManageService
  11. {
  12. /**
  13. * 根据账号获取
  14. * @return mixed
  15. */
  16. static function getByAccount($account){
  17. return Manage::getByAccount($account);
  18. }
  19. /**
  20. * 根据渠道id获取
  21. * @return mixed
  22. */
  23. static function getById($id){
  24. return Manage::getById($id);
  25. }
  26. /**
  27. * 修改渠道密码
  28. * @param string $phone 手机号码
  29. * @param string $password 加密后密码
  30. * @return boolen
  31. */
  32. static function modifyPassword($phone, $password)
  33. {
  34. return Manage::modifyPassword($phone, $password);
  35. }
  36. static function getBusinesserByNumber($number)
  37. {
  38. return Manage::getBusinesserByNumber($number);
  39. }
  40. /**
  41. * 获取商务列表
  42. * @param $params[]
  43. * search_name: 搜索名称 可选
  44. * start_date:开始时间 可选
  45. * end_date:结束时间 可选
  46. * is_enabled: 0:不可用; 1:可用
  47. * @param $isAll
  48. * @return mixed
  49. */
  50. public static function getBusinessManageList($params=[], $isAll = false) {
  51. return Manage::getBusinessManageList($params, $isAll);
  52. }
  53. }