1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace App\Http\Controllers\Api;
- use App\Service\CorpService;
- use Illuminate\Http\Request;
- use App\Http\Controllers\Controller;
- class CorpController extends Controller
- {
- /**
- * 获取企业已授权的账号列表
- * */
- public function lists(Request $request)
- {
- $keyword = $request->input('keyword');
- $adminId = $request->input('admin_id');
- $is_system_admin = $request->input("is_system_admin"); //是否是系统管理员,中间件赋值
- $getUserScale = $request->input('get_user_scale', 0); // 是否获取企微用户规模数据
- $active = $request->input('active');
- $page = $request->input('page', 1);
- $pageSize = $request->input('page_size', 20);
- # 获取该用户所有公众号信息
- list($accountList, $total) = CorpService::getCorpList($is_system_admin,$keyword, $adminId, $getUserScale, $page
- , $pageSize, $active);
- return self::returnPageValue($accountList, $total, $pageSize, $page);
- }
- }
|