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
44b5fb82
Commit
44b5fb82
authored
Dec 25, 2019
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
0fae3ee7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
node.go
routers/api/v1/node.go
+4
-2
No files found.
routers/api/v1/node.go
View file @
44b5fb82
...
@@ -239,7 +239,10 @@ func ResetNode(c* gin.Context){
...
@@ -239,7 +239,10 @@ func ResetNode(c* gin.Context){
func
UpdateDetail
(
c
*
gin
.
Context
){
func
UpdateDetail
(
c
*
gin
.
Context
){
appG
:=
app
.
Gin
{
C
:
c
}
appG
:=
app
.
Gin
{
C
:
c
}
appG
.
Response
(
http
.
StatusOK
,
e
.
SUCCESS
,
app
.
UpdateInfo
)
appG
.
Response
(
http
.
StatusOK
,
e
.
SUCCESS
,
gin
.
H
{
"total"
:
app
.
UpdateInfo
.
Total
,
"current"
:
app
.
UpdateInfo
.
Current
,
})
}
}
//get current version and latest version
//get current version and latest version
...
@@ -268,5 +271,4 @@ func NodeInfo(c *gin.Context){
...
@@ -268,5 +271,4 @@ func NodeInfo(c *gin.Context){
return
return
}
}
appG
.
Response
(
http
.
StatusOK
,
e
.
SUCCESS
,
"node is running"
)
appG
.
Response
(
http
.
StatusOK
,
e
.
SUCCESS
,
"node is running"
)
}
}
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