|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.hnac.gglm.bigmodel.maintenance.vo; |
|
|
|
package com.hnac.gglm.bigmodel.maintenance.vo; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.hnac.gglm.bigmodel.maintenance.entity.QuestionAnswerCommentEntity; |
|
|
|
import io.swagger.annotations.ApiModel; |
|
|
|
import io.swagger.annotations.ApiModel; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
import lombok.Data; |
|
|
|
import lombok.Data; |
|
|
@ -20,4 +21,12 @@ public class AnswerPraiseRequest { |
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "点赞,0取消点赞,1点赞") |
|
|
|
@ApiModelProperty(value = "点赞,0取消点赞,1点赞") |
|
|
|
private Integer praise; |
|
|
|
private Integer praise; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public QuestionAnswerCommentEntity toEntity() { |
|
|
|
|
|
|
|
QuestionAnswerCommentEntity entity = new QuestionAnswerCommentEntity(); |
|
|
|
|
|
|
|
entity.setChatId(chartId); |
|
|
|
|
|
|
|
entity.setQuestionId(questionId); |
|
|
|
|
|
|
|
entity.setPraise(praise); |
|
|
|
|
|
|
|
return entity; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|