A:增加默认资料库写入

This commit is contained in:
jimmy committed 2025-06-15 22:44:48 +08:00
1 parent 592b01a89b
commit 76d747bbd9
6 files changed
+36 -13

No files matched your search

+8 -5
View File
@@ -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",
})
}