new
This commit is contained in:
25
service/framework/controller/ping/ping.go
Normal file
25
service/framework/controller/ping/ping.go
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
#*****************************************************************************
|
||||
# @author MakerYang
|
||||
# @site mir2.makeryang.com
|
||||
#*****************************************************************************
|
||||
*/
|
||||
|
||||
package PingController
|
||||
|
||||
import (
|
||||
"Service/framework/utils"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func Ping(c *gin.Context) {
|
||||
|
||||
referer, _ := Utils.CheckHeader(c)
|
||||
if !referer {
|
||||
Utils.Error(c, Utils.EmptyData{})
|
||||
return
|
||||
}
|
||||
|
||||
Utils.Success(c, Utils.EmptyData{})
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user