- 新闻
- 价格订单
- 价格套餐
- 攻击方法(协议)
- 其他
- 攻击任务
- SysDictionary
- SysDictionaryDetail
- Order
更新套餐列表
PUT
/product/updateProduct
Product
请求参数
Authorization
在 header 添加参数
x-token
示例:
x-token: ********************
Body 参数application/json
ID
integer
主键ID
concurrent
integer
并发数
createdAt
string
创建时间
dailyPrice
number
可选
days
integer
有效时长
description
string
描述
maxSeconds
integer
最大使用秒数
name
string
名称
price
number
价格
priority
integer
优先级
status
string
状态
supportLevel
string
支持级别
updatedAt
string
更新时间
示例
{
"ID": 0,
"concurrent": 0,
"createdAt": "string",
"dailyPrice": 0,
"days": 0,
"description": "string",
"maxSeconds": 0,
"name": "string",
"price": 0,
"priority": 0,
"status": "string",
"supportLevel": "string",
"updatedAt": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://47.254.255.198:8888/product/updateProduct' \
--header 'Content-Type: application/json' \
--header 'x-token;' \
--data-raw '{
"ID": 0,
"concurrent": 0,
"createdAt": "string",
"dailyPrice": 0,
"days": 0,
"description": "string",
"maxSeconds": 0,
"name": "string",
"price": 0,
"priority": 0,
"status": "string",
"supportLevel": "string",
"updatedAt": "string"
}'
返回响应
🟢200成功
application/json
Body
code
integer
可选
data
可选
msg
string
可选
示例
{
"code": 0,
"data": null,
"msg": "string"
}
修改于 2025-04-23 01:12:48