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.
189 lines
4.2 KiB
189 lines
4.2 KiB
1 month ago
|
import 'package:huixiang/data/mini_detail.dart';
|
||
|
import 'package:huixiang/data/sku_attr_list.dart';
|
||
|
import 'package:json_annotation/json_annotation.dart';
|
||
|
|
||
|
part 'shoping_home_config.g.dart';
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class ShopingHomeConfig {
|
||
|
List<SpecialArea>? specialArea = [];
|
||
|
List<QuickEntry>? quickEntry = [];
|
||
|
List<String>? hotSearch = [];
|
||
|
List<CategoryGroup>? categoryGroup = [];
|
||
|
|
||
|
ShopingHomeConfig();
|
||
|
|
||
|
factory ShopingHomeConfig.fromJson(Map<String, dynamic> json) => _$ShopingHomeConfigFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$ShopingHomeConfigToJson(this);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class SpecialArea {
|
||
|
String? img = '';
|
||
|
String? id = '';
|
||
|
List<ShopHomeProductList>? productList = [];
|
||
|
|
||
|
SpecialArea();
|
||
|
|
||
|
factory SpecialArea.fromJson(Map<String, dynamic> json) => _$SpecialAreaFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$SpecialAreaToJson(this);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class ShopHomeProductList {
|
||
|
String? productImg = '';
|
||
|
List<ShopHomeProductSkuVOList>? productSkuVOList = [];
|
||
|
String? productName = '';
|
||
|
bool? posShow = false;
|
||
|
List<AttrList>? attrList = [];
|
||
|
String? price = '';
|
||
|
String? productPrice = '';
|
||
|
String? promotionPrice = '';
|
||
|
int? sellCount = 0;
|
||
|
String? id = '';
|
||
|
String? applyPrice = '';
|
||
|
String? productId = '';
|
||
|
int? productStock = 0;
|
||
|
int? stock = 0;
|
||
|
int? status = 0;
|
||
|
|
||
|
ShopHomeProductList();
|
||
|
|
||
|
factory ShopHomeProductList.fromJson(Map<String, dynamic> json) => _$ShopHomeProductListFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$ShopHomeProductListToJson(this);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class ShopHomeProductSkuVOList {
|
||
|
String? productId = '';
|
||
|
int? isDelete = 0;
|
||
|
String? setMeal = '';
|
||
|
String? updateUser = '';
|
||
|
String? skuPrice = '';
|
||
|
int? skuStock = 0;
|
||
|
int? weight = 0;
|
||
|
String? updateTime = '';
|
||
|
String? storeId = '';
|
||
|
int? volume = 0;
|
||
|
String? skuNameStr = '';
|
||
|
String? createTime = '';
|
||
|
String? createUser = '';
|
||
|
String? id = '';
|
||
|
String? applyPrice = '';
|
||
|
List<SkuAttrList>? skuAttrList = [];
|
||
|
String? skuCode = '';
|
||
|
|
||
|
ShopHomeProductSkuVOList();
|
||
|
|
||
|
factory ShopHomeProductSkuVOList.fromJson(Map<String, dynamic> json) => _$ShopHomeProductSkuVOListFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$ShopHomeProductSkuVOListToJson(this);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class ShopHomeAttrList {
|
||
|
String? productId = '';
|
||
|
int? isDelete = 0;
|
||
|
bool? needImg = false;
|
||
|
List<ShopHomeAttrValueList>? attrValueList = [];
|
||
|
String? id = '';
|
||
|
String? attrName = '';
|
||
|
|
||
|
ShopHomeAttrList();
|
||
|
|
||
|
factory ShopHomeAttrList.fromJson(Map<String, dynamic> json) => _$ShopHomeAttrListFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$ShopHomeAttrListToJson(this);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class ShopHomeAttrValueList {
|
||
|
int? isDelete = 0;
|
||
|
String? attrId = '';
|
||
|
String? id = '';
|
||
|
String? attrValue = '';
|
||
|
String? attrValueImg = '';
|
||
|
|
||
|
ShopHomeAttrValueList();
|
||
|
|
||
|
factory ShopHomeAttrValueList.fromJson(Map<String, dynamic> json) => _$ShopHomeAttrValueListFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$ShopHomeAttrValueListToJson(this);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class QuickEntry {
|
||
|
String? img = '';
|
||
|
String? url = '';
|
||
|
String? id = '';
|
||
|
|
||
|
QuickEntry();
|
||
|
|
||
|
factory QuickEntry.fromJson(Map<String, dynamic> json) => _$QuickEntryFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$QuickEntryToJson(this);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class CategoryGroup {
|
||
|
List<GroupList>? groupList = [];
|
||
|
String? groupCommodityName = '';
|
||
|
String? name = '';
|
||
|
|
||
|
CategoryGroup();
|
||
|
|
||
|
factory CategoryGroup.fromJson(Map<String, dynamic> json) => _$CategoryGroupFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$CategoryGroupToJson(this);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class GroupList {
|
||
|
int? isDelete = 0;
|
||
|
String? updateUser = '';
|
||
|
String? updateTime = '';
|
||
|
String? groupImg = '';
|
||
|
int? sort = 0;
|
||
|
String? storeId = '';
|
||
|
String? groupName = '';
|
||
|
String? createTime = '';
|
||
|
int? kitchenGroup = 0;
|
||
|
String? printerId = '';
|
||
|
String? createUser = '';
|
||
|
int? isCharge = 0;
|
||
|
String? id = '';
|
||
|
|
||
|
GroupList();
|
||
|
|
||
|
factory GroupList.fromJson(Map<String, dynamic> json) => _$GroupListFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$GroupListToJson(this);
|
||
|
|
||
|
|
||
|
}
|