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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@ApiModel("errand_complaint")
public class ErrandComplaint implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)

    @ApiModelProperty("投诉id")
    private Long complaintId;

    @ApiModelProperty("1：用户投诉  2：商户投诉")
    private Integer type;

    @ApiModelProperty("商户投诉类型id")
    private Long shopIllegalId;


    @ApiModelProperty("订单类型（1：帮我送；2：帮我取；3：同城帮买；4：同城服务 5：同城外卖）")
    private String indentType;


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

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

    @ApiModelProperty("商户id")
    private Long shopId;


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


    @ApiModelProperty("投诉类型id")
    private Long illegalId;


    @ApiModelProperty("扣款金额")
    private BigDecimal deductMoney;


    @ApiModelProperty("违规说明")
    private String wrongExplain;


    @ApiModelProperty("投诉时间")
    private String complaintTime;


    @ApiModelProperty("本投诉状态（1可申诉；2申诉中；3申诉未通过；4申诉通过；5发起投诉；6投诉被拒绝）")
    private Integer complaintState;


    @ApiModelProperty("管理员审核理由")
    private String auditMessage;


    @ApiModelProperty("申诉理由")
    private String appealMessage;


    @ApiModelProperty("申诉时间")
    private String appealTime;

    @ApiModelProperty("用户投诉违规名称")
    @TableField(exist = false)
    private String illegal;

    @ApiModelProperty("商户投诉罚款金额")
    @TableField(exist = false)
    private String forfeitMoney;

    @ApiModelProperty("商户投诉违规名称")
    @TableField(exist = false)
    private String shopIllegal;

    @ApiModelProperty("商户投诉罚款金额")
    @TableField(exist = false)
    private String shopForfeitMoney;

    @ApiModelProperty("骑手昵称")
    @TableField(exist = false)
    private String nickName;

    @ApiModelProperty("起点")
    @TableField(exist = false)
    private String shopAddressDetail;

    @ApiModelProperty("终点")
    @TableField(exist = false)
    private String userAddressDetail;

    @TableField(exist = false)
    private String avatar;

    public ErrandComplaint() {}
}