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
jixudong
jiaoyou_doc
Commits
c233c9eb
Commit
c233c9eb
authored
Jan 26, 2021
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
4b19d322
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
425 additions
and
0 deletions
+425
-0
管理员-系统标签.md
platform/管理员-系统标签.md
+131
-0
管理员-获取作品列表.md
platform/管理员-获取作品列表.md
+68
-0
管理员-部署.md
platform/管理员-部署.md
+226
-0
No files found.
platform/管理员-系统标签.md
0 → 100644
View file @
c233c9eb
##### 获取所有系统标签
##### 获取所有系统标签
URL: {backUrl2}/admin/label/system
METHOD: GET
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": [
{
"id": 5,
"name": "古风",
"labels": [
{
"id": 33,
"name": "闺情"
},
{
"id": 34,
"name": "王权"
},
{
"id": 35,
"name": "府宅"
},
{
"id": 36,
"name": "朝堂"
},
{
"id": 37,
"name": "经商"
}
]
},
{
"id": 7,
"name": "科幻",
"labels": [
{
"id": 43,
"name": "科技战争"
},
{
"id": 44,
"name": "机械"
},
{
"id": 45,
"name": "虚拟世界"
},
{
"id": 46,
"name": "机器人"
},
{
"id": 47,
"name": "奇幻"
}
]
}
]
}
```
##### 更新所有系统标签
URL: {backUrl2}/admin/label/system
METHOD: PUT
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
RequestBody:
```
[
{
"id": 5,
"name": "古风",
"labels": [
{
"id": 33,
"name": "闺情"
},
{
"id": 34,
"name": "王权"
},
{
"id": 35,
"name": "府宅"
},
{
"id": 36,
"name": "朝堂"
},
{
"id": 37,
"name": "经商"
}
]
}
]
```
ResponseBody:
```
{
"code": 1,
"msg": "成功",
"data": null
}
```
\ No newline at end of file
platform/管理员-获取作品列表.md
0 → 100644
View file @
c233c9eb
##### 获取所有系统标签
##### 获取所有系统标签
URL: {backUrl2}/admin/work/all
METHOD: GET
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": [
{
"id": 820,
"name": "交游天下作品推荐",
"seriesName": "12",
"ttsName": "12",
"intro": "1",
"botId": 981,
"botAccount": "4151097686",
"applyStatus": 1,
"applySuggestion": "",
"score": 10.0,
"nicknames": [
"12"
],
"free": 0,
"difficulty": "中等",
"suitCrowds": "儿童",
"startAge": 1,
"stopAge": 1,
"username": "tcq123",
"userNickname": "北卡",
"preface": "测试",
"workType": 2,
"labels": [
{
"id": 1243,
"name": "1"
}
],
"audioType": 0,
"covers": [
{
"scale": "4x3",
"listUrl": "http://hw-gz25.heyqiwu.cn/media/4151097686/img/yabkIqp1603537318307_cover_list_page_4x3.jpeg",
"detailUrl": "http://hw-gz25.heyqiwu.cn/media/4151097686/img/yabkIqp1603537318307_cover_detail_page_4x3.jpeg"
},
{
"scale": "1x1",
"listUrl": "http://hw-gz25.heyqiwu.cn/media/4151097686/img/yabkIqp1603537318307_cover_list_page_1x1.png",
"detailUrl": "http://hw-gz25.heyqiwu.cn/media/4151097686/img/yabkIqp1603537318307_cover_detail_page_1x1.png"
}
]
}
]
}
```
\ No newline at end of file
platform/管理员-部署.md
0 → 100644
View file @
c233c9eb
##### 获取所有服务部署地址
##### 获取所有服务部署地址
URL: {backUrl2}/admin/deploy/servers?type={img|audio|text}
METHOD: GET
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": [
{
"id": 13,
"serverName": "hw-gz24",
"type": "img",
"url": "http://172.16.0.197:18082"
}
]
}
```
```
type参数解释:
img:表示部署图片时候
audio:表示部署音频
text: 表示部署nt和作品文本数据时候
```
##### 部署BOT文本数据
URL: {backUrl2}/admin/deploy/bot/text
METHOD: POST
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
RequestBody:
```
{
"targetUrl":"http://172.16.0.197:18082",
"serverName":"hw-gz24",
"version":"v1.2",
"note":"进峰测试部署",
"botAccounts":[
"6080626246"
]
}
```
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": null
}
```
##### 部署BOTNT
URL: {backUrl2}/admin/deploy/bot/nt
METHOD: POST
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
RequestBody:
```
{
"targetUrl":"http://172.16.0.197:18082",
"serverName":"hw-gz24",
"version":"v1.2",
"note":"进峰测试部署",
"botAccounts":[
"6080626246"
]
}
```
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": null
}
```
##### 部署BOT图片
URL: {backUrl2}/admin/deploy/bot/img
METHOD: POST
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
RequestBody:
```
{
"targetUrl":"http://172.16.0.197:6636",
"serverName":"hw-gz24",
"version":"v1.2",
"note":"进峰测试部署",
"botAccounts":[
"6080626246"
]
}
```
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": null
}
```
##### 部署BOT音频
URL: {backUrl2}/admin/deploy/bot/audio
METHOD: POST
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
RequestBody:
```
{
"targetUrl":"http://172.16.0.197:6636",
"serverName":"hw-gz24",
"version":"v1.2",
"note":"进峰测试部署",
"botAccounts":[
"6080626246"
]
}
```
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": null
}
```
##### 获取部署历史记录
URL: {backUrl2}/admin/deploy/servers?page={页数,默认0开始}&pageSize={内容大小}
METHOD: GET
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": {
"historys": [
{
"id": 14,
"serverName": "hw-gz24",
"version": "v1.2",
"note": "进峰测试部署(音频)",
"status": 1,
"msg": "小雨相亲(6080626246)\n",
"deployTime": 1611664128000
},
{
"id": 13,
"serverName": "hw-gz24",
"version": "v1.2",
"note": "进峰测试部署(音频)",
"status": 1,
"msg": "小雨相亲(6080626246)\n",
"deployTime": 1611664030000
}
],
"count": 2
}
}
```
\ 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