package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.*;
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.io.Serializable;
import java.util.Date;

/**
 * 意见反馈表
 */
@Data
@JsonInclude
@TableName("life_feedback")
@ApiModel(value = "LifeFeedback对象", description = "意见反馈")
public class LifeFeedback implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "反馈来源:0-用户端,1-商家端")
    @TableField("feedback_source")
    private Integer feedbackSource;

    @ApiModelProperty(value = "反馈方式:0-用户反馈,1-AI识别")
    @TableField("feedback_way")
    private Integer feedbackWay;

    @ApiModelProperty(value = "反馈类型:0-bug反馈,1-优化反馈,2-新增功能反馈")
    @TableField("feedback_type")
    private Integer feedbackType;

    @ApiModelProperty(value = "反馈内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "联系方式(手机号或邮箱)")
    @TableField("contact_way")
    private String contactWay;

    @ApiModelProperty(value = "反馈时间")
    @TableField("feedback_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date feedbackTime;

    @ApiModelProperty(value = "工作人员ID(关联life_sys)")
    @TableField("staff_id")
    private Integer staffId;

    @ApiModelProperty(value = "处理状态:0-处理中,1-已解决")
    @TableField("handle_status")
    private Integer handleStatus;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
}

