package com.zswc.creativity.model

import com.ysnows.base.inter.IModel
import java.io.Serializable

/**
 *Created by shihuiyun
 *on 2020/9/14
 * 订单状态 info_state：10->待支付  20->待接单  30->进行中 40-> 已完成  100->已取消
 * is_pay:0未支付 1已支付
 *
 * type：1一装一卸  2一装多卸
 */
data class DataInfoBean(var goods_type: List<SelectData>, var nums_type: List<String>,
                        var car_type: List<CarTypeBean>, var order: OrderBean,
                        var default_send:DefaultSdendBean,
                         var default_receive:DefaultReceiveBean,
                         var company: CompanyBean,
                        var user_order:UserOrderBean

        ) : IModel,Serializable {



    data class DefaultSdendBean(var addr_id:String,var uid:String ,var lat:String,var lng:String,
    var province:ProvinceBean,var city:CityBean,var area:AreaBean,var address:String,var name:String,
    var mobile:String,var type:String,var is_default:String,var create_time:String,var update_time:String):IModel,Serializable{
        data class ProvinceBean(var name:String,var code:String):IModel,Serializable{}
        data class CityBean(var name:String,var code:String):IModel,Serializable{}
        data class AreaBean(var name:String,var code:String):IModel,Serializable{}

    }
    data class DefaultReceiveBean(var addr_id:String, var uid:String, var lat:String, var lng:String,
                                  var province: ProvinceBean, var city: CityBean, var area: AreaBean, var address:String, var name:String,
                                  var mobile:String, var type:String, var is_default:String, var create_time:String, var update_time:String):IModel,Serializable{

        data class ProvinceBean(var name:String,var code:String):IModel,Serializable{}
        data class CityBean(var name:String,var code:String):IModel,Serializable{}
        data class AreaBean(var name:String,var code:String):IModel,Serializable{}

    }


    data class CarTypeBean(var type_id: String, var type_name: String,
                           var type_icon: String, var type_img: String,var weight:String,
                           var width:String,var height:String,var length:String,
                           var volume:String

    ) : IModel ,Serializable{

    }

    data class OrderBean(var info_id: String, var info_state: Int,
                         var info_sn: String, var is_pay: String,
                         var uid: String, var price: String,
                         var total: String,var all_total: String,
                         var true_total: String,
                         var nums: String, var is_public: String,
                         var driver: List<String>,
                         var is_insurance: Int, var type: Int,
                         var data: String, var pay_time: String,
                         var create_time: String, var update_time: String,
                         var delete_time: String, var send: List<SendBean>,
                         var receive: List<ReceiveBean>,
                         var type_info: TypeInfoBean,var car_nums:String,
                         var qrcode:String
    ) : IModel ,Serializable{


        data class TypeInfoBean(var type_id: String, var type_name: String,  var length: String,

                                ): IModel,Serializable{
        }
        data class ReceiveBean(var data_id: String, var info_id: String, var lat: String,
                               var lng: String, var address: String, var name: String, var mobile: String, var goods: String,
                               var goods_type: GoodsTypeBean, var nums: String, var nums_type: NumsTypeBean, var price: String, var total: String,
                               var time: String, var type: String, var create_time: String, var update_time: String, var delete_time: String,
                               var province: ProvinceBean, var city: CityBean, var area: AreaBean
        ) : IModel ,Serializable{
            data class ProvinceBean(var name: String, var code: String) : IModel ,Serializable{

            }

            data class CityBean(var name: String, var code: String) : IModel,Serializable {

            }

            data class AreaBean(var name: String, var code: String) : IModel,Serializable {

            }

            data class GoodsTypeBean(var name: String, var code: String) : IModel ,Serializable{

            }

            data class NumsTypeBean(var name: String, var code: String) : IModel ,Serializable{

            }


        }

        data class SendBean(var data_id: String, var info_id: String, var lat: String,
                            var lng: String, var address: String, var name: String, var mobile: String,
                            var time: String, var type: String,
                            var province: ProvinceBean, var city: CityBean, var area: AreaBean
        ) : IModel ,Serializable{

            data class ProvinceBean(var name: String, var code: String) : IModel ,Serializable{

            }

            data class CityBean(var name: String, var code: String) : IModel,Serializable {

            }

            data class AreaBean(var name: String, var code: String) : IModel ,Serializable{

            }

        }


    }

    data class CompanyBean(var company_name: String,var info_nums: String,var name: String,
                           var mobile: String,var good: String,var hpl: String,var avatar:String
    ):IModel,Serializable{

    }

    data class UserOrderBean(var order_id:String,var order_sn:String,
                             var order_state:Int,var money:String
    ):IModel,Serializable{

    }
}
