|
@@ -3,7 +3,7 @@ package route
|
|
|
import (
|
|
|
"youngee_b_api/handler"
|
|
|
"youngee_b_api/middleware"
|
|
|
-
|
|
|
+ "youngee_b_api/model/http_model"
|
|
|
"github.com/gin-gonic/gin"
|
|
|
"github.com/sirupsen/logrus"
|
|
|
)
|
|
@@ -13,14 +13,14 @@ func InitRoute(r *gin.Engine) {
|
|
|
r.POST("/register", handler.WrapRegisterHandler)
|
|
|
r.POST("/sendCode", handler.WrapSendCodeHandler)
|
|
|
r.POST("/login", handler.WrapCodeLoginHandler)
|
|
|
- //r.GET("/test/ping", func(c *gin.Context) {
|
|
|
- // resp := http_model.CommonResponse{
|
|
|
- // Status: 0,
|
|
|
- // Message: "",
|
|
|
- // Data: "ping",
|
|
|
- // }
|
|
|
- // c.JSON(200, resp)
|
|
|
- //})
|
|
|
+ r.GET("/test/ping", func(c *gin.Context) {
|
|
|
+ resp := http_model.CommonResponse{
|
|
|
+ Status: 0,
|
|
|
+ Message: "",
|
|
|
+ Data: "ping",
|
|
|
+ }
|
|
|
+ c.JSON(200, resp)
|
|
|
+ })
|
|
|
//r.Any("/testDemo", func(c *gin.Context) {
|
|
|
// resp := http_model.CommonResponse{
|
|
|
// Status: 0,
|