[TOC]
## 獲取版本信息(不需要)
~~~[api]
post:/version/info
*int:id=1#版本ID
<<<
返回結果
{
"code": 0,
"info": "成功",
"data":{
"id": 1013,
"create_time": "1970-01-01 08:00:00",
"version_type": 1002,
"kind": 0,
"title": "1.0.0",
"status": 1,
"remark": "",
"versionType":{
"id": 1002,
"create_time": "2018-12-13 14:19:53",
"title": "客e達",
"remark": null,
"web_folder": "abacus_crm_pc",
"php_folder": "abacus_crm_server"
}
}
}
~~~
## 創建版本
~~~[api]
post:/version/add
<<<
請求內容
{
"version_type": 1000, // 版本類型id
"kind": 0, // 前端=0 后端=1
"title": "3.9.0"
}
<<<
返回結果
同 info
~~~
## 修改版本
~~~[api]
post:/version/edit
<<<
請求內容
{
"id":1, //分類id
"title": "3.8.0"
"version_type": 1000, // 版本類型id
"kind": 0, // 前端=0 后端=1
"title": "3.9.0"
}
<<<
返回結果
同 info
~~~
## 刪除版本
~~~[api]
post:/version/del
<<<
請求內容
{
"id":1 //版本id
}
<<<
返回結果
{
"code": 0,
"info": "success",
"data": null
}
~~~
## 獲取版本列表
~~~[api]
post:/version/versionlist
<<<
請求內容
{
"version_type": 1000, // 版本類型id
"page": 1, // 分頁
"limit": 1, // 每頁顯示
}
<<<
返回結果
{
"code": 0,
"info": "success",
"data":
[
{
"id": 1000, // 版本ID
"title": "3.7.0", // 任務名稱
"version_type": 1000, // 版本類型id
"version_kind": 1000, // 版本分類id
"status": 1, // 1-穩定版
"state": 0, // 0-有同名備份 1-正在生成備份中
"remark": '', // 備注
"create_time": "2018-05-20 12:20:22", // 創建時間
"version_type": // 版本類型
{
"id": 1001, // ID
"title": "a3", // 名稱
"create_time": "2018-05-20 12:20:22",// 創建時間
"remark": '' // 備注
}
}
]
}
~~~
## 設置穩定版
~~~[api]
post:/version/set
<<<
請求內容
{
"id":1, //版本id
}
<<<
返回結果
{
"code": 0,
"info": "success",
"data": null
}
~~~