package com.ruoyi.system.domain;

import java.util.List;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.GeneratedValue;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * feedback对象 sys_feedback
 * 
 * @author ruoyi
 * @date 2023-06-11
 */
@Data
@TableName(value = "sys_feedback")
@EqualsAndHashCode(callSuper = false)
public class SysFeedback
{
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @GeneratedValue
    /** id */
    private Long id;

    /** 问题反馈时间 */
    @JsonProperty
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "问题反馈时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cretim;

    /** 反馈用户 */
    @Excel(name = "反馈用户")
    private Long userId;

    /** 问题内容 */
    @Excel(name = "问题内容")
    private String content;

    /** response信息 */
    private List<SysResponse> sysResponseList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public List<SysResponse> getSysResponseList()
    {
        return sysResponseList;
    }

    public void setSysResponseList(List<SysResponse> sysResponseList)
    {
        this.sysResponseList = sysResponseList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cretim", getCretim())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("sysResponseList", getSysResponseList())
            .toString();
    }
}
