文字转语音

This commit is contained in:
spllzh
2025-10-04 19:52:06 +08:00
parent 24c00c22ab
commit 06730b656e
51 changed files with 5157 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ import java.util.UUID;
*/
@RestController
@RequestMapping("/api/consultingScenario")
@Tag(name = "咨询场景", description = "咨询场景相关接口")
@Tag(name = "咨询的问题分类", description = "咨询场景相关接口")
@Slf4j
public class ConsultingScenarioController {
@@ -220,9 +220,17 @@ public class ConsultingScenarioController {
queryWrapper.orderByDesc(ConsultingScenario::getCreatedAt);
Page<ConsultingScenario> pageResult = consultingScenarioService.page(page, queryWrapper);
result.put("code", 200);
result.put("data", pageResult.getRecords());
result.put("total", pageResult.getTotal());
result.put("current", pageResult.getCurrent());
result.put("size", pageResult.getSize());
result.put("pages", pageResult.getPages());
result.put("success", true);
result.put("message", "查询成功");
result.put("data", pageResult);
return ResponseEntity.ok(result);
} catch (Exception e) {
result.put("code", 500);
result.put("message", "查询异常: " + e.getMessage());