diff --git a/app_doc/work_data_api.md b/app_doc/work_data_api.md index 3c1efbe..6141d40 100644 --- a/app_doc/work_data_api.md +++ b/app_doc/work_data_api.md @@ -168,6 +168,7 @@ SUCCESS: "authorname": // String | 作者名称 "aipioneerUsername": // String | 作品ID "hot": // Number | 热度 + "labels": [] // List | 标签 } ] } diff --git a/dramaeditor/intent_search.md b/dramaeditor/intent_search.md index 9375174..6a207d8 100644 --- a/dramaeditor/intent_search.md +++ b/dramaeditor/intent_search.md @@ -2,7 +2,7 @@ BaseURL: https://hw-gz26.heyqiwu.cn ##### 获取领域配置 -URL: {backUrl}/api/juben/intent/query +URL: {backUrl}/api/juben/intent/query?secret=f1fvo0Yhw199PIHWTmCbbQ METHOD: POST diff --git "a/dramaeditor/\345\210\233\344\275\234\345\271\263\345\217\260\345\211\247\346\234\254\347\224\237\346\210\220\346\216\245\345\217\243.md" "b/dramaeditor/\345\210\233\344\275\234\345\271\263\345\217\260\345\211\247\346\234\254\347\224\237\346\210\220\346\216\245\345\217\243.md" new file mode 100644 index 0000000..2bf8d3b --- /dev/null +++ "b/dramaeditor/\345\210\233\344\275\234\345\271\263\345\217\260\345\211\247\346\234\254\347\224\237\346\210\220\346\216\245\345\217\243.md" @@ -0,0 +1,122 @@ +BaseURL: https://hw-gz26.heyqiwu.cn + +##### 生成剧本 + +URL: {BaseURL}/api/juben/generate?secret=f1fvo0Yhw199PIHWTmCbbQ + +METHOD: POST + +RequestHeaders: + +| key | value | +| :----------- | :------------ | +| Content-Type | application/json;charset=utf-8 | + +RequestBody: + +``` +剧本导出ai未加密json放这,有注释地方是新加字段 +{ + "pointBOList": [], + "work": { + "count": 1490, + "gmtCreate": 1627279090000, + "gmtModified": 1627279090000, + "id": 51, + "name": "血族女王", + "ownerId": 8, + "serviceCode":"juben1", // 服务器标识 + "startPlotNum":"1-1", // 让用户输入开始剧情点生成 + "username":"jinfengli" // 用户名 + } +} +``` + +ResponseBody: + +``` +SUCCESS: +{ + "code": 1, + "msg": "成功", + "data": null +} +FAILTURE: +{ + "code": 60003, + "msg": "该接口禁止访问", + "data": null +} +{ + "code": 50002, + "msg": "作品数据缺失!", + "data": null +} +``` + +Example: +``` +curl --location --request POST 'https://hw-gz26.heyqiwu.cn/api/juben/generate?secret=f1fvo0Yhw199PIHWTmCbbQ' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "pointBOList": [ + ], + "work": { + "count": 1490, + "gmtCreate": 1627279090000, + "gmtModified": 1627279090000, + "id": 51, + "name": "血族女王", + "ownerId": 8, + "serviceCode":"juben1", + "startPlotNum":"1-1", + "username":"jinfengli" + } +}' +``` +##### 获取生成进度 + +URL: {BaseURL}/api/juben/generate/percent?jubenId={剧本ID}&serviceCode={服务标识,例如:juben1}&secret=f1fvo0Yhw199PIHWTmCbbQ + +METHOD: POST + +RequestHeaders: + +| key | value | +| :----------- | :------------ | +| Content-Type | application/json;charset=utf-8 | + + +ResponseBody: + +``` +SUCCESS: +{ + "code": 1, + "msg": "成功", + "data": { + "status": 1, // 生成完成状态-> 1: 成功, 0: 生成中 + "progress": 100 // 进度,100表示完成 + } +} +{ + "code": 1, + "msg": "成功", + "data": { + "status": 0, // 生成完成状态-> 1: 成功, 0: 生成中 + "progress": 90 // 进度,100表示完成 + } +} +FAILTURE: +{ + "code": 50002, + "msg": "不存在脚本,请先生成!", + "data": null +} +``` + +Example: +``` +curl --location --request GET 'https://hw-gz26.heyqiwu.cn/api/juben/generate/percent?jubenId=51&serviceCode=juben1&secret=f1fvo0Yhw199PIHWTmCbbQ' +``` +