{
"id": "1", // id
"companyId": 1001, // 客户 ID
"baseId": 2001, // 基础 ID
"templateName": "Standard Template", // 模版名称
"inputMethod": 1, // 录入方式:1、手动 2、批量录入
"maintNumber": "MN001", // 保养标准编号
"maintDesc": "Maintenance description", // 保养标准说明
"maintPart": "Engine", // 保养部位
"projectContent": "Check oil level, clean air filter", // 项目内容
"methodsAndStandards": "Follow the manual", // 作业方法和标准
"pointRecord": "1", // 保养记录:0. 暂无 1.正常 2.异常
"deviceId": 3001, // 设备 id
"deviceName": "Device A", // 设备名
"deviceNumber": "DN001", // 设备编号
"deviceModel": "Model X", // 设备型号
"brandId": 4001, // 设备品牌ID
"brandName": "Brand A", // 设备品牌名
"standardUrl": "http://example.com/standard.jpg", // 标准图片
"uploadedUrl": "http://example.com/uploaded.jpg", // 上传图片
"isEnabled": 1, // 是否启用 0-否 1-是
"type": 0, // 保养标准 类型:0-默认 1-自制库 2-模版库
"problemDescription": "No problems found", // 问题点说明
"suggestionDescription": "Regular maintenance", // 建议点说明
"remarks": "Keep records" // 备注
}
curl --location --request POST '/api/v1/maintenance/edit' \
--header 'Token: {{TOKEN}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "1", // id
"companyId": 1001, // 客户 ID
"baseId": 2001, // 基础 ID
"templateName": "Standard Template", // 模版名称
"inputMethod": 1, // 录入方式:1、手动 2、批量录入
"maintNumber": "MN001", // 保养标准编号
"maintDesc": "Maintenance description", // 保养标准说明
"maintPart": "Engine", // 保养部位
"projectContent": "Check oil level, clean air filter", // 项目内容
"methodsAndStandards": "Follow the manual", // 作业方法和标准
"pointRecord": "1", // 保养记录:0. 暂无 1.正常 2.异常
"deviceId": 3001, // 设备 id
"deviceName": "Device A", // 设备名
"deviceNumber": "DN001", // 设备编号
"deviceModel": "Model X", // 设备型号
"brandId": 4001, // 设备品牌ID
"brandName": "Brand A", // 设备品牌名
"standardUrl": "http://example.com/standard.jpg", // 标准图片
"uploadedUrl": "http://example.com/uploaded.jpg", // 上传图片
"isEnabled": 1, // 是否启用 0-否 1-是
"type": 0, // 保养标准 类型:0-默认 1-自制库 2-模版库
"problemDescription": "No problems found", // 问题点说明
"suggestionDescription": "Regular maintenance", // 建议点说明
"remarks": "Keep records" // 备注
}'
{}