From fb7ecaffe92ae1f16d2f70e340e06e59922c7b53 Mon Sep 17 00:00:00 2001 From: Asai Neko Date: Sun, 28 Dec 2025 01:07:49 +0800 Subject: [PATCH] Move event query to user query Signed-off-by: Asai Neko --- service/event/handler.go | 1 - service/user/handler.go | 1 + service/{event => user}/query.go | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename service/{event => user}/query.go (97%) 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"