feat/vtk-3d-view #7
|
|
@ -354,6 +354,18 @@ void Api3dRepository::createSlice(const SliceSpec& spec, const std::string& name
|
|||
slices_[id] = StoredSlice{
|
||||
spec, name,
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue