<?php

namespace App\Services;

use App\Exceptions\TencentImException;
use App\Models\User;
use App\Traits\TencentIm;
use GuzzleHttp\Client;
use Illuminate\Support\Arr;
use Tencent\TLSSigAPIv2;

class TencentImService
{

    use TencentIm;


    const TENCENT_REST_APIS = [
        'account_import' => 'v4/im_open_login_svc/account_import',  //导入单个帐号
        'multiaccount_import' => 'v4/im_open_login_svc/multiaccount_import', //导入多个帐号
        'account_delete' => 'v4/im_open_login_svc/account_delete',  //删除帐号
        'account_check' => 'v4/im_open_login_svc/account_check',    //查询帐号
        'kick' => 'v4/im_open_login_svc/kick',  //失效帐号登录态
        'querystate' => 'v4/openim/querystate', //查询帐号在线状态
        'sendmsg' => 'v4/openim/sendmsg',   //单发单聊消息
        'batchsendmsg' => '	v4/openim/batchsendmsg',   //批量发单聊消息
        'importmsg' => 'v4/openim/importmsg',   //导入单聊消息
        'admin_getroammsg' => 'v4/openim/admin_getroammsg',   //查询单聊消息
        'admin_msgwithdraw' => 'v4/openim/admin_msgwithdraw',   //撤回单聊消息
        'admin_set_msg_read' => '	v4/openim/admin_set_msg_read',   //设置单聊消息已读
        'all_member_push/im_push' => 'v4/all_member_push/im_push',   //全员推送
        'all_member_push/im_set_attr_name' => 'v4/all_member_push/im_set_attr_name',   //设置应用属性名称
        'sns/friend_add' => 'v4/sns/friend_add',   //添加好友
        'sns/friend_import' => 'v4/sns/friend_import',   //导入好友
        'sns/friend_update' => 'v4/sns/friend_update',   //更新好友
        'sns/friend_delete' => 'v4/sns/friend_delete',   //删除好友
        'sns/friend_delete_all' => 'v4/sns/friend_delete_all',   //删除所有好友
        'sns/friend_check' => 'v4/sns/friend_check',   //校验好友
        'sns/friend_get' => 'v4/sns/friend_get',   //拉取好友
        'sns/friend_get_list' => 'v4/sns/friend_get_list',   //拉取指定好友
        'sns/black_list_add' => 'v4/sns/black_list_add',   //添加黑名单
        'sns/black_list_delete' => 'v4/sns/black_list_delete',   //删除黑名单
        'sns/black_list_get' => 'v4/sns/black_list_get',   //拉取黑名单
        'sns/black_list_check' => 'v4/sns/black_list_check',   //校验黑名单
        'group_open_http_svc/create_group' => 'v4/group_open_http_svc/create_group',   //创建群组
        'group_open_http_svc/get_group_info' => 'v4/group_open_http_svc/get_group_info',   //获取群详细资料
        'group_open_http_svc/modify_group_base_info' => 'v4/group_open_http_svc/modify_group_base_info',   //修改群基础资料
        'group_open_http_svc/add_group_member' => 'v4/group_open_http_svc/add_group_member',   //

    ];

    public function registerItemAccountByUser()
    {

    }


}
