查询策略详情
POST /api/v4/tacticRef/getDetail
根据 不同的type 传递不同的id值,查询不同的策略详情 策略类型 type : 0-app 1-game 2-user
不同的type需要传递不同的参数 type 为 0 :aid type 为 1 :aid gid type 为 2:aid gid uid
Body 请求参数
{
"type": "",
"aid": "",
"uid": "",
"gid": ""
}
请求参数
| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|---|
| auth | header | string | 是 | none | |
| body | body | object | 否 | none | |
| » type | body | string | 是 | 策略类型 type:0-app,1-game,2-user | none |
| » aid | body | string | 是 | 客户id/平台id | none |
| » uid | body | string | 是 | 用户id | none |
| » gid | body | string | 是 | 游戏id | none |
返回示例
200 Response
{
"total": 2,
"rows": [
{
"id": 1,
"tid": 1,
"code": "1",
"aid": null,
"gmid": 1,
"uid": null,
"type": "game",
"weight": null,
"vars": "{}",
"status": "1",
"gid": "1",
"name": "策略A",
"tacticGroup": "pg",
"expir_time": null,
"run_count": null
},
{
"id": 2,
"tid": 1,
"code": "2",
"aid": null,
"gmid": 1,
"uid": null,
"type": "game",
"weight": null,
"vars": "{\r\n \"desc\": \"GAME\",\r\n \"id\": 12345,\r\n \"type\": \"someType\",\r\n \"gid\": 12345,\r\n\r\n \"order\": \"weight ASC\"\r\n}",
"status": "1",
"gid": "1",
"name": "策略A",
"tacticGroup": "pg",
"expir_time": null,
"run_count": null
}
],
"code": 200,
"err": "",
"pageSize": null,
"pageNum": null,
"pages": null
}
返回结果
| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
返回数据结构
状态码 200
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » total | integer | true | none | 总数 | none |
| » rows | [object]¦null | true | none | 数据列表 | none |
| »» id | string | true | none | 策略应用id | none |
| »» tid | integer | true | none | 策略模板id | none |
| »» code | string | true | none | 策略代码下载地址 | none |
| »» aid | integer¦null | true | none | 客户id | none |
| »» uid | integer¦null | true | none | 用户id | none |
| »» type | string | true | none | 类型 | app game user 三种 |
| »» weight | integer¦null | true | none | 权重 | none |
| »» vars | string | true | none | 常量字符串 | none |
| »» status | string | true | none | 状态 | none |
| »» gid | string¦null | true | none | 游戏id | none |
| »» name | string | true | none | 策略名称 | none |
| »» tacticGroup | string | true | none | 策略分组 | none |
| »» expir_time | integer¦null | false | none | 过期时间 | 时间戳 |
| »» run_count | integer¦null | false | none | 运行次数 | none |
| » err | string¦null | true | none | 响应信息 | none |