package com.adealink.weparty.order.data

import com.adealink.frame.network.data.PageReq
import com.google.gson.annotations.GsonNullable
import com.google.gson.annotations.SerializedName


data class PlaymateOrderListReq(
    @SerializedName("status") val status: Int = -1, //-1:全部状态
    @SerializedName("page") val page: PageReq,
)


data class PlaymateOrderListRes(
    @SerializedName("list") val list: List<PlaymateOrderData>,
    @GsonNullable
    @SerializedName("next") val next: String?,
)

data class PlaymateOrderData(
    @SerializedName("orderId") val orderId: String, //订单ID
    @SerializedName("avatar") val avatar: String, //
    @SerializedName("nickname") val nickname: String, //昵称
    @SerializedName("gender") val gender: Int, //性别
    @SerializedName("bizCategoryName") val bizCategoryName: String, //品类名称
    @SerializedName("categoryIcon") val categoryIcon: String, //品类图标
    @SerializedName("price") val price: Float, //单价
    @SerializedName("unit") val unit: String, //单位
    @SerializedName("purchaseQty") val purchaseQty: Int, //购买数量
    @SerializedName("status") val status: Int, //状态
    @SerializedName("createTime") val createTime: Long, //下单时间
    @GsonNullable
    @SerializedName("star") val star: Int?, //评分
    @SerializedName("refundApply") val refundApply: Boolean, //是否退款申请中
    @SerializedName("customerRemark") val customerRemark: String, //客户备注
)


data class PlaymateOrderListItemData(
    val data: PlaymateOrderData
)


data class UserOrderListReq(
    @SerializedName("status") val status: Int = -1, //-1:全部状态
    @SerializedName("page") val page: PageReq,
)


data class UserOrderListRes(
    @SerializedName("list") val list: List<UserOrderData>,
    @GsonNullable
    @SerializedName("next") val next: String?,
)

data class UserOrderData(
    @SerializedName("orderId") val orderId: String, //订单ID
    @SerializedName("avatar") val avatar: String, //
    @SerializedName("nickname") val nickname: String, //昵称
    @SerializedName("gender") val gender: Int, //性别
    @SerializedName("bizCategoryName") val bizCategoryName: String, //品类名称
    @SerializedName("categoryIcon") val categoryIcon: String, //品类图标
    @SerializedName("price") val price: Float, //单价
    @SerializedName("unit") val unit: String, //单位
    @SerializedName("purchaseQty") val purchaseQty: Int, //购买数量
    @SerializedName("status") val status: Int, //状态
    @SerializedName("createTime") val createTime: Long, //下单时间
    @GsonNullable
    @SerializedName("star") val star: Int?, //评分
    @SerializedName("refundApply") val refundApply: Boolean, //是否退款申请中
    @SerializedName("customerRemark") val customerRemark: String, //客户备注
)

data class UserOrderListItemData(
    val data: UserOrderData
)



data class CompleteOrderReq(
    @SerializedName("id") val id: String, //订单ID
)

data class CancelOrderReq(
    @SerializedName("id") val id: String, //订单ID
)

data class RefundApplyReq(
    @SerializedName("id") val id: String, //订单ID
)

data class EvaluateOrderReq(
    @SerializedName("orderId") val id: String, //订单ID
    @SerializedName("star") val star: Int, //评分
    @SerializedName("comment") val comment: String, //评价
)
