A:增加默认资料库写入
This commit is contained in:
1 parent
592b01a89b
commit
76d747bbd9
6 files changed
+36
-13
No files matched your search
@@ -19,14 +19,17 @@ func HealthCheck(c *gin.Context) {
|
||||
})
|
||||
}
|
||||
|
||||
// BasicResponse 健康检查
|
||||
func BasicResponse(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, model.Response{
|
||||
Code: http.StatusOK,
|
||||
Message: "OK",
|
||||
Data: map[string]interface{}{
|
||||
"timestamp": time.Now().Unix(),
|
||||
"version": "1.0.0",
|
||||
},
|
||||
Data: "hi",
|
||||
})
|
||||
}
|
||||
func BasicResponseV1(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, model.Response{
|
||||
Code: http.StatusOK,
|
||||
Message: "OK",
|
||||
Data: "hi, this is v1",
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user