package shop.alien.entity.second.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 卖家交易评价VO
 * </p>
 *
 * @author system
 * @since 2025-11-18
 */
@Data
@JsonInclude
@ApiModel(value = "SellerEvaluationVo对象", description = "卖家交易评价VO")
public class SellerEvaluationVo {

    @ApiModelProperty(value = "交易记录ID")
    private Integer id;

    @ApiModelProperty(value = "交易编号")
    private String tradeNo;

    @ApiModelProperty(value = "商品ID")
    private Integer goodsId;

    @ApiModelProperty(value = "商品标题")
    private String goodsTitle;

    @ApiModelProperty(value = "商品封面图片")
    private String goodsHomeImage;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "交易金额")
    private BigDecimal transactionAmount;

    @ApiModelProperty(value = "买家ID")
    private Integer buyerId;

    @ApiModelProperty(value = "买家昵称")
    private String buyerName;

    @ApiModelProperty(value = "买家头像")
    private String buyerImage;

    @ApiModelProperty(value = "买家手机号")
    private String buyerPhone;

    @ApiModelProperty(value = "买家真实姓名")
    private String buyerRealName;

    @ApiModelProperty(value = "买家性别")
    private String buyerSex;

    @ApiModelProperty(value = "买家简介")
    private String buyerJianjie;

    @ApiModelProperty(value = "买家评价内容")
    private String buyerEvaluate;

    @ApiModelProperty(value = "买家评分（1-5分）")
    private Integer buyerRating;

    @ApiModelProperty(value = "买家信用积分")
    private Integer buyerCreditScore;

    @ApiModelProperty(value = "买家风控评分等级（A-E，O表示无记录）")
    private String buyerCreditLevel;

    @ApiModelProperty(value = "卖家ID")
    private Integer sellerId;

    @ApiModelProperty(value = "卖家昵称")
    private String sellerName;

    @ApiModelProperty(value = "卖家头像")
    private String sellerImage;

    @ApiModelProperty(value = "卖家信用积分")
    private Integer sellerCreditScore;

    @ApiModelProperty(value = "卖家风控评分等级（A-E，O表示无记录）")
    private String sellerCreditLevel;

    @ApiModelProperty(value = "交易时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date transactionTime;

    @ApiModelProperty(value = "交易状态  1-待确认  2-已拒绝  3-待交易  4-交易成功  5-交易失败  6-交易取消")
    private Integer tradeStatus;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;


    @ApiModelProperty(value = "买家完成交易时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date buyerCompleteTime;

    @ApiModelProperty(value = "卖家完成交易时间")
    @TableField("seller_complete_time")
    private Date sellerCompleteTime;


}

