# 自动生成参数导入导出 **测试环境URL**: tx-gz18.heyqiwu.cn **生产环境URL**: juben.jiaoyou365.com ## 1. 导出作品的AIGC参数 **METHOD**: GET **path**: /api/juben/aigc/exportParam **RequestHeaders:** | key | description | | ------------- | ----------------- | | Authorization | \*\*鉴权Token\*\* | **RequestParam:** | 参数名 | 类型 | 示例值 | 是否必填 | 参数描述 | | ------ | ------- | ------ | -------- | ------------ | | id | Integer | 2701 | 是 | 作品的项目id | #### 请求示例 ```json curl --location --request GET 'https://juben.jiaoyou365.com/api/juben/aigc/exportParam?id=2701' \ --header 'Authorization: ***' ``` **ResponseBody.data:** ##### 成功: | 参数名 | 类型 | 示例值 | 参数描述 | | -------- | ------ | ------------------------------------------------------------ | ----------------------- | | filePath | String | http://tx-gz18.heyqiwu.cn/downloads/第3个作品-aigc--1012--2023-11-10--09-57-30.txt | 导出的txt文件的下载地址 | #### 响应示例 ```json { "code": 1, "msg": "成功", "data": { "filePath": "http://tx-gz18.heyqiwu.cn/downloads/第3个作品-aigc--1012--2023-11-10--09-57-30.txt" } } ``` ## 2. 导入作品的AIGC参数 **METHOD**: POST **path**: /api/juben/aigc/importParam **RequestHeaders:** | key | description | | ------------- | ----------------- | | Authorization | \*\*鉴权Token\*\* | **RequestParam:** | 参数名 | 类型 | 示例值 | 是否必填 | 参数描述 | | ------ | ------- | ------ | -------- | ------------ | | id | Integer | 2701 | 是 | 作品的项目id | **RequestFormData:** | 参数名 | 类型 | 示例值 | 是否必填 | 参数描述 | | ------ | -------- | ---------------- | -------- | ---------------------------- | | file | FormData | \*\*文件内容\*\* | 是 | 待上传文件对应的FormData对象 | #### 请求示例 ```json curl --location --request POST 'https://juben.jiaoyou365.com/api/juben/aigc/importParam?id=2701' \ --header 'Authorization: ***' ``` #### 响应示例 **成功:** ```json { "code": 1, "msg": "成功", "data": null } ```