1.URL

http://124.223.60.234:8080/system/maintenance/reminder/updateMaintenanceReminder

2.请求参数

2.1请求头

在Headers里面增加token:对应登录验证成功后,data里面对应的tokenId

2.2.参数示例

{
    "id": "D11CEE30493649848D1E42F38076F92D",
    "serviceId": 1,
    "reminderName": "Oil Change",
    "nextReminder": "{\"dateTime\":\"2025-12-13\",\"mileage\":5000,\"motorHours\":6000}",
    "currentInfo": "{\"currentEngineHours\":0,\"currentMileage\":122.5,\"currentTime\":\"2025-11-13T14:30:09.325010600Z\"}",
    "repeatInterval": "{\"interval\":6,\"unitType\":3,\"mileage\":6000,\"motorHours\":2000}",
    "notifyBefore": "{\"interval\":2,\"unitType\":2,\"mileage\":500,\"motorHours\":200}",
    "subscribers": "[{\"type\":0},{\"type\":1,\"emailList\":[\"leave_iot@163.com\",\"leaveiot@163.com\"]}]",
    "status": 0
}

2.3.参数说明

字段 类型 说明 是否必须
id String 唯一标识 Y
serviceId Long 服务流水号 Y
reminderName String 提醒名称 Y
nextReminder String 下次提醒信息,JSON 格式字符串。包含下次提醒时间(dateTime)、里程(mileage)、发动机时长(motorHours) Y
repeatInterval String 重复提醒间隔,JSON 格式字符串。interval - 间隔数值;unitType - 时间单位(如 1-天;2-周; 3 - 月);mileage - 里程间隔;motorHours - 发动机时长间隔 Y
notifyBefore String 提前通知配置,JSON 格式字符串。interval - 提前数值;unitType - 时间单位(如 1-天;2-周; 3 - 月);mileage - 提前里程;motorHours - 提前发动机时长 Y
subscribers String 订阅人列表,JSON 格式字符串。type - 订阅类型(0 - 默认订阅人,1 - 指定邮箱订阅人);emailList - 指定订阅人邮箱数组(仅 type=1 时生效) Y
status int 0:激活;1:关闭;2:超期;用户只需要关注激活/关闭;激活状态下通过时间判断是否超期 Y

3.接口应答

3.1.返回示例

{
    "code": 200,
    "message": "Operation succeeded",
    "data": null
}

3.2.返回结果说明

字段 类型 说明
code int 返回状态
message String 返回结果描述
data object 返回结果体
Author:admin  Create time:2025-11-13 16:23
Last editor:admin  Update time:2025-11-24 14:17