获取策略列表
POST
/myauth/web/getStrategyList只有admin账号有权限使用
请求参数
Header 参数
token
string
必需
登录成功后返回的token
示例值:
123
Body 参数application/json
name
string
策略名称
模糊查询
type
integer
类型
固定有两种:1=期限,2=余额
value
integer
面额
类型为期限时,-1为永久
price
string
价格
status
integer
状态
1=正常,0=禁用
fromSoftId
integer
所属软件ID
pageIndex
integer
必需
pageSize
integer
必需
orders
array [object {2}]
可选
column
string
字段名
必须严格遵守系统返回的字段名,即原样的驼峰命名法
asc
boolean
是否正序排序
示例
{
"fromSoftId": 1,
"pageIndex": 1,
"pageSize": 10
}
示例代码
返回响应
成功(200)
错误(500)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
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
}
最后修改时间: 3 年前