From bd23a53fbb9f5527642d538a6f943277d83c0e04 Mon Sep 17 00:00:00 2001 From: Asai Neko Date: Sun, 8 Feb 2026 14:49:11 +0800 Subject: [PATCH] Add event joined router Signed-off-by: Asai Neko --- api/event/checkin.go | 4 ---- api/event/handler.go | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/api/event/checkin.go b/api/event/checkin.go index b6ed5f7..e21be73 100644 --- a/api/event/checkin.go +++ b/api/event/checkin.go @@ -17,8 +17,6 @@ import ( // @Accept json // @Produce json // @Param event_id query string true "Event UUID" -// @Param X-Api-Version header string true "latest" -// @Param Authorization header string true "Bearer token" // @Success 200 {object} utils.RespStatus{data=service_event.CheckinResponse} "Successfully generated code" // @Failure 401 {object} utils.RespStatus{data=nil} "Missing User ID / Unauthorized" // @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Input" @@ -85,8 +83,6 @@ func (self *EventHandler) Checkin(c *gin.Context) { // @Tags Event // @Accept json // @Produce json -// @Param X-Api-Version header string true "latest" -// @Param Authorization header string true "Bearer token" // @Param payload body service_event.CheckinSubmitData true "Checkin Code Data" // @Success 200 {object} utils.RespStatus{data=nil} "Attendance marked successfully" // @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Code or Input" diff --git a/api/event/handler.go b/api/event/handler.go index 4fabe8f..40bbc93 100644 --- a/api/event/handler.go +++ b/api/event/handler.go @@ -23,4 +23,5 @@ func ApiHandler(r *gin.RouterGroup) { r.POST("/join", eventHandler.Join) r.GET("/list", eventHandler.List) r.GET("/attendance", middleware.Permission(40), eventHandler.AttendanceList) + r.GET("/joined", eventHandler.Joined) }