调度定时把文件上传到minio , 播放基于minio
This commit is contained in:
@@ -8,6 +8,8 @@ import com.rj.mapper.AudioManagementSegmentsMapper;
|
||||
import com.rj.service.IAudioManagementSegmentsService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 录音分段管理表 服务实现类
|
||||
@@ -26,5 +28,16 @@ public class AudioManagementSegmentsServiceImpl
|
||||
return super.update(entity, updateWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AudioManagementSegments> listSegmentsNeedingMinioUpload(int limit) {
|
||||
int safeLimit = Math.max(1, Math.min(limit, 500));
|
||||
return baseMapper.listSegmentsNeedingMinioUpload(safeLimit);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean updateAudioFileUrlByIdIgnoreTenant(String id, String audioFileUrl) {
|
||||
return baseMapper.updateAudioFileUrlByIdIgnoreTenant(id, audioFileUrl) > 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user