package com.izouma.dingdong.domain.backstage;

import com.izouma.dingdong.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import java.time.LocalDateTime;

@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Builder
//@JsonIgnoreProperties(value = { "hibernateLazyInitializer"})
@ApiModel(value = "投诉表", description = "投诉表")
public class Complaint extends BaseEntity {
    @ApiModelProperty(value = "订单ID", name = "orderId")
    private Long orderId;

    //商家或骑手
    @ApiModelProperty(value = "投诉目标", name = "target")
    private String target;

    @ApiModelProperty(value = "投诉类型")
    private String type;

    @ApiModelProperty(value = "图片", name = "img")
    private String img;

    @ApiModelProperty(value = "内容", name = "content")
    private String content;

    @ApiModelProperty(value = "是否解决",name = "resolve")
    private Boolean resolve;

    @ApiModelProperty(value = "投诉时间")
    private LocalDateTime time;
}
