After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 371 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 643 B |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 849 B |
After Width: | Height: | Size: 188 B |
After Width: | Height: | Size: 525 B |
@ -0,0 +1,86 @@
|
||||
/// id : "1412705737469067264" |
||||
/// createTime : "2021-07-07 17:31:09" |
||||
/// createUser : "1" |
||||
/// updateTime : "2021-07-20 16:50:28" |
||||
/// updateUser : "1" |
||||
/// parentId : "0" |
||||
/// name : "饮食" |
||||
/// miniShow : 1 |
||||
/// sortOrder : 1 |
||||
/// isDelete : 0 |
||||
|
||||
class GoodsCategory { |
||||
String _id; |
||||
String _createTime; |
||||
String _createUser; |
||||
String _updateTime; |
||||
String _updateUser; |
||||
String _parentId; |
||||
String _name; |
||||
int _miniShow; |
||||
int _sortOrder; |
||||
int _isDelete; |
||||
|
||||
String get id => _id; |
||||
String get createTime => _createTime; |
||||
String get createUser => _createUser; |
||||
String get updateTime => _updateTime; |
||||
String get updateUser => _updateUser; |
||||
String get parentId => _parentId; |
||||
String get name => _name; |
||||
int get miniShow => _miniShow; |
||||
int get sortOrder => _sortOrder; |
||||
int get isDelete => _isDelete; |
||||
|
||||
GoodsCategory({ |
||||
String id, |
||||
String createTime, |
||||
String createUser, |
||||
String updateTime, |
||||
String updateUser, |
||||
String parentId, |
||||
String name, |
||||
int miniShow, |
||||
int sortOrder, |
||||
int isDelete}){ |
||||
_id = id; |
||||
_createTime = createTime; |
||||
_createUser = createUser; |
||||
_updateTime = updateTime; |
||||
_updateUser = updateUser; |
||||
_parentId = parentId; |
||||
_name = name; |
||||
_miniShow = miniShow; |
||||
_sortOrder = sortOrder; |
||||
_isDelete = isDelete; |
||||
} |
||||
|
||||
GoodsCategory.fromJson(dynamic json) { |
||||
_id = json["id"]; |
||||
_createTime = json["createTime"]; |
||||
_createUser = json["createUser"]; |
||||
_updateTime = json["updateTime"]; |
||||
_updateUser = json["updateUser"]; |
||||
_parentId = json["parentId"]; |
||||
_name = json["name"]; |
||||
_miniShow = json["miniShow"]; |
||||
_sortOrder = json["sortOrder"]; |
||||
_isDelete = json["isDelete"]; |
||||
} |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
var map = <String, dynamic>{}; |
||||
map["id"] = _id; |
||||
map["createTime"] = _createTime; |
||||
map["createUser"] = _createUser; |
||||
map["updateTime"] = _updateTime; |
||||
map["updateUser"] = _updateUser; |
||||
map["parentId"] = _parentId; |
||||
map["name"] = _name; |
||||
map["miniShow"] = _miniShow; |
||||
map["sortOrder"] = _sortOrder; |
||||
map["isDelete"] = _isDelete; |
||||
return map; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,101 @@
|
||||
/// id : "1420215467561189376" |
||||
/// createTime : "2021-07-28 10:58:26" |
||||
/// createUser : "0" |
||||
/// updateTime : "2021-07-28 10:58:29" |
||||
/// updateUser : "0" |
||||
/// mid : "1406879717390286848" |
||||
/// title : "充值成功" |
||||
/// content : "你于2021-07-28 10:52:02充值0.01元,当前余额:0.08元。" |
||||
/// typed : 3 |
||||
/// relational : "" |
||||
/// state : 1 |
||||
/// isDelete : 0 |
||||
|
||||
class Message { |
||||
|
||||
String _id; |
||||
String _createTime; |
||||
String _createUser; |
||||
String _updateTime; |
||||
String _updateUser; |
||||
String _mid; |
||||
String _title; |
||||
String _content; |
||||
int _typed; |
||||
String _relational; |
||||
int _state; |
||||
int _isDelete; |
||||
|
||||
String get id => _id; |
||||
String get createTime => _createTime; |
||||
String get createUser => _createUser; |
||||
String get updateTime => _updateTime; |
||||
String get updateUser => _updateUser; |
||||
String get mid => _mid; |
||||
String get title => _title; |
||||
String get content => _content; |
||||
int get typed => _typed; |
||||
String get relational => _relational; |
||||
int get state => _state; |
||||
int get isDelete => _isDelete; |
||||
|
||||
Message({ |
||||
String id, |
||||
String createTime, |
||||
String createUser, |
||||
String updateTime, |
||||
String updateUser, |
||||
String mid, |
||||
String title, |
||||
String content, |
||||
int typed, |
||||
String relational, |
||||
int state, |
||||
int isDelete}){ |
||||
_id = id; |
||||
_createTime = createTime; |
||||
_createUser = createUser; |
||||
_updateTime = updateTime; |
||||
_updateUser = updateUser; |
||||
_mid = mid; |
||||
_title = title; |
||||
_content = content; |
||||
_typed = typed; |
||||
_relational = relational; |
||||
_state = state; |
||||
_isDelete = isDelete; |
||||
} |
||||
|
||||
Message.fromJson(dynamic json) { |
||||
_id = json["id"]; |
||||
_createTime = json["createTime"]; |
||||
_createUser = json["createUser"]; |
||||
_updateTime = json["updateTime"]; |
||||
_updateUser = json["updateUser"]; |
||||
_mid = json["mid"]; |
||||
_title = json["title"]; |
||||
_content = json["content"]; |
||||
_typed = json["typed"]; |
||||
_relational = json["relational"]; |
||||
_state = json["state"]; |
||||
_isDelete = json["isDelete"]; |
||||
} |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
var map = <String, dynamic>{}; |
||||
map["id"] = _id; |
||||
map["createTime"] = _createTime; |
||||
map["createUser"] = _createUser; |
||||
map["updateTime"] = _updateTime; |
||||
map["updateUser"] = _updateUser; |
||||
map["mid"] = _mid; |
||||
map["title"] = _title; |
||||
map["content"] = _content; |
||||
map["typed"] = _typed; |
||||
map["relational"] = _relational; |
||||
map["state"] = _state; |
||||
map["isDelete"] = _isDelete; |
||||
return map; |
||||
} |
||||
|
||||
} |
@ -1,763 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'retrofit_api.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// RetrofitGenerator |
||||
// ************************************************************************** |
||||
|
||||
class _ApiService implements ApiService { |
||||
_ApiService(this._dio, {this.baseUrl}) { |
||||
ArgumentError.checkNotNull(_dio, '_dio'); |
||||
baseUrl ??= 'http://platform.test.api.lotus-wallet.com/app/'; |
||||
} |
||||
|
||||
final Dio _dio; |
||||
|
||||
String baseUrl; |
||||
|
||||
@override |
||||
Future<BaseData> upload(data, folderId) async { |
||||
ArgumentError.checkNotNull(data, 'data'); |
||||
ArgumentError.checkNotNull(folderId, 'folderId'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = FormData(); |
||||
_data.files.add(MapEntry( |
||||
'file', |
||||
MultipartFile.fromFileSync(data.path, |
||||
filename: data.path.split(Platform.pathSeparator).last))); |
||||
if (folderId != null) { |
||||
_data.fields.add(MapEntry('folderId', folderId.toString())); |
||||
} |
||||
final _result = await _dio.request<Map<String, dynamic>>('/file/upload', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<dynamic> searchPoi(lat, lng, keywords, size, page) async { |
||||
ArgumentError.checkNotNull(lat, 'lat'); |
||||
ArgumentError.checkNotNull(lng, 'lng'); |
||||
ArgumentError.checkNotNull(keywords, 'keywords'); |
||||
ArgumentError.checkNotNull(size, 'size'); |
||||
ArgumentError.checkNotNull(page, 'page'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request( |
||||
'https://restapi.amap.com/v3/place/around?key=542b46afa8e4b88fe1eb3c4d0ba0872f&location=$lat,$lng&keywords=$keywords&offset={size}&page={page}&extensions=all', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = _result.data; |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> memberLogin(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/auth/platform/memberLogin', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> sendVerify(mobile) async { |
||||
ArgumentError.checkNotNull(mobile, 'mobile'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/auth/sendVerify/$mobile', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> creditGoods(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/creditGoods/list', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> creditGoodsById(id) async { |
||||
ArgumentError.checkNotNull(id, 'id'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>('/creditGoods/$id', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryInfo() async { |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>('/member/info', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> editInfo(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/member/editMemberInfo', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> signInInfo() async { |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/member/signInInfo', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> signIn() async { |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>('/member/signIn', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> recharge(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>('/wallet/recharge', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> receiveCoupon(couponId) async { |
||||
ArgumentError.checkNotNull(couponId, 'couponId'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/coupon/receive?couponId=$couponId', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> creditOrderList(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/creditOrder/list', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> creditOrder(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/creditOrder/create', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> addAddress(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>('/address/add', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> deleteAddress(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>('/address/delete', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryAddress(id) async { |
||||
ArgumentError.checkNotNull(id, 'id'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/address/detail/$id', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryMemberAddress() async { |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/address/queryMemberAddress', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> updateAddress(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>('/address/update', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryCoupon(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/coupon/centreList', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryCard(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/coupon/packageList', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryStore(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>('/store/list', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> informationList(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/information/list', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> informationInfo(id) async { |
||||
ArgumentError.checkNotNull(id, 'id'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>('/information/$id', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> creditOrderReceive(id) async { |
||||
ArgumentError.checkNotNull(id, 'id'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/creditOrder/receive/$id', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryHome() async { |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>('/home/home', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryStoreInfo(id) async { |
||||
ArgumentError.checkNotNull(id, 'id'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>('/store/$id', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryArticle(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/information/list', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryBanner(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>('/banner/page', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryHomeBrand() async { |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>('/home/brand', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> minLogin(storeId) async { |
||||
ArgumentError.checkNotNull(storeId, 'storeId'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/auth/mini/login/$storeId', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryBillInfo(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>('/member/listBill', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> rankList() async { |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>('/member/rankList', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> orderList(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>('/order/list', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> orderDetail(id) async { |
||||
ArgumentError.checkNotNull(id, 'id'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/order/orderDetail?id=$id', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> continuePay(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/order/continuePay', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> receiveToCard(id) async { |
||||
ArgumentError.checkNotNull(id, 'id'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/creditOrder/receive/$id', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> vipList() async { |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>('/member/vipList', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> vipDetail(id) async { |
||||
ArgumentError.checkNotNull(id, 'id'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/member/vipDetail/$id', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
} |
@ -0,0 +1,17 @@
|
||||
|
||||
|
||||
import 'dart:ui'; |
||||
|
||||
class MyFontWeight { |
||||
|
||||
static const FontWeight thin = FontWeight.w100; |
||||
static const FontWeight extra_light = FontWeight.w200; |
||||
static const FontWeight light = FontWeight.w300; |
||||
static const FontWeight regular = FontWeight.w400; |
||||
static const FontWeight medium = FontWeight.w500; |
||||
static const FontWeight semi_bold = FontWeight.w600; |
||||
static const FontWeight bold = FontWeight.w700; |
||||
static const FontWeight extra_bold = FontWeight.w800; |
||||
static const FontWeight black = FontWeight.w900; |
||||
|
||||
} |