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
李进峰
jiaoyou_doc
Commits
0f941138
Commit
0f941138
authored
Nov 23, 2023
by
jixudong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
eed681ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
160 additions
and
0 deletions
+160
-0
项目列表-角色.md
gameditor/前端接口/项目列表-角色.md
+160
-0
No files found.
gameditor/前端接口/项目列表-角色.md
0 → 100644
View file @
0f941138
**测试环境URL**
:http://tx-gz14.heyqiwu.cn
**测试环境URL**
:http://tx-gz14.heyqiwu.cn
**生产环境URL**
:http://tx-gz11.heyqiwu.cn
[
TOC
]
### 添加NPC类
URL: api/platform/design/npc/class
METHOD: POST
URL Parameters|TYPE: JSON
```
{
"name":"瑞哪",
"intro":"队长的报表",
"projectId":11,
"npcClassAttrVos":[
{
"name":"杀伤力",
"value":"1000",
},
{
"name":"年龄",
"value":"18"
}
]
}
```
Headers:
| Parameter | Type | Description |
| :----------- | :----------------------------: | ----------: |
| content-type | application/json;charset=utf-8 | |
ResponseBody:
```
{"code":1,"msg":"成功","data":{"id":12}}
```
### 删除NPC分类
URL: api/platform/design/npc/class
METHOD: DELETE
URL Parameters|TYPE:
Headers:
| Parameter | Type | Description |
| :----------- | :----------------------------: | ----------: |
| content-type | application/json;charset=utf-8 | |
ResponseBody:
```
{"code":1,"msg":"成功","data":null}
```
### 更新NPC分类
URL: api/platform/design/npc/class
METHOD: PUT
URL Parameters|TYPE: JSON
```
{
"id": 12,
"name": "瑞哪",
"intro": "队长的报表",
"projectId": 11,
"npcClassAttrVos": [{
"id": 1,
"name": "杀伤力",
"value": "2000"
}, {
"id": 2,
"name": "年龄",
"value": "17"
},{
"name":"身高",
"value":"180"
}]
}
```
Headers:
| Parameter | Type | Description |
| :----------- | :----------------------------: | ----------: |
| content-type | application/json;charset=utf-8 | |
ResponseBody:
```
{"code":1,"msg":"成功","data":null}
```
### 通过工程id查询所有NPC分类
URL: api/platform/design/npc/class
METHOD: GET
URL Parameters|TYPE:Param
| Parameter | Type | Description |
| :-------- | :--: | ----------: |
| projectId | Long | 游戏工程id |
Headers:
| Parameter | Type | Description |
| :----------- | :----------------------------: | ----------- |
| content-type | application/json;charset=utf-8 | |
ResponseBody:
```
{
"code": 1,
"msg": "成功",
"data": [{
"id": 7,
"name": "商贩",
"intro": "游走于大陆上的商人",
"projectId": 11,
"npcClassAttrVos": []
}, {
"id": 10,
"name": "飞机",
"intro": "用来",
"projectId": 11,
"npcClassAttrVos": []
}, {
"id": 13,
"name": "瑞哪",
"intro": "队长的报表",
"projectId": 11,
"npcClassAttrVos": [{
"id": 4,
"name": "杀伤力",
"value": "1000"
}, {
"id": 5,
"name": "年龄",
"value": "18"
}]
}]
}
```
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