package com.fs.qw.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.UUID;

public interface QwConfig {

    UUID uuid = UUID.randomUUID();
    //第三方地址加端口
//    String URL = "http://218.78.51.254:15201"; // 开发环境
    String URL = "http://219.152.201.216:15201"; //生产环境

//    String URL =QwUrlConfig.apiUrl;

    /**
     * traceId、appKey、appSecret为http请求头的固定信息
     */
    String TRACE_ID = uuid.toString().replaceAll("-", "");

    String APP_SECRET = "OYdpXQYHPB4f7juFWSQm1RuQun3alt-f6NKtsDp8ILfxC1ZRdjWcUIz-oiLRNqMQ";

    String APP_KEY = "Kkmc7GnagwOD0rbO";

    /**
     * 上传、下载文件
     */
    String CDN_UPLOAD = URL+"/api/cdn/upload";
    String CDN_DOWNLOAD = URL+"/api/cdn/download";


    /**
     * 登录接口地址
     */
    //生成登录二维码
    String AUTH_QRCODE = URL+"/api/auth/qrcode";
    //登陆验证
    String AUTH_VERIFY = URL+"/api/auth/verify";
    //注销登录
    String AUTH_BAN = URL+"/api/auth/ban";
    //检查账号是否在线
    String AUTH_CHECK = URL+"/api/auth/check";
    //获取在线设备
    String AUTH_DEVICE = URL+"/api/auth/device";

    /**
     * 联系人接口地址
     */
    //搜索联系人
    String CONTACT_SEARCH = URL+"/api/contact/search";
    //添加联系人
    String CONTACT_ADD = URL+"/api/contact/add";
    //获取联系人列表
    String CONTACT_LIST = URL+"/api/contact/list";
    //删除联系人
    String CONTACT_DELETE = URL+"/api/contact/delete";
    //联系人详情
    String CONTACT_DETAIL = URL+"/api/contact/detail";
    //同意好友申请
    String CONTACT_AF = URL+"/api/contact/agreeFriend";
    //获取联系人列表
    String INNER_CONTACT_LIST = URL+"/api/contact/staff";

    /**
     * 群组接口地址
     */
    //群列表
    String ROOM_LIST = URL+"/api/room/list";
    //群详情
    String ROOM_DETAIL = URL+"/api/room/detail";
    //建群
    String ROOM_CREATE = URL+"/api/room/create";
    //修改群名称
    String ROOM_CHANGENAME = URL+"/api/room/changeName";
    //添加群成员
    String ROOM_ADDMEMBERS = URL+"/api/room/addMembers";
    //移除群成员
    String ROOM_REMOVEMEMBERS = URL+"/api/room/removeMembers";
    //添加群成员为好友
    String ROOM_ADDFRIEND = URL+"/api/room/addFriend";
    //生成群二维码
    String ROOM_QRCODE = URL+"/api/room/qrcode";
    //修改群公告
    String ROOM_NOTICE = URL+"/api/room/notice";
    //退出群
    String ROOM_EXIT = URL+"/api/room/exit";
    //删除群
    String ROOM_DELETE = URL+"/api/room/delete";
    //转让群
    String ROOM_CHANGEOWNER = URL+"/api/room/changeOwner";


    /**
     * 标签接口地址
     */
    //获取标签列表
    String LABEL_LIST = URL+"/api/label/list";
    //创建标签
    String LABEL_CREATE = URL+"/api/label/create";
    //删除标签
    String LABEL_DELETE = URL+"/api/label/delete";
    //修改标签
    String LABEL_UPDATE = URL+"/api/label/update";
    //设置用户标签
    String LABEL_ASSIGN = URL+"/api/label/assign";


    /**
     * 发送消息接口
     */
    //发送文本消息
    String MESSAGE_TEXT = URL+"/api/message/text";
    //发送图片
    String MESSAGE_IMAGE = URL+"/api/message/image";
    //发送语音
    String MESSAGE_VOICE = URL+"/api/message/voice";
    //发送文件消息
    String MESSAGE_FILE = URL+"/api/message/file";
    //发送链接消息
    String MESSAGE_LINK = URL+"/api/message/link";
    //发送小程序消息
    String MESSAGE_APP = URL+"/api/message/app";
    //发送视频消息
    String MESSAGE_VIDEO = URL+"/api/message/video";
    //撤回消息
    String MESSAGE_REVOKE = URL+"/api/message/revoke";


}
