feat(phase-3,4): 证据件服务端落点与两前端大档分片接线
- 后端新增 evidence 模块(V182 证据表/独立桶/超管读取面/内部登记)与 application.yml evidence 块;管理员四端点逐个 requireSuperAdmin。 - 分片通道补 @Scheduled 回收与 LocalTempCleanupService 的 chunk-uploads 覆盖; 版本/教程 confirm 接受 file_key,把拼装件搬进 client 桶后落库。 - 用户端 9MB 视频改走 uploadTempFileToJava 分片;后管版本/教程 >8MB 走分片, 小文件仍走原 presign 直传。 - 激活 Phase 3/4 后端与两前端预置契约。
This commit is contained in:
@@ -25,9 +25,8 @@ vi.mock('@/shared/api/http.ts', () => ({
|
||||
|
||||
import { uploadImageVideoMedia } from '@/shared/api/types/modules/image-video.ts'
|
||||
|
||||
const SKIP = 'Pending Phase 4: 断点续传大档接线(AC-11)'
|
||||
|
||||
describe.skip('AC-11 用户端大档上传', () => {
|
||||
describe('AC-11 用户端大档上传', () => {
|
||||
it('9MB 视频必须走分片 init', async () => {
|
||||
const payload = {
|
||||
success: true,
|
||||
|
||||
@@ -20,9 +20,8 @@ const here = dirname(fileURLToPath(import.meta.url))
|
||||
const root = resolve(here, '..')
|
||||
const srcFiles = listSourceFiles(resolve(root, 'src'))
|
||||
const rel = (path: string) => relative(root, path).split(sep).join('/')
|
||||
const SKIP = 'Pending Phase 4: 断点续传大档接线(AC-11)'
|
||||
|
||||
test('uploadTempFileToJava 必须有生产调用方(调用方数 ≥1)', { skip: SKIP }, () => {
|
||||
test('uploadTempFileToJava 必须有生产调用方(调用方数 ≥1)', () => {
|
||||
assert.ok(srcFiles.length > 50, `源码扫描面异常:只扫到 ${srcFiles.length} 个文件`)
|
||||
const callers = srcFiles
|
||||
.map(rel)
|
||||
@@ -34,7 +33,7 @@ test('uploadTempFileToJava 必须有生产调用方(调用方数 ≥1)', { s
|
||||
)
|
||||
})
|
||||
|
||||
test('图片视频大档上传必须接分片通道', { skip: SKIP }, () => {
|
||||
test('图片视频大档上传必须接分片通道', () => {
|
||||
const file = 'src/shared/api/types/modules/image-video.ts'
|
||||
const source = readFileSync(resolve(root, file), 'utf-8')
|
||||
assert.match(
|
||||
|
||||
Reference in New Issue
Block a user