Commit e3a0027f authored by szh's avatar szh

update Readme

parent ea4058df
......@@ -389,6 +389,66 @@ response
}
```
### bityuan一键备份 内网接口
URL /pai/nodebackup
请求方法 post json
|参数|类型|是否必填|说明|
```
response
{
"code": 200,
"msg": "ok",
"data":""
}
```
### bityuan一键恢复 内网接口
URL /pai/noderecover
请求方法 post json
|参数|类型|是否必填|说明|
```
response
{
"code": 200,
"msg": "ok",
"data":""
}
```
### bityuan删除备份 内网接口
URL /pai/delbackup
请求方法 post json
|参数|类型|是否必填|说明|
```
response
{
"code": 200,
"msg": "ok",
"data":""
}
```
### bityuan检查是否已备份 内网接口
URL /pai/isbackup
请求方法 post json
|参数|类型|是否必填|说明|
```
response
{
"code": 200,
"msg": "ok",
"data":true
}
```
## 节点部署:
监控程序代码默认放在/home/pi目录下面
......
......@@ -604,14 +604,9 @@ func CheckBackup(c *gin.Context) {
tlog.Error("CheckBackup file not exists","err",backupPath)
appG.Response(http.StatusOK,e.ERROR,false)
return
} else if os.IsExist(err) {
tlog.Error("CheckBackup file exists","err",backupPath)
appG.Response(http.StatusOK,e.SUCCESS,true)
return
}
}
appG.Response(http.StatusOK,e.SUCCESS,true)
return
}
func NodeRecover(c *gin.Context) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment