| | |
| | | package com.example.jz.modle.entity; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | |
| | | * @author makejava |
| | | * @since 2022-07-11 16:35:57 |
| | | */ |
| | | @SuppressWarnings("serial") |
| | | @Data |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @TableName("common_question") |
| | | public class CommonQuestion extends Model<CommonQuestion> { |
| | | //常见问题id |
| | | private Integer questionId; |
| | | @ApiModelProperty(value = "常见问题id") |
| | | private Integer id; |
| | | //常见问题关键字 |
| | | @ApiModelProperty(value = "常见问题关键字") |
| | | private String questionTitle; |
| | | //状态,0为未发布,1为发布,2为下架 |
| | | @ApiModelProperty(value = "状态,0为未发布,1为发布,2为下架") |
| | | private Integer status; |
| | | //匹配问题 |
| | | @ApiModelProperty(value = "匹配问题") |
| | | private String matchQuestion; |
| | | //问题解答 |
| | | @ApiModelProperty(value = "问题解答") |
| | | private String answer; |
| | | //创建人 |
| | | private String creator; |
| | | @ApiModelProperty(value = "创建人") |
| | | private Integer creator; |
| | | //创建时间 |
| | | private Date createTime; |
| | | private Date ctime; |
| | | //发布时间 |
| | | private Date releaseTime; |
| | | |
| | | |
| | | public Integer getQuestionId() { |
| | | return questionId; |
| | | } |
| | | |
| | | public void setQuestionId(Integer questionId) { |
| | | this.questionId = questionId; |
| | | } |
| | | |
| | | public String getQuestionTitle() { |
| | | return questionTitle; |
| | | } |
| | | |
| | | public void setQuestionTitle(String questionTitle) { |
| | | this.questionTitle = questionTitle; |
| | | } |
| | | |
| | | public Integer getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(Integer status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getMatchQuestion() { |
| | | return matchQuestion; |
| | | } |
| | | |
| | | public void setMatchQuestion(String matchQuestion) { |
| | | this.matchQuestion = matchQuestion; |
| | | } |
| | | |
| | | public String getAnswer() { |
| | | return answer; |
| | | } |
| | | |
| | | public void setAnswer(String answer) { |
| | | this.answer = answer; |
| | | } |
| | | |
| | | public String getCreator() { |
| | | return creator; |
| | | } |
| | | |
| | | public void setCreator(String creator) { |
| | | this.creator = creator; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public Date getReleaseTime() { |
| | | return releaseTime; |
| | | } |
| | | |
| | | public void setReleaseTime(Date releaseTime) { |
| | | this.releaseTime = releaseTime; |
| | | } |
| | | |
| | | /** |
| | | * 获取主键值 |
| | |
| | | */ |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.questionId; |
| | | return this.id; |
| | | } |
| | | } |
| | | |
| | | } |