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
302f5dcd
Commit
302f5dcd
authored
Dec 11, 2023
by
jixudong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace 更多菜单-打开物品.md
parent
9947f2fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
76 additions
and
5 deletions
+76
-5
更多菜单-打开物品.md
gameditor/前端接口/更多菜单-打开物品.md
+76
-5
No files found.
gameditor/前端接口/更多菜单-打开物品.md
View file @
302f5dcd
**测试环
境URL**
:http://tx-gz14.heyqiwu.cn
**测试环
境URL**
:http://tx-gz14.heyqiwu.cn
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
**METHOD**
: GET
**METHOD**
: GET
**path**
:
/
api/platform/design/goods/instance_by_project_id
**path**
: api/platform/design/goods/instance_by_project_id
**RequestHeaders:**
同创作平台请求header
**RequestHeaders:**
同创作平台请求header
...
@@ -474,6 +474,80 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/goods/instance/6518/' \
...
@@ -474,6 +474,80 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/goods/instance/6518/' \
}
}
```
```
### 更新物品实例
**METHOD**
: PUT
**path**
: api/platform/design/goods/instance/{id}/
**RequestHeaders:**
同创作平台请求header
#### 请求path字段说明
| key | type | required | description |
| ---- | ---- | -------- | ----------- |
| id | | yes | 物品实例ID |
#### 请求param字段说明
| key | type | required | description |
| ---- | ---- | -------- | ----------- |
| 无 | | | |
#### 请求body字段说明
| key | type | required | description |
| -------------------- | ---- | -------- | ------------ |
| goodsClassId | | yes | 物品类ID |
| name | | yes | 物品名称 |
| intro | | no | 物品简介 |
| goodsInstanceAttrVos | | yes | 物品实例属性 |
| nickname | | no | 物品别名 |
| placeId | | no | 地点id |
| placeName | | no | 地点名称 |
| npcId | | no | 角色id |
goodsInstanceAttrVos值说明
| key | type | description |
| ---------------- | ---- | ------------------ |
| goodsClassAttrId | | 物品类型属性关联ID |
| name | | 物品实例属性名 |
| value | | 物品实例属性值 |
| isBase | | 是否是基础属性 |
#### 请求示例
```
js
curl
'http://tx-gz14.heyqiwu.cn/api/platform/design/goods/instance/983/'
\
-
X
'PUT'
\
-
H
'Accept: application/json, text/plain, */*'
\
-
H
'Accept-Language: zh-CN,zh;q=0.9'
\
-
H
'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURJeU5UZzBNVGtzSW1WNGNDSTZNVGN3TWpJMk5UWXhPU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLkJTYXpJNzV0RHJLQU94WGdVYXRPNUdTcWYyLTcySmZ2RHJoM3MybjRFQ0E6czAwcGVyczNjcmV0'
\
-
H
'Connection: keep-alive'
\
-
H
'Content-Type: application/json;charset=UTF-8'
\
-
H
'Origin: http://localhost:8080'
\
-
H
'Referer: http://localhost:8080/'
\
-
H
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
\
-
H
'botAccount: 4926009641'
\
-
H
'groupId: 49'
\
-
H
'mul: true'
\
-
H
'projectId: 983'
\
--
data
-
raw
'{"id":6516,"name":"物品名称","nickname":"","intro":"","goodsClassId":2661,"goodsInstanceAttrVos":[{"id":27635,"name":"可被询问","value":"是","isBase":false,"goodsClassAttrId":9491},{"id":27636,"name":"所属角色","value":null,"isBase":false,"goodsClassAttrId":9492},{"id":27637,"name":"所在地点","value":null,"isBase":false,"goodsClassAttrId":9493}]}'
\
--
compressed
\
--
insecure
```
#### 响应实例
```
json
{
"code"
:
1
,
"msg"
:
"成功"
,
"data"
:
null
}
```
### 获取物品实例
### 获取物品实例
**METHOD**
: GET
**METHOD**
: GET
...
@@ -583,5 +657,3 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/goods/instance/?goodsClassId
...
@@ -583,5 +657,3 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/goods/instance/?goodsClassId
]
]
}
}
```
```
###
\ 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