文档
测试

获取差异文件

POST
template/getDiffFile

请求参数

参数名
类型
描述
必填
template_id
Int
模板ID
必填
template_version
Int
模板版本
必填

请求示例

```json { "template_id": 1, "template_version": 1 } ```

响应参数

参数名
类型
描述
必填
code
Int(1)
响应代码,1:成功、2:出错
必填
msg
String
响应信息,出错返回错误信息
必填
data
Object
响应数据
必填
diff_file
Array
差异文件
必填
file_path
String
文件路径
必填
diff_type
Int
差异类型,1:新增、2:更新、3:删除
必填
folder_path
String
文件夹路径
必填
template_version
Int
最新模板版本
必填

响应示例

```json { "code": 1, "msg": "success", "data": { "diff_file": [ { "file_path": "Mir200/!Abuse.txt", "diff_type": 2 }, { "file_path": "Mir200/36d3e02f7643e4d063b639e0fbd39d9.jpg", "diff_type": 3 }, { "file_path": "Mir200/!RunAddr.txt", "diff_type": 2 } ], "folder_path": "version/99139a95b042b93eb334b16b23d1016c/", "template_version": 2 } } ```