Commit 30fc7cba by huangganda

2023自动bot生成文档

parent 1279e6d4
## 1.自动生成分支
## 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}
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment