AI问答代码框架
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user