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.

24 lines
715 B

<?php
namespace app\admin\controller;
use app\admin\service\InitService;
class Init extends AdminBaseController
{
// 管理员(admin)账号创建聊天账号、创建聊天群组,
public function initAdminChatInfo()
{
$initService = new InitService();
$result = $initService->initAdminChatInfo();
return json($result);
}
// 获取已注册的用户,遍历每个用户去注册聊天账号,然后与管理员添加聊天好友,并加入到管理员的群聊中
public function initUserChatInfo()
{
$initService = new InitService();
$result = $initService->initUserChatInfo($this->request->param());
return json($result);
}
}