获取策略列表
POST
/myauth/web/getStrategyList
请求参数
Header 参数
token
string
必需
示例值:
123
Body 参数application/json
name
string
策略名称
type
integer
类型
value
integer
面额
price
string
价格
status
integer
状态
fromSoftId
integer
所属软件ID
pageIndex
integer
必需
pageSize
integer
必需
orders
array [object {2}]
可选
column
string
字段名
asc
boolean
是否正序排序
示例
{
"fromSoftId": 1,
"pageIndex": 1,
"pageSize": 10
}
示例代码
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/getStrategyList' \
--header 'token: 123' \
--header 'Content-Type: application/json' \
--data-raw '{
"fromSoftId": 1,
"pageIndex": 1,
"pageSize": 10
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
success
boolean
必需
msg
string
必需
sign
string
必需
result
object
必需
records
array [object {9}]
必需
total
integer
必需
size
integer
必需
current
integer
必需
orders
array[string]
必需
optimizeCountSql
boolean
必需
searchCount
boolean
必需
countId
null
必需
maxLimit
null
必需
pages
integer
必需
timestamp
integer
必需
示例
{
"code": 200,
"success": true,
"msg": "获取成功",
"sign": "",
"result": {
"records": [
{
"id": 1,
"name": "月卡",
"type": 1,
"value": 2678400,
"sort": 1,
"price": "50",
"fromSoftId": 1,
"status": 1,
"fromSoftName": "MyQQ"
},
{
"id": 3,
"name": "10元充值卡",
"type": 2,
"value": 10,
"sort": 1,
"price": "10",
"fromSoftId": 1,
"status": 1,
"fromSoftName": "MyQQ"
},
{
"id": 2,
"name": "年卡",
"type": 1,
"value": 31536000,
"sort": 2,
"price": "300",
"fromSoftId": 1,
"status": 1,
"fromSoftName": "MyQQ"
},
{
"id": 4,
"name": "100元充值卡",
"type": 2,
"value": 100,
"sort": 2,
"price": "100",
"fromSoftId": 1,
"status": 1,
"fromSoftName": "MyQQ"
}
],
"total": 4,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"searchCount": true,
"countId": null,
"maxLimit": null,
"pages": 1
},
"timestamp": 1647070908755
}
🔴500错误
修改于 2022-05-06 05:40:04