@@ -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"
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user