chore(contracts): 同步契约(默认模型改用压缩包 sha256 匹配,补 sourceSha256 与确定性说明)
This commit is contained in:
@@ -331,8 +331,10 @@ paths:
|
||||
压缩包原件作为 `model-archive` 资产留存以便溯源。
|
||||
|
||||
转换成功且 `autoDefault` 不为 false 时,该模型会被置为全局默认模型
|
||||
(`isPrimary=1` + `status=published`),并把身份(名称/格式/产物 sha256)
|
||||
(`isPrimary=1` + `status=published`),并把身份(名称/格式/**压缩包 sha256**)
|
||||
写进源码 `web-server/src/config/default-model.ts`。
|
||||
注意:**转换产物不是字节级确定的**(同一份 zip 每次转换的产物 sha256 都不同),
|
||||
所以默认模型种子以压缩包 sha256 为匹配键,产物 sha256 只作记录。
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
@@ -774,7 +776,11 @@ components:
|
||||
fileSha256:
|
||||
type: string
|
||||
nullable: true
|
||||
description: 模型文件(转换产物)的 sha256,用于换库后定位默认模型
|
||||
description: 模型文件(转换产物)的 sha256 —— 每次转换都会变(Assimp 导出非字节级确定),仅作记录
|
||||
sourceSha256:
|
||||
type: string
|
||||
nullable: true
|
||||
description: 上传压缩包的 sha256(稳定);默认模型匹配以它为准,非压缩包上传为 null
|
||||
status: { $ref: '#/components/schemas/PublishStatus' }
|
||||
createdAt: { type: string, format: date-time }
|
||||
updatedAt: { type: string, format: date-time }
|
||||
|
||||
Reference in New Issue
Block a user