//
//  ConfigrationNetwork.h
//  OffcnIMSDKiOS
//
//  Created by vockey on 2018/7/25.
//  Copyright © 2018年 中公教育. All rights reserved.
//@"https://api.live.offcncloud.com/"//@"http://test-api.live.offcncloud.com/"

#ifndef ConfigrationNetwork_h
#define ConfigrationNetwork_h

//默认大班课开发模式接口
#define DEV_BASEURL @"http://im.offcncloud.com:8080"
#define DEV_IMAGEBASEURL @""
#define DEV_h5live @""
#define DEV_call_server_topic @""

//默认大班课测试模式接口
#define TEST_BASEURL @"http://test-im.offcncloud.com:8080"
#define TEST_IMAGEBASEURL @""
#define TEST_h5live @""
#define TEST_call_server_topic @""

//默认大班课生产模式接口
#define PRO_BASEURL @"http://im.offcncloud.com:8080"
#define PRO_IMAGEBASEURL @""
#define PRO_h5live @""
#define PRO_call_server_topic @""


//切换连麦call_server_topic
#define BASE_GetCallServerTopic_URL [OffcnBaseNetworking get_call_server_topic]
//切换域名
#define BASE_DOMAIN_URL [OffcnBaseNetworking get_BASEURL]
//图片的前缀
#define BASE_IMAGE_URL [OffcnBaseNetworking get_ImageBaseUrl]
//h5
#define BASE_H5_URL [OffcnBaseNetworking get_h5live]


#define BASE_URL [NSString stringWithFormat:@"%@/v1/",BASE_DOMAIN_URL]
#define BASE_USER_URL [NSString stringWithFormat:@"%@/user/",BASE_DOMAIN_URL]
#define HTTPS_IMAGEBASEURL @""


#pragma mark - 二级API
//发送消息
#define sendMsgURL [NSString stringWithFormat:@"%@sendMsg",BASE_URL]
//用户信息标记已读
#define markMsgReadURL [NSString stringWithFormat:@"%@markMsgRead",BASE_URL]
//获取会话未读消息列表
#define getSessionUnreadMsgURL [NSString stringWithFormat:@"%@getSessionUnreadMsg",BASE_URL]
//获取用户最近会话记录
#define getRecentSessionsURL [NSString stringWithFormat:@"%@getRecentSessions",BASE_URL]
//获取会话历史消息列表
#define getSessionHistoryMsgURL [NSString stringWithFormat:@"%@getSessionHistoryMsg",BASE_URL]
//获取七牛Token
#define uploadToken [NSString stringWithFormat:@"%@uploadToken",BASE_URL]
//注册用户设备
#define registerDevices [NSString stringWithFormat:@"%@devices/register",BASE_URL]
//注销用户设备
#define unregisterDevices [NSString stringWithFormat:@"%@devices/unregister",BASE_URL]

#endif /* ConfigrationNetwork_h */
