AI问答代码框架

This commit is contained in:
2026-03-29 21:34:18 +08:00
parent 058150a751
commit a91d850de9
15 changed files with 785 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ import java.util.Locale;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import org.springframework.mock.web.MockMultipartFile;
import org.springframework.web.multipart.MultipartFile;
@@ -62,6 +63,9 @@ public class AudioManagementSegmentsController {
@RequestBody AudioManagementSegments segment) {
Map<String, Object> result = new HashMap<>();
try {
if (segment.getId() == null || segment.getId().trim().isEmpty()) {
segment.setId(UUID.randomUUID().toString());
}
if (segment.getCreateTime() == null) {
segment.setCreateTime(LocalDateTime.now());
}