39 lines
1.6 KiB
Dart
39 lines
1.6 KiB
Dart
class ServiceConstant {
|
|
//基础地址
|
|
// static const String baseHost = "vsbs.he-info.cn";
|
|
// static const String baseHost = "vsbst-api.he-info.cn";
|
|
static const String baseHost = "vsbs-test.he-info.cn";
|
|
static const String apibaseHost = "songxia.he-info.com";
|
|
//服务地址
|
|
static String service_address = "https://$apibaseHost";
|
|
static String web_service_address = "http://$baseHost";
|
|
static String app_server_service = "/wx/app/bizreport/app"; //服务名称
|
|
//服务名称及api
|
|
//房间类型
|
|
//房间
|
|
static const String room_service = "/vsbs_room";
|
|
static const String room_list = "/room/roomList"; //房间列表
|
|
static const String disease_range_data = "/statistics/disease";
|
|
//日志
|
|
static String logService = "$web_service_address/vsbs_log";
|
|
//websocket网关
|
|
static const String webSocketService = "wss://$baseHost/vsbs_ws_gateway/ws";
|
|
//数据中心
|
|
static String dataCenterService = "$service_address/vsbs_data_center";
|
|
static const String sleepReportData = "/api/sleep/data/list"; //睡眠报告数据
|
|
//机构数据
|
|
static String agency_service = "$service_address/vsbs_agency"; //机构服务
|
|
static const String agency_list = "/agency/allAgencyList"; //获取机构列表
|
|
|
|
//用户中心
|
|
static String userCenterService = "$service_address/vsbs_user_center";
|
|
//添加报警
|
|
static const String addMessage = "/api/message/info";
|
|
static const String message_service = "/vsbs_message_center";
|
|
static const String message_list = "/api/message/info"; //查询消息
|
|
|
|
set serviceAddress(String host) {
|
|
service_address = host;
|
|
}
|
|
}
|