Skip to main content

查询策略详情

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": ""
}

请求参数

名称位置类型必选中文名说明
authheaderstringnone
bodybodyobjectnone
» typebodystring策略类型 type:0-app,1-game,2-usernone
» aidbodystring客户id/平台idnone
» uidbodystring用户idnone
» gidbodystring游戏idnone

返回示例

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
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» totalintegertruenone总数none
» rows[object]¦nulltruenone数据列表none
»» idstringtruenone策略应用idnone
»» tidintegertruenone策略模板idnone
»» codestringtruenone策略代码下载地址none
»» aidinteger¦nulltruenone客户idnone
»» uidinteger¦nulltruenone用户idnone
»» typestringtruenone类型app game user 三种
»» weightinteger¦nulltruenone权重none
»» varsstringtruenone常量字符串none
»» statusstringtruenone状态none
»» gidstring¦nulltruenone游戏idnone
»» namestringtruenone策略名称none
»» tacticGroupstringtruenone策略分组none
»» expir_timeinteger¦nullfalsenone过期时间时间戳
»» run_countinteger¦nullfalsenone运行次数none
» errstring¦nulltruenone响应信息none