Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaoyou_doc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyinting
jiaoyou_doc
Commits
3189ac09
Commit
3189ac09
authored
Sep 13, 2021
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5cecd2c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
127 additions
and
1 deletion
+127
-1
work_data_api.md
app_doc/work_data_api.md
+1
-1
剧情点添加意图组.md
platform/剧情点添加意图组.md
+126
-0
No files found.
app_doc/work_data_api.md
View file @
3189ac09
...
@@ -262,7 +262,7 @@ FAILTURE:
...
@@ -262,7 +262,7 @@ FAILTURE:
##### 收藏作品列表
##### 收藏作品列表
URL:
baseUrl
:18082/api/favorite?module=works
URL:
BaseURL
:18082/api/favorite?module=works
METHOD: GET
METHOD: GET
...
...
platform/剧情点添加意图组.md
0 → 100644
View file @
3189ac09
##### 意图搜索
##### 意图搜索
URL: {backUrl}/plot/intent/query?sents={搜索框例句}&pageNum={第几页}&pageSize={每页的数量}
METHOD: GET
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
| botAccount | bot帐号 |
| groupId | 组ID |
| mul | true |
| projectId | 作品ID |
ResponseBody:
```
FAILTURE:
{
"code": 10002,
"msg": "参数为空"
}
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": {
"total": 2, // 成员的数量
"pages": 1, // 一共的页数
"pageSize": 8, // 每页的最大成员数量
"list": [
{
"examples": "这主意真不错\n观点是对的\n我觉得没错误\n太好了\n张三说得没啥错误\n同意你说的话\n我看行\n当然同意\n就这么办\n我没理由反对\n应该会赢的\n你的观点是正确的\n没错\n张三说得没问题吧\n我们的观点是一样的\n我怎么会不同意\n我怎么着都没理由反对吧\n我觉得没毛病\n我举双手赞成\n\n我觉得有道理\n你的观点没错\n我不反对\n我同意\n很同意\n完全赞成\n没问题\n\n我没什么意见,很同意你的观点\n\n我哪可能不同意\n我的观点和你一样\n\n你说的没什么毛病\n你说得没错\n我怎么可能反对\n我怎么可能不同意\n观点有道理\n当然可以\n你是正确的\n我觉得可以\n张三说的没问题吧\n我没理由不同意\n我也是这么想的\n我无法反驳\n肯定同意\n你的观点没问题\n同意你的观点\n当然会成功的\n我怎么会反对\n我哪会反对呢\n你说得对\n当然会取胜的\n就这么干\n相信一定可以的", // 意图例句
"intentName": "表示赞同" // 意图名称
},
{
"examples": "我同意\n我赞成\n觉得好\n是对的\n觉得不错\n我不拒绝\n我不讨厌\n当然同意\n肯定赞成\n肯定是\n都可以\n还不错\n很好\n不讨厌\n不拒绝\n没不同意啊\n没什么问题\n没有啥意见\n没问题\n没有意见\n听你的\n没资格不同意\n我想\n我愿意\n同意啊\n好的\n对\n就这么安排\n就这么定", // 意图例句
"intentName": "肯定同意" // 意图名称
}
],
"pageNum": 1 // 当前是第几页
}
}
```
Example:
```
curl --location --request GET 'https://hw-gz25.heyqiwu.cn/api/platform/design/plot/intent/query?sents=%E5%A5%BD%E7%9A%84&pageNum=1&pageSize=8' \
--header 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUyTXpFMU1UZzNPRE1zSW1WNGNDSTZNVFl6TVRVeU5UazRNeXdpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TXpkOS42ZWtCTllWZVRyZElPcVctcFI1bkVoT3R0N3NtWk03aHZ4cGpRMEh0MFhNOnMwMHBlcnMzY3JldA==' \
--header 'botAccount: juben1b0228' \
--header 'groupId: 408' \
--header 'mul: true' \
--header 'projectId: 3007' \
--data-raw ''
```
##### 根据意图添加分支
URL: {backUrl}/plot/intent/to/branch
METHOD: POST
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
| botAccount | bot帐号 |
| groupId | 组ID |
| mul | true |
| projectId | 作品ID |
RequestBody:
```
{
"projectId": 3007, // 作品ID
"plotId": 763280, // 当前剧情点ID
"nextPlotId": 763283, // 下一剧情点的ID
"intentNames":[ // 意图名称列表
"肯定同意",
"表示赞同"
],
"sents":"好的\n嗯嗯" // 多句用“\n”连接
}
```
ResponseBody:
```
FAILTURE:
{
"code": 10002,
"msg": "参数为空"
}
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": null
}
```
Example:
```
curl --location --request POST 'https://hw-gz25.heyqiwu.cn/api/platform/design/plot/intent/to/branch' \
--header 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUyTXpFMU1UZzNPRE1zSW1WNGNDSTZNVFl6TVRVeU5UazRNeXdpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TXpkOS42ZWtCTllWZVRyZElPcVctcFI1bkVoT3R0N3NtWk03aHZ4cGpRMEh0MFhNOnMwMHBlcnMzY3JldA==' \
--header 'botAccount: juben1b0228' \
--header 'groupId: 408' \
--header 'mul: true' \
--header 'projectId: 3007' \
--header 'Content-Type: application/json' \
--data-raw '{
"projectId": 3007,
"plotId": 763280,
"nextPlotId": 763283,
"intentNames":[
"肯定同意",
"表示赞同"
],
"sents":"好的\n嗯嗯"
}'
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment