You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
803 B
40 lines
803 B
import '../environment/environment.dart';
|
|
|
|
|
|
/// * user 用户接口
|
|
/// * data 基础数据接口
|
|
/// * product 产品接口
|
|
class API {
|
|
static const tokenKey = 'Broker-Token';
|
|
|
|
///HOST
|
|
static String get host {
|
|
if (DevEV.instance.dev) {
|
|
return 'https://apiwenche.oa00.com';
|
|
} else {
|
|
return 'https://api.yunyunwenche.com';
|
|
}
|
|
}
|
|
|
|
static String get imageHost {
|
|
if (DevEV.instance.dev) {
|
|
return 'https://static.oa00.com/wenche';
|
|
} else {
|
|
return 'https://static.yunyunwenche.com';
|
|
}
|
|
}
|
|
|
|
static String get baseURL => '$host/app/broker';
|
|
//根分类
|
|
///文件
|
|
static _File file = _File();
|
|
|
|
}
|
|
|
|
class _File {
|
|
///图片上传
|
|
String get uploadImage => '/file/upload/image';
|
|
|
|
///文件上传
|
|
String get uploadFile => '/file/upload/file';
|
|
} |