package com.sqx.modules.errand.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sqx.modules.app.entity.UserEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("errand_evaluate")
public class ErrandEvaluate implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)

    @ApiModelProperty("主键id")
    private Long evaluateId;


    @ApiModelProperty("用户id")
    private Long userId;


    @ApiModelProperty("骑手id")
    private Long riderUserId;


    @ApiModelProperty("订单号")
    private String indentNumber;


    @ApiModelProperty("评价内容")
    private String evaluateMessage;


    @ApiModelProperty("是否满意 0：满意 1：不满意")
    private Integer satisfactionFlag;


    @ApiModelProperty("评价时间")
    private String createTime;

    @ApiModelProperty("评论图")
    private String image;

    /**
     * 用户昵称
     */
    @TableField(exist = false)
    private String nickName;

    /**
     * 用户头像
     */
    @TableField(exist = false)
    private String avatar;

    @TableField(exist = false)
    private TbIndent indent;

    @TableField(exist = false)
    private UserEntity riderUser;

    @TableField(exist = false)
    private UserEntity user;

    public ErrandEvaluate() {}
}