修改策略
POST
/myauth/web/updStrategy
请求参数
Header 参数
token
string
必需
示例值:
123
Body 参数application/json
id
integer
策略ID
name
string
策略名称
type
integer
类型
value
integer
面额
price
string
价格
sort
integer
排序
status
integer
状态
fromSoftId
integer
所属软件ID
示例
{
"id": 1,
"name": "月卡",
"type": 1,
"value": 2678400,
"sort": 1,
"price": "50",
"fromSoftId": 1,
"status": 1
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/myauth/web/updStrategy' \
--header 'token: 123' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 1,
"name": "月卡",
"type": 1,
"value": 2678400,
"sort": 1,
"price": "50",
"fromSoftId": 1,
"status": 1
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
success
boolean
必需
msg
string
必需
sign
string
必需
result
null
必需
timestamp
integer
必需
示例
{
"code": 200,
"success": true,
"msg": "修改成功",
"sign": "",
"result": null,
"timestamp": 1647072363722
}
🔴500错误
修改于 2022-05-06 05:39:41