39 lines
711 B
PHP
Executable File
39 lines
711 B
PHP
Executable File
<?php
|
|
|
|
namespace plugin\admin\app\controller;
|
|
|
|
use app\model\User;
|
|
use plugin\admin\app\controller\Crud;
|
|
use support\exception\BusinessException;
|
|
use support\Request;
|
|
use support\Response;
|
|
use Throwable;
|
|
|
|
/**
|
|
* 会话管理
|
|
*/
|
|
class ConversationController extends Crud
|
|
{
|
|
|
|
/**
|
|
* @var \app\model\UserXuanchuan
|
|
*/
|
|
protected $model = null;
|
|
/**
|
|
* 构造函数
|
|
* @return void
|
|
*/
|
|
function __construct()
|
|
{
|
|
}
|
|
function select(Request $request): Response{
|
|
$list = $request->IM->conversation->getSortedConversationList();
|
|
return json([
|
|
'code' => 0,
|
|
'msg' => 'success',
|
|
'data' => $list
|
|
]);
|
|
}
|
|
|
|
}
|