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.

54 lines
1.9 KiB

4 years ago
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"]}
4 years ago
bool canDelivery;
bool canPick;
String categoryId;
4 years ago
String categoryName;
String couponId;
4 years ago
String createTime;
dynamic createUser;
4 years ago
String description;
String id;
dynamic isDelete;
4 years ago
bool isHot;
String mainImgPath;
String name;
String price;
dynamic sales;
dynamic sortOrder;
dynamic state;
dynamic stock;
String storeId;
4 years ago
String updateTime;
String updateUser;
4 years ago
List<String> viceImgPaths;
String worth; //double
4 years ago
factory Goods.fromJson(Map<String, dynamic> json) => _$GoodsFromJson(json);
Map<String, dynamic> toJson() => _$GoodsToJson(this);
}