63 lines
2.0 KiB
Dart
63 lines
2.0 KiB
Dart
class NetworkConfig {
|
|
static String ServerDomain_Online = BASE_URLS[SELECT_INDEX];
|
|
static String deviceID = ""; //设备ID
|
|
static String systemVersion = ""; //设备ID
|
|
|
|
/// 选择哪个域名做请求
|
|
static int SELECT_INDEX = 0;
|
|
|
|
static List BASE_URLS = [
|
|
"http://49.233.115.141:11082",
|
|
"http://49.233.115.141:11082",
|
|
];
|
|
|
|
static List BASE_URLS_TEST = [
|
|
"https://odf.zpc-xy.com",
|
|
];
|
|
|
|
static bool isTest = true;
|
|
|
|
static String token = "";
|
|
static String userToken = ""; //用户登录验签
|
|
static String AppId = "1";
|
|
static String BossId = "";
|
|
static String userId = "";
|
|
static String userName = "";
|
|
static String Version = "1.0.0";
|
|
static String Language = "en";
|
|
static bool isPermission = false; //是否有权限
|
|
|
|
static List<String> diverItems = [];
|
|
static List<String> businessItems = [];
|
|
|
|
static const String appLogin = "/appLogin"; //登录
|
|
|
|
static const String odf = "/business/OdfPorts/odf"; //权限检测
|
|
|
|
static const String roomList = "/business/OdfRooms/list"; //机房列表
|
|
|
|
static const String racksList = "/business/OdfRacks/list"; //机架列表
|
|
|
|
static const String mList = "/business/OdfPorts/mlist"; //机架详情
|
|
|
|
static const String odfDetails = "/business/OdfPorts/"; //机器接口详情
|
|
|
|
static const String save = "/business/OdfPorts/save"; //保存信息
|
|
|
|
static const String search = "/business/OdfPorts/search"; //搜索
|
|
|
|
static const String updateUserPwd = "/system/user/profile/updateUserPwd"; //修改密码
|
|
|
|
static const String newSearch = "/business/OdfPorts/search2"; //新搜索
|
|
|
|
static const String getCompany = "/business/OdfRooms/getcompany"; //公司列表
|
|
|
|
static const String getRegion = "/business/OdfRooms/getregion"; //地区列表
|
|
|
|
static const String odfPortsUnitType = "/system/dict/data/type/odf_ports_unit_type"; //设备型号
|
|
|
|
static const String odfPortsBusinessType = "/system/dict/data/type/odf_ports_business_type"; //业务类型
|
|
|
|
static const String checkAppVersion = "/webapi/CheckAppVersion"; //提示更新
|
|
}
|