package com.ruoyi.system.domain;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.Size;
|
|
import com.alibaba.fastjson2.annotation.JSONField;
|
import com.ruoyi.common.core.web.domain.BaseEntity;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
import com.ruoyi.common.core.annotation.Excel;
|
import com.ruoyi.common.core.annotation.Excel.ColumnType;
|
|
/**
|
* 常见问题表 sys_faq
|
*
|
* @author ruoyi
|
*/
|
@ApiModel("常见问题")
|
public class SysFaq extends BaseEntity {
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 问题ID
|
*/
|
@ApiModelProperty(value = "问题ID")
|
@Excel(name = "问题ID", cellType = ColumnType.NUMERIC)
|
private Long faqId;
|
|
/**
|
* 问题标题
|
*/
|
@ApiModelProperty(value = "问题标题")
|
@Excel(name = "问题标题")
|
private String question;
|
|
/**
|
* 问题答案
|
*/
|
@ApiModelProperty(value = "问题答案")
|
@Excel(name = "问题答案")
|
private String answer;
|
|
/**
|
* 视频教程URL
|
*/
|
@ApiModelProperty(value = "视频教程URL")
|
@Excel(name = "视频教程URL")
|
private String videoUrl;
|
|
/**
|
* 排序号
|
*/
|
@ApiModelProperty(value = "排序号")
|
@Excel(name = "排序号", cellType = ColumnType.NUMERIC)
|
private Integer sortOrder;
|
|
/**
|
* 状态(0正常 1停用)
|
*/
|
@ApiModelProperty(value = "状态")
|
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
|
private String status;
|
|
public Long getFaqId() {
|
return faqId;
|
}
|
|
public void setFaqId(Long faqId) {
|
this.faqId = faqId;
|
}
|
|
@NotBlank(message = "问题标题不能为空")
|
@Size(min = 0, max = 500, message = "问题标题不能超过500个字符")
|
public String getQuestion() {
|
return question;
|
}
|
|
public void setQuestion(String question) {
|
this.question = question;
|
}
|
|
public String getAnswer() {
|
return answer;
|
}
|
|
public void setAnswer(String answer) {
|
this.answer = answer;
|
}
|
|
public String getVideoUrl() {
|
return videoUrl;
|
}
|
|
public void setVideoUrl(String videoUrl) {
|
this.videoUrl = videoUrl;
|
}
|
|
public Integer getSortOrder() {
|
return sortOrder;
|
}
|
|
public void setSortOrder(Integer sortOrder) {
|
this.sortOrder = sortOrder;
|
}
|
|
public String getStatus() {
|
return status;
|
}
|
|
public void setStatus(String status) {
|
this.status = status;
|
}
|
|
@Override
|
public String toString() {
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
.append("faqId", getFaqId())
|
.append("question", getQuestion())
|
.append("answer", getAnswer())
|
.append("sortOrder", getSortOrder())
|
.append("status", getStatus())
|
.append("createBy", getCreateBy())
|
.append("createTime", getCreateTime())
|
.append("updateBy", getUpdateBy())
|
.append("updateTime", getUpdateTime())
|
.toString();
|
}
|
}
|