From 3d9768d60771baae45a390c38f34749942edf62d Mon Sep 17 00:00:00 2001 From: jixudong Date: Fri, 15 Dec 2023 13:31:28 +0800 Subject: [PATCH] Replace 项目列表-作品列表.md --- gameditor/前端接口/项目列表-作品列表.md | 52 ++++++++++++++++++++++++---------------------------- 1 file changed, 24 insertions(+), 28 deletions(-) diff --git "a/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\351\241\271\347\233\256\345\210\227\350\241\250-\344\275\234\345\223\201\345\210\227\350\241\250.md" "b/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\351\241\271\347\233\256\345\210\227\350\241\250-\344\275\234\345\223\201\345\210\227\350\241\250.md" index 5bfa299..c03819f 100644 --- "a/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\351\241\271\347\233\256\345\210\227\350\241\250-\344\275\234\345\223\201\345\210\227\350\241\250.md" +++ "b/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\351\241\271\347\233\256\345\210\227\350\241\250-\344\275\234\345\223\201\345\210\227\350\241\250.md" @@ -846,42 +846,28 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/download/6381?types= ### 剧本导入 -URL: api/platform/design/package/import/juben - -METHOD: POST +**METHOD**: POST -RequestHeaders: +**path**: api/platform/design/package/import/juben -| key | value | -| :------------ | :----------------------------- | -| Content-Type | application/json;charset=utf-8 | -| Authorization | TOKEN | -| botAccount | 在引擎中的帐号 | -| groupId | 组ID | -| mul | true | -| projectId | 作品ID | +**RequestHeaders:** 同创作平台请求header -FormData: +#### 请求param字段说明 -| key | value | -| :-------- | :------------- | -| projectId | 作品ID | -| jubenFile | 导入的剧本文件 | +| key | type | required | description | +| ---- | ---- | -------- | ----------- | +| 无 | | | | -ResponseBody: +#### 请求body字段说明 form data -``` -SUCCESS: -{ - "code": 1, - "msg": "成功", - "data": null -} -``` +| key | type | required | description | +| --------- | ------ | -------- | -------------- | +| projectId | number | yes | 作品ID | +| jubenFile | zip | yes | 导入的剧本文件 | -Example: +#### 请求示例 -``` +```js curl --location --request POST 'https://hw-gz25.heyqiwu.cn/api/platform/design/package/import/juben' \ --header 'groupId: 400' \ --header 'mul: true' \ @@ -892,6 +878,16 @@ curl --location --request POST 'https://hw-gz25.heyqiwu.cn/api/platform/design/p --form 'jubenFile=@"/home/feng/tmp/xuezunvwang.ai"' ``` +#### 响应实例 + +```json +{ + "code": 1, + "msg": "成功", + "data": null +} +``` + ### 获取全部作品数据 **METHOD**: GET -- libgit2 0.27.1