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'; }