package com.ruoyi.system.domain;

import java.util.Date;

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

import javax.persistence.GeneratedValue;

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

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

    /** 回复时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "回复时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cretim;

    /** 问题id */
    @Excel(name = "问题id")
    private Long feId;

    /** 回复内容 */
    @Excel(name = "回复内容")
    private String content;

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

    public Long getId() 
    {
        return id;
    }
    public void setCretim(Date cretim) 
    {
        this.cretim = cretim;
    }

    public Date getCretim() 
    {
        return cretim;
    }
    public void setFeId(Long feId) 
    {
        this.feId = feId;
    }

    public Long getFeId() 
    {
        return feId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

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