- OSS文件上传控制器
- 党建控制器
- 新闻公告控制器
- 企业控制器
- 通用接口控制器
- 人员控制器
- 项目控制器
- 考试控制器
- 起重机设备控制器
- 起重机登记控制器
- 安全帽控制器
保存或更新安全帽设备
POST
/helmet/helmetDevice/saveOrUpdate
请求参数
Header 参数
token
string
可选
默认值:
eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX2tleSI6IjU1YTRlMGM3LTk4MTktNDRlYi1iNDBmLTFlZTg3MzczMTFhYyIsInVzZXJuYW1lIjoiYWRtaW4ifQ.IVvGfgnXaPHpSSv7ndl0ITB3PBCkwYPfYurc2Ulsd3i2lO_djYLMM4p886y7mC1AGGOP2Bcj3T0LDwwVKgk3eQ
Body 参数application/json
企业数据
id
integer <int64>
主键id
projectId
integer <int64>
项目id
userName
string
用户名称
deviceNo
string
设备编号
sim
string
SIM卡号
userPhoneNumber
string
用户手机号
bindingDate
string
绑定日期
brand
string
可选
isDel
string
可选
createBy
integer <int64>
创建人
createTime
string
创建时间
updateBy
integer <int64>
更新人
updateTime
string
更新时间
示例
{
"id": 0,
"projectId": 0,
"userName": "string",
"deviceNo": "string",
"sim": "string",
"userPhoneNumber": "string",
"bindingDate": "string",
"brand": "string",
"isDel": "string",
"createBy": 0,
"createTime": "string",
"updateBy": 0,
"updateTime": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/helmet/helmetDevice/saveOrUpdate' \
--header 'token: eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX2tleSI6IjU1YTRlMGM3LTk4MTktNDRlYi1iNDBmLTFlZTg3MzczMTFhYyIsInVzZXJuYW1lIjoiYWRtaW4ifQ.IVvGfgnXaPHpSSv7ndl0ITB3PBCkwYPfYurc2Ulsd3i2lO_djYLMM4p886y7mC1AGGOP2Bcj3T0LDwwVKgk3eQ' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 0,
"projectId": 0,
"userName": "string",
"deviceNo": "string",
"sim": "string",
"userPhoneNumber": "string",
"bindingDate": "string",
"brand": "string",
"isDel": "string",
"createBy": 0,
"createTime": "string",
"updateBy": 0,
"updateTime": "string"
}'
返回响应
🟢200成功
application/json
Body
AjaxResult
code :状态码
msg :返回内容
data :数据对象
key
object
可选
示例
{
"": {}
}
修改于 2025-06-11 11:30:45