Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
go_sku_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8b09661f
authored
Dec 01, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
454a5abc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
controller/sku_controller.go
routes/router.go
controller/sku_controller.go
View file @
8b09661f
...
@@ -116,6 +116,6 @@ func Synchronization(ctx *gin.Context) {
...
@@ -116,6 +116,6 @@ func Synchronization(ctx *gin.Context) {
/*
/*
健康监测
健康监测
*/
*/
func
H
ealth
(
ctx
*
gin
.
Context
)
{
func
H
bsdata
(
ctx
*
gin
.
Context
)
{
ctx
.
String
(
200
,
"ok"
)
ctx
.
String
(
200
,
"ok"
)
}
}
routes/router.go
View file @
8b09661f
...
@@ -20,8 +20,8 @@ func InitRouter() *gin.Engine {
...
@@ -20,8 +20,8 @@ func InitRouter() *gin.Engine {
r
.
GET
(
"Synchronization"
,
controller
.
Synchronization
)
r
.
GET
(
"Synchronization"
,
controller
.
Synchronization
)
r
.
POST
(
"Synchronization"
,
controller
.
Synchronization
)
r
.
POST
(
"Synchronization"
,
controller
.
Synchronization
)
//心跳
//心跳
r
.
GET
(
"
Health"
,
controller
.
Health
)
r
.
GET
(
"
hbsdata"
,
controller
.
Hbsdata
)
r
.
POST
(
"
Health"
,
controller
.
Health
)
r
.
POST
(
"
hbsdata"
,
controller
.
Hbsdata
)
return
r
return
r
}
}
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