文字转语音
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user