|
|
|
@ -7,6 +7,7 @@ import com.hnac.gglm.bigmodel.maintenance.vo.AnswerCommentRequest;
|
|
|
|
|
import com.hnac.gglm.bigmodel.maintenance.vo.AnswerPraiseRequest; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
import io.swagger.annotations.ApiParam; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
@ -50,7 +51,7 @@ public class QuestionAnswerCommentController {
|
|
|
|
|
@GetMapping("/listByQuestionId") |
|
|
|
|
@ApiOperation(value = "根据问题id获取评论列表") |
|
|
|
|
@ApiOperationSupport(order = 4) |
|
|
|
|
public R<List<QuestionAnswerCommentEntity>> listByQuestionId(String questionId) { |
|
|
|
|
public R<List<QuestionAnswerCommentEntity>> listByQuestionId(@RequestParam @ApiParam("问题id") String questionId) { |
|
|
|
|
return R.data(questionAnswerCommentService.listByQuestionId(questionId)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|