Browse Source

add:问题点赞和评论

zhongwei
luyie 2 months ago
parent
commit
e598966e6f
  1. 3
      hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/controller/QuestionAnswerCommentController.java

3
hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/controller/QuestionAnswerCommentController.java

@ -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));
}

Loading…
Cancel
Save