初始化项目
This commit is contained in:
32
lib/model/order.dart
Normal file
32
lib/model/order.dart
Normal file
@@ -0,0 +1,32 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'order.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class OrderModel {
|
||||
String? goods_name; //商品名称
|
||||
String? goods_id; //商品id
|
||||
String? id; //订单id
|
||||
double? price; //支付金额
|
||||
String? tel; //电话号码
|
||||
String? addition_address; //详细地址
|
||||
// DateTime? create_time; //创建时间
|
||||
int? create_time; //创建时间
|
||||
String? desc; //审核意见
|
||||
String? create_user_id; //下单用户id
|
||||
String? create_user_name; //下单用户名称
|
||||
int? order_status; //订单状态
|
||||
String? delivery_status; //物流状态
|
||||
int? order_num; //商品数量
|
||||
String? province; //省份
|
||||
String? city; //城市
|
||||
String? county; //区域
|
||||
String? street; //街道
|
||||
double? goods_price; //商品单价
|
||||
String? pay_status; //支付状态
|
||||
|
||||
OrderModel();
|
||||
static OrderModel fromJson(Map<String, dynamic> json) =>
|
||||
_$OrderModelFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$OrderModelToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user