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.
46 lines
1.6 KiB
46 lines
1.6 KiB
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | Niucloud-admin 企业快速开发的多应用管理平台
|
|
// +----------------------------------------------------------------------
|
|
// | 官方网址:https://www.niucloud.com
|
|
// +----------------------------------------------------------------------
|
|
// | niucloud团队 版权所有 开源版本可自由商用
|
|
// +----------------------------------------------------------------------
|
|
// | Author: Niucloud Team
|
|
// +----------------------------------------------------------------------
|
|
|
|
namespace app\api\controller\apiController;
|
|
|
|
use app\Request;
|
|
use app\service\api\apiService\CampusService;
|
|
use app\service\api\apiService\ChatService;
|
|
use app\service\api\apiService\CommonService;
|
|
use core\base\BaseApiService;
|
|
|
|
/**
|
|
* 测试控制器相关接口
|
|
* Class Personnel
|
|
* @package app\api\controller\apiController
|
|
*/
|
|
class Test extends BaseApiService
|
|
{
|
|
|
|
//测试控制器Demo
|
|
public function index(Request $request)
|
|
{
|
|
$personnel_id = $request->param('personnel_id', '');//员工人力资源表id(两个参数2选1)
|
|
$customer_resources_id = $request->param('customer_resources_id', '');//学生资源表id(两个参数2选1)
|
|
if (empty($personnel_id) && empty($customer_resources_id)) {
|
|
return fail('缺少参数');
|
|
}
|
|
|
|
$where = [
|
|
'personnel_id' => $personnel_id,
|
|
'customer_resources_id' => $customer_resources_id,
|
|
];
|
|
|
|
$res = (new ChatService())->getChatFriendsPage($where);
|
|
|
|
return success($res);
|
|
}
|
|
}
|
|
|