初始化
This commit is contained in:
63
bin/const/CommonVariables.dart
Normal file
63
bin/const/CommonVariables.dart
Normal file
@@ -0,0 +1,63 @@
|
||||
class CommonVariables {
|
||||
static bool isNetWorkOn = false;
|
||||
static String supabaseUrl = "https://zhmht.swes.com.cn:3443";
|
||||
// 企业微信客服拉起的url地址
|
||||
// static String wxKfUrl = "https://work.weixin.qq.com/kfid/kfcab6a07e8aac68945";
|
||||
static String wxKfUrl = "https://work.weixin.qq.com/kfid/kfc7d2337b9c07b1269";
|
||||
// 企业微信ID
|
||||
// static String wxCorpId = "wwc17348c75dbde1dc";
|
||||
static String wxCorpId = "ww51feda6026280cd0";
|
||||
//ICP备案号
|
||||
static String ICPRightCode = "皖ICP备2024068219号-1A";
|
||||
//公司名称
|
||||
static String enterpriseName = "合肥眠花糖家具有限责任公司";
|
||||
//备案时间
|
||||
static String ICPTime = "2019-2029";
|
||||
static String shoph5Url = "https://zhmht.swes.com.cn:1443";
|
||||
|
||||
static Map<String, Function(dynamic)> callMap = {};
|
||||
|
||||
static const String weather_apiKey =
|
||||
'40e23445cf0a29561af2b5b7d506a38b'; // 替换为你的 API 密钥
|
||||
static String shareText = "您的朋友邀请您使用《智慧眠花糖》APP,请复制后面链接在浏览器中打开! " +
|
||||
shoph5Url +
|
||||
"/#/pages/download/download";
|
||||
|
||||
//容器圆角
|
||||
static double filter_selector_border_radius = 50;
|
||||
static double slider_container_border_radius = 10;
|
||||
static double dialog_selector_border_radius = 6;
|
||||
|
||||
//列表数据(X秒内为刚刚数据)
|
||||
static int recent_data_time = 60 * 5;
|
||||
|
||||
//表格间距
|
||||
static int form_padding_small = 1;
|
||||
static int form_padding_medium = 5;
|
||||
static int form_padding_large = 8;
|
||||
|
||||
//内容容器最小高度百分比
|
||||
static double text_height_small_percent = 0.036; //注释
|
||||
static double text_height_medium_percent = 0.037; //正文
|
||||
static double text_height_large_percent = 0.046; //标题/搜索栏
|
||||
static double text_height_more_large_percent = 0.074; //菜单
|
||||
static double icon_height_medium_percent = 0.014; //icon
|
||||
|
||||
static int default_page = 1;
|
||||
static int default_limit_max = 999999;
|
||||
static int default_limit = 10;
|
||||
|
||||
//下拉最大高度
|
||||
static double dropdown_max_height = 200;
|
||||
|
||||
//详情弹窗左边字段显示宽度百分比
|
||||
static double dialog_attribute_width_percent = 0.15;
|
||||
|
||||
static String default_gender = "1";
|
||||
static bool default_vibrate = true;
|
||||
static int default_weight = 65;
|
||||
static int default_age = 30;
|
||||
static String default_phone = "18612345678";
|
||||
static int default_height = 170;
|
||||
static String default_username = "眠眠";
|
||||
}
|
||||
9
bin/const/Constants.dart
Normal file
9
bin/const/Constants.dart
Normal file
@@ -0,0 +1,9 @@
|
||||
class Constants {
|
||||
static const int port = 9200;
|
||||
static const String serviceName = "vsbs_room";
|
||||
|
||||
static int default_page = 1;
|
||||
static int default_limit_max = 999999;
|
||||
static int default_limit = 10;
|
||||
|
||||
}
|
||||
4
bin/const/HttpStatusCode.dart
Normal file
4
bin/const/HttpStatusCode.dart
Normal file
@@ -0,0 +1,4 @@
|
||||
class HttpStatusCode {
|
||||
static const int ok = 200; // 请求成功,服务器已返回请求的数据。
|
||||
static const int internalServerError = 500; // 服务器内部错误。
|
||||
}
|
||||
10
bin/const/MessageConstants.dart
Normal file
10
bin/const/MessageConstants.dart
Normal file
@@ -0,0 +1,10 @@
|
||||
class MessageConstants {
|
||||
// 成功提示
|
||||
static const String DELETE_ERROR = "删除失败,请联系管理员";
|
||||
static const String UPDATE_ERROR = "更新失败,请联系管理员";
|
||||
static const String ADD_ERROR = "添加失败,请联系管理员";
|
||||
|
||||
static const String ADD_SUCCESS = "添加成功";
|
||||
static const String UPDATE_SUCCESS = "更新成功";
|
||||
static const String DELETE_SUCCESS = "删除成功";
|
||||
}
|
||||
13
bin/const/MessageType.dart
Normal file
13
bin/const/MessageType.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
enum MessageType {
|
||||
instant_alarm("1", "实时体征消息"), // 实时体征消息
|
||||
check_in("2", "入住消息"), // 入住消息
|
||||
service("3", "服务消息"), // 服务消息
|
||||
system("4", "系统消息"); // 系统消息
|
||||
|
||||
// 枚举的值
|
||||
final String code; // 整数值
|
||||
final String description; // 字符串描述
|
||||
|
||||
// 构造函数
|
||||
const MessageType(this.code, this.description);
|
||||
}
|
||||
4
bin/const/ResponseJsonCode.dart
Normal file
4
bin/const/ResponseJsonCode.dart
Normal file
@@ -0,0 +1,4 @@
|
||||
class ResponseJsonCode {
|
||||
static const int success = 200; // 操作成功
|
||||
static const int fail = 400; // 操作失败
|
||||
}
|
||||
12
bin/const/RuzhuMessageType.dart
Normal file
12
bin/const/RuzhuMessageType.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
enum RuzhuMessageType {
|
||||
reservation("1", "预约消息"), // 预约消息
|
||||
check_in("2", "入住消息"), // 入住消息
|
||||
check_out("3", "退住消息"); // 退住消息
|
||||
|
||||
// 枚举的值
|
||||
final String code; // 整数值
|
||||
final String description; // 字符串描述
|
||||
|
||||
// 构造函数
|
||||
const RuzhuMessageType(this.code, this.description);
|
||||
}
|
||||
38
bin/const/ServiceConstant.dart
Normal file
38
bin/const/ServiceConstant.dart
Normal file
@@ -0,0 +1,38 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user