Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chain33-pai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
szh
chain33-pai
Commits
e3a0027f
Commit
e3a0027f
authored
Jun 02, 2020
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Readme
parent
ea4058df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
5 deletions
+60
-5
README.md
README.md
+60
-0
node.go
routers/api/v1/node.go
+0
-5
No files found.
README.md
View file @
e3a0027f
...
...
@@ -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目录下面
...
...
routers/api/v1/node.go
View file @
e3a0027f
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment