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
cd0d5159
Commit
cd0d5159
authored
Dec 24, 2020
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
d2ce07cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
190 additions
and
0 deletions
+190
-0
smantic_word_replace.md
platform/smantic_word_replace.md
+190
-0
No files found.
platform/smantic_word_replace.md
0 → 100644
View file @
cd0d5159
##### 新建语义词替换映射
URL: {backUrl}/bot/semantic/word/replace
METHOD: POST
Headers:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
| botAccount | bot帐号 |
| groupId | 组ID |
| mul | true |
| projectId | 1604 |
RequestBody:
```
{
"projectId":1,
"sourceWords":"1+2+3", // 内容
"targetWord":"4" // 名称
}
```
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": null
}
```
##### 更新语义词替换映射
URL: {backUrl}/bot/semantic/word/replace
METHOD: PUT
Headers:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
| botAccount | bot帐号 |
| groupId | 组ID |
| mul | true |
| projectId | 1604 |
RequestBody:
```
{
"id":1,
"projectId":1,
"sourceWords":"1+2+3", // 内容
"targetWord":"4" // 名称
}
```
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": null
}
```
##### 删除语义词替换映射
URL: {backUrl}/bot/semantic/word/replace/{语义词替换ID}?projectId={作品ID}
METHOD: DELETE
Headers:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
| botAccount | bot帐号 |
| groupId | 组ID |
| mul | true |
| projectId | 1604 |
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": null
}
```
##### 获取所有语义词替换
URL: {backUrl}/bot/semantic/word/replace/all?projectId={作品ID}
METHOD: GET
Headers:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
| botAccount | bot帐号 |
| groupId | 组ID |
| mul | true |
| projectId | 1604 |
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": [
{
"id": 1,
"sourceWords": "1+2+3", // 内容
"targetWord": "4", // 名称
"projectId": 1 // 作品id
}
]
}
```
##### 获取开启状态
URL: {backUrl}/bot/semantic/word/replace/status?projectId={作品ID}
METHOD: GET
Headers:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
| botAccount | bot帐号 |
| groupId | 组ID |
| mul | true |
| projectId | 1604 |
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": {
"status": 0 // 1:表示开启,0:表示关闭
}
}
```
##### 更新开启状态
URL: {backUrl}/bot/semantic/word/replace/status?status={1:表示开启,0:表示关闭}&projectId={作品ID}
METHOD: PUT
Headers:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
| botAccount | bot帐号 |
| groupId | 组ID |
| mul | true |
| projectId | 1604 |
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": null
}
```
\ 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