|
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
|
|
|
|
part 'goods.g.dart';
|
|
|
|
|
|
|
|
@JsonSerializable()
|
|
|
|
class Goods {
|
|
|
|
Goods();
|
|
|
|
//{"id":"1",
|
|
|
|
//"createTime":"2021-06-24 11:24:14",
|
|
|
|
//"createUser":null,
|
|
|
|
//"updateTime":"2021-06-24 11:25:42",
|
|
|
|
//"updateUser":null,
|
|
|
|
//"categoryId":"1",
|
|
|
|
//"storeId":"1174",
|
|
|
|
//"name":"包包包1111",
|
|
|
|
//"description":"包治百病",
|
|
|
|
//"worth":"999.00",
|
|
|
|
//"price":"77","stock":4563,
|
|
|
|
//"sales":65,"isHot":true,
|
|
|
|
//"sortOrder":0,"state":1,
|
|
|
|
//"couponId":"0","canPick":false,
|
|
|
|
//"canDelivery":false,
|
|
|
|
//"isDelete":0,"categoryName":"美食",
|
|
|
|
//"mainImgPath":"https://pos.upload.gznl.top/0000/2020/10/e59fecd9-4533-463b-bef3-59f02b74e58f.jpg",
|
|
|
|
//"viceImgPaths":["https://pos.upload.gznl.top/0000/2020/10/9c7beb43-9758-44d3-9cde-e09f979faeab.jpg"]}
|
|
|
|
// {"id":"3","createTime":"2021-06-24 11:25:42","createUser":null,"updateTime":"2021-06-26 14:19:49","updateUser":null,"categoryId":"2","storeId":"1174","name":"包包包3333","description":"包治百病","worth":"990.00","price":"66","stock":48567,"sales":78,"isHot":true,"sortOrder":0,"state":1,"couponId":"0","canPick":true,"canDelivery":false,"isDelete":0,"categoryName":"办公","mainImgPath":"https://pos.upload.gznl.top/0000/2020/10/d0bacc2c-efb8-421b-98e0-82d2b6073235.jpg","viceImgPaths":["https://pos.upload.gznl.top/0000/2020/10/d0bacc2c-efb8-421b-98e0-82d2b6073235.jpg"]}
|
|
|
|
bool canDelivery;
|
|
|
|
bool canPick;
|
|
|
|
String categoryId;
|
|
|
|
String categoryName;
|
|
|
|
String couponId;
|
|
|
|
String createTime;
|
|
|
|
dynamic createUser;
|
|
|
|
String description;
|
|
|
|
String id;
|
|
|
|
dynamic isDelete;
|
|
|
|
bool isHot;
|
|
|
|
String mainImgPath;
|
|
|
|
String name;
|
|
|
|
String price;
|
|
|
|
dynamic sales;
|
|
|
|
dynamic sortOrder;
|
|
|
|
dynamic state;
|
|
|
|
dynamic stock;
|
|
|
|
String storeId;
|
|
|
|
String updateTime;
|
|
|
|
String updateUser;
|
|
|
|
List<String> viceImgPaths;
|
|
|
|
String worth; //double
|
|
|
|
|
|
|
|
factory Goods.fromJson(Map<String, dynamic> json) => _$GoodsFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$GoodsToJson(this);
|
|
|
|
}
|