企微短剧业务系统

CorpController.php 1.0KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Http\Controllers\Api;
  3. use App\Service\CorpService;
  4. use Illuminate\Http\Request;
  5. use App\Http\Controllers\Controller;
  6. class CorpController extends Controller
  7. {
  8. /**
  9. * 获取企业已授权的账号列表
  10. * */
  11. public function lists(Request $request)
  12. {
  13. $keyword = $request->input('keyword');
  14. $adminId = $request->input('admin_id');
  15. $is_system_admin = $request->input("is_system_admin"); //是否是系统管理员,中间件赋值
  16. $getUserScale = $request->input('get_user_scale', 0); // 是否获取企微用户规模数据
  17. $active = $request->input('active');
  18. $page = $request->input('page', 1);
  19. $pageSize = $request->input('page_size', 20);
  20. # 获取该用户所有公众号信息
  21. list($accountList, $total) = CorpService::getCorpList($is_system_admin,$keyword, $adminId, $getUserScale, $page
  22. , $pageSize, $active);
  23. return self::returnPageValue($accountList, $total, $pageSize, $page);
  24. }
  25. }