package com.ruoyi.system.domain;

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

import javax.persistence.GeneratedValue;
import java.util.List;

/**
 * 留言信息对象 pos_appeal
 *
 * @author ruoyi
 * @date 2024-07-07
 */
@Data
@TableName(value = "pos_appeal")
@EqualsAndHashCode(callSuper = false)
public class PosAppeal
{
    private static final long serialVersionUID = 1L;

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

    /** 订单号 */
    @Excel(name = "订单号")
    private String ddId;

    private Long userId;

    /** 用户类型 */
    @Excel(name = "用户类型")
    private String userType;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickName;

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

    /** 上传图片 */
    private String imgs;

    /** 反馈意见 */
    private String feedBack;

    /** 使用情况 */
    private String useCase;

    private transient List<PosAppeal> child;


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

    public Long getId()
    {
        return id;
    }
    public void setDdId(String ddId)
    {
        this.ddId = ddId;
    }

    public String getDdId()
    {
        return ddId;
    }
    public void setUserType(String userType)
    {
        this.userType = userType;
    }

    public String getUserType()
    {
        return userType;
    }
    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public String getNickName()
    {
        return nickName;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setImgs(String imgs)
    {
        this.imgs = imgs;
    }

    public String getImgs()
    {
        return imgs;
    }

    public String getFeedBack() {
        return feedBack;
    }

    public void setFeedBack(String feedBack) {
        this.feedBack = feedBack;
    }

    public String getUseCase() {
        return useCase;
    }

    public void setUseCase(String useCase) {
        this.useCase = useCase;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ddId", getDdId())
            .append("userType", getUserType())
            .append("nickName", getNickName())
            .append("content", getContent())
            .append("imgs", getImgs())
            .append("feedBack", getFeedBack())
            .append("useCase", getUseCase())
            .toString();
    }
}
