Add event joined router
All checks were successful
Client CMS Check Build (NixCN CMS) TeamCity build finished
Backend Check Build (NixCN CMS) TeamCity build finished

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-02-08 14:49:11 +08:00
parent 0e51c1ee39
commit bd23a53fbb
2 changed files with 1 additions and 4 deletions

View File

@@ -17,8 +17,6 @@ import (
// @Accept json // @Accept json
// @Produce json // @Produce json
// @Param event_id query string true "Event UUID" // @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" // @Success 200 {object} utils.RespStatus{data=service_event.CheckinResponse} "Successfully generated code"
// @Failure 401 {object} utils.RespStatus{data=nil} "Missing User ID / Unauthorized" // @Failure 401 {object} utils.RespStatus{data=nil} "Missing User ID / Unauthorized"
// @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Input" // @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Input"
@@ -85,8 +83,6 @@ func (self *EventHandler) Checkin(c *gin.Context) {
// @Tags Event // @Tags Event
// @Accept json // @Accept json
// @Produce 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" // @Param payload body service_event.CheckinSubmitData true "Checkin Code Data"
// @Success 200 {object} utils.RespStatus{data=nil} "Attendance marked successfully" // @Success 200 {object} utils.RespStatus{data=nil} "Attendance marked successfully"
// @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Code or Input" // @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Code or Input"

View File

@@ -23,4 +23,5 @@ func ApiHandler(r *gin.RouterGroup) {
r.POST("/join", eventHandler.Join) r.POST("/join", eventHandler.Join)
r.GET("/list", eventHandler.List) r.GET("/list", eventHandler.List)
r.GET("/attendance", middleware.Permission(40), eventHandler.AttendanceList) r.GET("/attendance", middleware.Permission(40), eventHandler.AttendanceList)
r.GET("/joined", eventHandler.Joined)
} }