You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fu-hsi-service/src/main/java/com/supervision/police/controller/LongTextController.java

33 lines
1.0 KiB
Java

4 months ago
package com.supervision.police.controller;
import com.supervision.common.domain.R;
import com.supervision.police.service.LongTextService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @Authorlongbao
* @Date2024/12/10 10:20
* @Description: QA
*/
@Slf4j
@RestController
@RequestMapping("/answerLongText")
public class LongTextController {
@Autowired
private LongTextService longTextService;
@Operation(summary = "笔录长文本三元组提取")
@GetMapping("/tripletExtraction")
public R<Object> answerLongTextTripletExtraction(String noteRecordId) {
return longTextService.qaAnswerLongTextTripletExtractionByNoteRecordId(noteRecordId);
}
}