ManageService.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. static function getBusinesserByNumber($number)
  27. {
  28. return Manage::getBusinesserByNumber($number);
  29. }
  30. /**
  31. * 获取商务列表
  32. * @param $params[]
  33. * search_name: 搜索名称 可选
  34. * start_date:开始时间 可选
  35. * end_date:结束时间 可选
  36. * is_enabled: 0:不可用; 1:可用
  37. * @param $isAll
  38. * @return mixed
  39. */
  40. public static function getBusinessManageList($params=[], $isAll = false) {
  41. return Manage::getBusinessManageList($params, $isAll);
  42. }
  43. }