package com.cpop.mall.business.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Id;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author DB
 * @createTime 2023/10/26 17:02
 * @description
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "商城商品评价分页返回对象")
public class ProductEvaluateVo implements Serializable {

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private String id;

    /**
     * 产品id
     */
    @ApiModelProperty("产品id")
    private String productId;

    /**
     * 订单id
     */
    @ApiModelProperty("订单id")
    private String orderId;

    /**
     * 评价
     */
    @ApiModelProperty("评价")
    private String evaluate;

    /**
     * 星
     */
    @ApiModelProperty("星")
    private Double start;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
}
