管理员修改车辆模型信息接口 - API文档
管理员修改车辆模型信息接口
该接口用于管理员根据ID修改车辆模型信息,包括车型名称、简介、型号、年份、前后摄像头距离等参数。
请求方式
POST
请求地址
/updateOneCarModelAdminByID
请求参数
{
'carModelAdminId': 1, // 车辆模型ID
'carModelName': '奔驰S级', // 车型名称
'carProfile': '豪华轿车', // 简介
'model': 'S600', // 型号
'year': '2021', // 年份
'frontAerialBeforeDistance': 1.2, // 前摄像头前距离
'frontAerialLeftDistance': 0.8, // 前摄像头左距离
'frontAerialRightDistance': 0.8, // 前摄像头右距离
'behindAerialAfterDistance': 1.5, // 后摄像头后距离
'behindAerialLeftDistance': 0.8, // 后摄像头左距离
'behindAerialRightDistance': 0.8, // 后摄像头右距离
'behindAerialHeight': 1.2, // 后摄像头高度
'phone': '13888888888', // 手机号码
'code': '123456' // 验证码
}
返回参数
{
"code": 200, // 状态码
"msg": "操作成功", // 消息
"data": null // 数据
}
示例代码
前端uniapp代码
uni.request({
url: '/updateOneCarModelAdminByID',
method: 'POST',
header: {
'content-type': 'application/json'
},
data: {
carModelAdminId: 1,
carModelName: '奔驰S级',
carProfile: '豪华轿车',
model: 'S600',
year: '2021',
frontAerialBeforeDistance: 1.2,
frontAerialLeftDistance: 0.8,
frontAerialRightDistance: 0.8,
behindAerialAfterDistance: 1.5,
behindAerialLeftDistance: 0.8,
behindAerialRightDistance: 0.8,
behindAerialHeight: 1.2,
phone: '13888888888',
code: '123456'
},
success: function(res) {
console.log(res)
},
fail: function(err) {
console.log(err)
}
})
注意事项
- 该接口需要管理员权限
- 手机号码和验证码用于验证用户身份
- 参数对象中的属性名需与接口所需参数名一致
原文地址: https://www.cveoy.top/t/topic/ot9m 著作权归作者所有。请勿转载和采集!