feat(3d): createSlice 打印 SliceGenerateRequest 请求体到 log(供后端联调)
createVolume(req) 已打印 [volreq] 请求体;补 createSlice 打印 [slicereq] registerSlice 请求体 (对齐 SliceGenerateRequest / POST /business/dsObject/slice/generate):volumeDsId/name/axis/ 三点位姿 origin·point1·point2/colorScaleId。projectId 由真实请求层据当前项目填(mock 无上下文留空)。 构建:app 链接通过
This commit is contained in:
parent
7ff6f184e9
commit
a6cdd2ff80
|
|
@ -354,6 +354,18 @@ void Api3dRepository::createSlice(const SliceSpec& spec, const std::string& name
|
||||||
slices_[id] = StoredSlice{
|
slices_[id] = StoredSlice{
|
||||||
spec, name,
|
spec, name,
|
||||||
QDateTime::currentDateTime().toString(QStringLiteral("yyyy-MM-dd HH:mm")).toStdString()};
|
QDateTime::currentDateTime().toString(QStringLiteral("yyyy-MM-dd HH:mm")).toStdString()};
|
||||||
|
// 打印切片登记请求体(对齐 SliceGenerateRequest,端点 POST /business/dsObject/slice/generate)供后端联调。
|
||||||
|
// projectId 由真实请求层据当前项目填充(mock 仓储无项目上下文,此处留空)。
|
||||||
|
SliceGenerateRequest req;
|
||||||
|
req.volumeDsId = spec.volumeDsId;
|
||||||
|
req.name = name;
|
||||||
|
req.axis = spec.axis;
|
||||||
|
req.origin = spec.origin;
|
||||||
|
req.point1 = spec.point1;
|
||||||
|
req.point2 = spec.point2;
|
||||||
|
req.colorScaleId = spec.colorScaleId;
|
||||||
|
qInfo().noquote() << "[slicereq] registerSlice 请求体:"
|
||||||
|
<< QJsonDocument(req.toJson()).toJson(QJsonDocument::Compact);
|
||||||
onOk(id);
|
onOk(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue