From 30fc7cbacd687b4cb53b7df4d2b6b4ec803de350 Mon Sep 17 00:00:00 2001 From: huangganda Date: Sat, 18 Nov 2023 15:17:41 +0800 Subject: [PATCH] 2023自动bot生成文档 --- gameditor/2023自动bot生成.md | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 gameditor/2023自动bot生成.md diff --git "a/gameditor/2023\350\207\252\345\212\250bot\347\224\237\346\210\220.md" "b/gameditor/2023\350\207\252\345\212\250bot\347\224\237\346\210\220.md" new file mode 100644 index 0000000..bbacd8c --- /dev/null +++ "b/gameditor/2023\350\207\252\345\212\250bot\347\224\237\346\210\220.md" @@ -0,0 +1,71 @@ +## 1.自动生成分支 + +**创作平台接口** + +**METHOD**: POST + +**path**: http://localhost:18092/api/bot/data/auto/train + +RequestHeaders: + +| key | description | +| ------------ | ------------------------------ | +| Content-Type | application/json;charset=utf-8 | + + + +### 请求param字段说明 + +| key | type | required | description | +| --------- | --------- | -------- |-------------| +| secret | String | yes | 接口密钥 | + + + +### 请求body字段说明 + +| key | type | required | description | +|------------------|---------|----------|------------------| +| projectId | Integer | yes | 作品编号(创作平台登陆后作品列表中查看) | +| dataPercent | Float | yes | 参与训练数据的比例, 填1 | +| fuzzyBotAccount | String | no | 模糊匹配bot的ID,可以为空 | +| allBotAccount | String | no | 全匹配bot的ID, 可以为空 | +| wordPosList | List | yes | 词性数据列表 | +| wordPosList.word | String | yes | 词 | +| wordPosList.pos | String | yes | 词性 | + + + + + +### 请求示例 + +```json +curl --location --request POST 'http://localhost:18092/api/bot/data/auto/train?secret=qiwu888' \ +--header 'Content-Type: application/json' \ +--data-raw '{ +"projectId":47, +"dataPercent":1, +"fuzzyBotAccount": "", +"allBotAccount":"", +"wordPosList":[] +}' +``` + + + +### 响应字段说明 + +| key | type | description | +| ---- | ------ | -------------------- | +| code | int | 只要不出错,固定1 | +| msg | string | 只要不出错,固定成功 | +| data | | null | + + + +### 响应实例 + +```json +{"code":1,"msg":"成功","data":null} +``` -- libgit2 0.27.1