diff --git a/service/event/handler.go b/service/event/handler.go index d339294..993bbc6 100644 --- a/service/event/handler.go +++ b/service/event/handler.go @@ -9,5 +9,4 @@ import ( func Handler(r *gin.RouterGroup) { r.Use(middleware.JWTAuth()) r.GET("/info", Info) - r.GET("/query", Query) } diff --git a/service/user/handler.go b/service/user/handler.go index 9b10ee5..3711f1e 100644 --- a/service/user/handler.go +++ b/service/user/handler.go @@ -13,4 +13,5 @@ func Handler(r *gin.RouterGroup) { r.POST("/checkin/submit", CheckinSubmit) r.PATCH("/update", Update) r.GET("/list", List) + r.GET("/query", Query) } diff --git a/service/event/query.go b/service/user/query.go similarity index 97% rename from service/event/query.go rename to service/user/query.go index d1879c1..7301d14 100644 --- a/service/event/query.go +++ b/service/user/query.go @@ -1,4 +1,4 @@ -package event +package user import ( "nixcn-cms/data"