fmk
3 years ago
120 changed files with 5799 additions and 6688 deletions
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,153 +1,82 @@
|
||||
|
||||
class Goods { |
||||
String _id; |
||||
String _createTime; |
||||
String _createUser; |
||||
String _updateTime; |
||||
String _updateUser; |
||||
String _categoryId; |
||||
String _storeId; |
||||
String _name; |
||||
String _description; |
||||
String _worth; |
||||
String _price; |
||||
String _detail; |
||||
int _stock; |
||||
int _sales; |
||||
bool _isHot; |
||||
int _sortOrder; |
||||
int _state; |
||||
bool _canPick; |
||||
bool _canDelivery; |
||||
int _isDelete; |
||||
dynamic _categoryName; |
||||
String _mainImgPath; |
||||
List<String> _viceImgPaths; |
||||
String? id; |
||||
String? createTime; |
||||
String? createUser; |
||||
String? updateTime; |
||||
String? updateUser; |
||||
String? categoryId; |
||||
String? storeId; |
||||
String? name; |
||||
String? description; |
||||
String? worth; |
||||
String? price; |
||||
String? detail; |
||||
int? stock; |
||||
int? sales; |
||||
bool? isHot; |
||||
int? sortOrder; |
||||
int? state; |
||||
bool? canPick; |
||||
bool? canDelivery; |
||||
int? isDelete; |
||||
dynamic? categoryName; |
||||
String? mainImgPath; |
||||
List<String>? viceImgPaths; |
||||
|
||||
String get id => _id; |
||||
String get createTime => _createTime; |
||||
String get createUser => _createUser; |
||||
String get updateTime => _updateTime; |
||||
String get updateUser => _updateUser; |
||||
String get categoryId => _categoryId; |
||||
String get storeId => _storeId; |
||||
String get name => _name; |
||||
String get description => _description; |
||||
String get worth => _worth; |
||||
String get price => _price; |
||||
String get detail => _detail; |
||||
int get stock => _stock; |
||||
int get sales => _sales; |
||||
bool get isHot => _isHot; |
||||
int get sortOrder => _sortOrder; |
||||
int get state => _state; |
||||
bool get canPick => _canPick; |
||||
bool get canDelivery => _canDelivery; |
||||
int get isDelete => _isDelete; |
||||
dynamic get categoryName => _categoryName; |
||||
String get mainImgPath => _mainImgPath; |
||||
List<String> get viceImgPaths => _viceImgPaths; |
||||
|
||||
Goods({ |
||||
String id, |
||||
String createTime, |
||||
String createUser, |
||||
String updateTime, |
||||
String updateUser, |
||||
String categoryId, |
||||
String storeId, |
||||
String name, |
||||
String description, |
||||
String worth, |
||||
String price, |
||||
String detail, |
||||
int stock, |
||||
int sales, |
||||
bool isHot, |
||||
int sortOrder, |
||||
int state, |
||||
bool canPick, |
||||
bool canDelivery, |
||||
int isDelete, |
||||
dynamic categoryName, |
||||
String mainImgPath, |
||||
List<String> viceImgPaths}){ |
||||
_id = id; |
||||
_createTime = createTime; |
||||
_createUser = createUser; |
||||
_updateTime = updateTime; |
||||
_updateUser = updateUser; |
||||
_categoryId = categoryId; |
||||
_storeId = storeId; |
||||
_name = name; |
||||
_description = description; |
||||
_worth = worth; |
||||
_price = price; |
||||
_detail = detail; |
||||
_stock = stock; |
||||
_sales = sales; |
||||
_isHot = isHot; |
||||
_sortOrder = sortOrder; |
||||
_state = state; |
||||
_canPick = canPick; |
||||
_canDelivery = canDelivery; |
||||
_isDelete = isDelete; |
||||
_categoryName = categoryName; |
||||
_mainImgPath = mainImgPath; |
||||
_viceImgPaths = viceImgPaths; |
||||
} |
||||
Goods(); |
||||
|
||||
Goods.fromJson(dynamic json) { |
||||
_id = json["id"]; |
||||
_createTime = json["createTime"]; |
||||
_createUser = json["createUser"]; |
||||
_updateTime = json["updateTime"]; |
||||
_updateUser = json["updateUser"]; |
||||
_categoryId = json["categoryId"]; |
||||
_storeId = json["storeId"]; |
||||
_name = json["name"]; |
||||
_description = json["description"]; |
||||
_worth = json["worth"]; |
||||
_price = json["price"]; |
||||
_detail = json["detail"]; |
||||
_stock = json["stock"]; |
||||
_sales = json["sales"]; |
||||
_isHot = json["isHot"]; |
||||
_sortOrder = json["sortOrder"]; |
||||
_state = json["state"]; |
||||
_canPick = json["canPick"]; |
||||
_canDelivery = json["canDelivery"]; |
||||
_isDelete = json["isDelete"]; |
||||
_categoryName = json["categoryName"]; |
||||
_mainImgPath = json["mainImgPath"]; |
||||
_viceImgPaths = json["viceImgPaths"] != null ? json["viceImgPaths"].cast<String>() : []; |
||||
this.id = json["id"]; |
||||
this.createTime = json["createTime"]; |
||||
this.createUser = json["createUser"]; |
||||
this.updateTime = json["updateTime"]; |
||||
this.updateUser = json["updateUser"]; |
||||
this.categoryId = json["categoryId"]; |
||||
this.storeId = json["storeId"]; |
||||
this.name = json["name"]; |
||||
this.description = json["description"]; |
||||
this.worth = json["worth"]; |
||||
this.price = json["price"]; |
||||
this.detail = json["detail"]; |
||||
this.stock = json["stock"]; |
||||
this.sales = json["sales"]; |
||||
this.isHot = json["isHot"]; |
||||
this.sortOrder = json["sortOrder"]; |
||||
this.state = json["state"]; |
||||
this.canPick = json["canPick"]; |
||||
this.canDelivery = json["canDelivery"]; |
||||
this.isDelete = json["isDelete"]; |
||||
this.categoryName = json["categoryName"]; |
||||
this.mainImgPath = json["mainImgPath"]; |
||||
this.viceImgPaths = json["viceImgPaths"] != null ? json["viceImgPaths"].cast<String>() : []; |
||||
} |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
var map = <String, dynamic>{}; |
||||
map["id"] = _id; |
||||
map["createTime"] = _createTime; |
||||
map["createUser"] = _createUser; |
||||
map["updateTime"] = _updateTime; |
||||
map["updateUser"] = _updateUser; |
||||
map["categoryId"] = _categoryId; |
||||
map["storeId"] = _storeId; |
||||
map["name"] = _name; |
||||
map["description"] = _description; |
||||
map["worth"] = _worth; |
||||
map["price"] = _price; |
||||
map["detail"] = _detail; |
||||
map["stock"] = _stock; |
||||
map["sales"] = _sales; |
||||
map["isHot"] = _isHot; |
||||
map["sortOrder"] = _sortOrder; |
||||
map["state"] = _state; |
||||
map["canPick"] = _canPick; |
||||
map["canDelivery"] = _canDelivery; |
||||
map["isDelete"] = _isDelete; |
||||
map["categoryName"] = _categoryName; |
||||
map["mainImgPath"] = _mainImgPath; |
||||
map["viceImgPaths"] = _viceImgPaths; |
||||
map["id"] = this.id; |
||||
map["createTime"] = this.createTime; |
||||
map["createUser"] = this.createUser; |
||||
map["updateTime"] = this.updateTime; |
||||
map["updateUser"] = this.updateUser; |
||||
map["categoryId"] = this.categoryId; |
||||
map["storeId"] = this.storeId; |
||||
map["name"] = this.name; |
||||
map["description"] = this.description; |
||||
map["worth"] = this.worth; |
||||
map["price"] = this.price; |
||||
map["detail"] = this.detail; |
||||
map["stock"] = this.stock; |
||||
map["sales"] = this.sales; |
||||
map["isHot"] = this.isHot; |
||||
map["sortOrder"] = this.sortOrder; |
||||
map["state"] = this.state; |
||||
map["canPick"] = this.canPick; |
||||
map["canDelivery"] = this.canDelivery; |
||||
map["isDelete"] = this.isDelete; |
||||
map["categoryName"] = this.categoryName; |
||||
map["mainImgPath"] = this.mainImgPath; |
||||
map["viceImgPaths"] = this.viceImgPaths; |
||||
return map; |
||||
} |
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue