@@ -16,11 +16,11 @@ import (
|
|||||||
// @Tags Event
|
// @Tags Event
|
||||||
// @Accept json
|
// @Accept json
|
||||||
// @Produce json
|
// @Produce json
|
||||||
// @Param event_id query string true "Event UUID"
|
// @Param event_id query string true "Event UUID"
|
||||||
// @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"
|
||||||
// @Failure 500 {object} utils.RespStatus{data=nil} "Internal Server Error"
|
// @Failure 500 {object} utils.RespStatus{data=nil} "Internal Server Error"
|
||||||
// @Security ApiKeyAuth
|
// @Security ApiKeyAuth
|
||||||
// @Router /event/checkin [get]
|
// @Router /event/checkin [get]
|
||||||
func (self *EventHandler) Checkin(c *gin.Context) {
|
func (self *EventHandler) Checkin(c *gin.Context) {
|
||||||
@@ -83,9 +83,9 @@ func (self *EventHandler) Checkin(c *gin.Context) {
|
|||||||
// @Tags Event
|
// @Tags Event
|
||||||
// @Accept json
|
// @Accept json
|
||||||
// @Produce json
|
// @Produce json
|
||||||
// @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"
|
||||||
// @Security ApiKeyAuth
|
// @Security ApiKeyAuth
|
||||||
// @Router /event/checkin/submit [post]
|
// @Router /event/checkin/submit [post]
|
||||||
func (self *EventHandler) CheckinSubmit(c *gin.Context) {
|
func (self *EventHandler) CheckinSubmit(c *gin.Context) {
|
||||||
|
|||||||
28
docs/docs.go
28
docs/docs.go
@@ -746,20 +746,6 @@ const docTemplate = `{
|
|||||||
"name": "event_id",
|
"name": "event_id",
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"required": true
|
"required": true
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"description": "latest",
|
|
||||||
"name": "X-Api-Version",
|
|
||||||
"in": "header",
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"description": "Bearer token",
|
|
||||||
"name": "Authorization",
|
|
||||||
"in": "header",
|
|
||||||
"required": true
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
@@ -942,20 +928,6 @@ const docTemplate = `{
|
|||||||
],
|
],
|
||||||
"summary": "Submit Check-in Code",
|
"summary": "Submit Check-in Code",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"description": "latest",
|
|
||||||
"name": "X-Api-Version",
|
|
||||||
"in": "header",
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"description": "Bearer token",
|
|
||||||
"name": "Authorization",
|
|
||||||
"in": "header",
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"description": "Checkin Code Data",
|
"description": "Checkin Code Data",
|
||||||
"name": "payload",
|
"name": "payload",
|
||||||
|
|||||||
@@ -744,20 +744,6 @@
|
|||||||
"name": "event_id",
|
"name": "event_id",
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"required": true
|
"required": true
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"description": "latest",
|
|
||||||
"name": "X-Api-Version",
|
|
||||||
"in": "header",
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"description": "Bearer token",
|
|
||||||
"name": "Authorization",
|
|
||||||
"in": "header",
|
|
||||||
"required": true
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
@@ -940,20 +926,6 @@
|
|||||||
],
|
],
|
||||||
"summary": "Submit Check-in Code",
|
"summary": "Submit Check-in Code",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"description": "latest",
|
|
||||||
"name": "X-Api-Version",
|
|
||||||
"in": "header",
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"description": "Bearer token",
|
|
||||||
"name": "Authorization",
|
|
||||||
"in": "header",
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"description": "Checkin Code Data",
|
"description": "Checkin Code Data",
|
||||||
"name": "payload",
|
"name": "payload",
|
||||||
|
|||||||
@@ -619,16 +619,6 @@ paths:
|
|||||||
name: event_id
|
name: event_id
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
- description: latest
|
|
||||||
in: header
|
|
||||||
name: X-Api-Version
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
- description: Bearer token
|
|
||||||
in: header
|
|
||||||
name: Authorization
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
produces:
|
produces:
|
||||||
- application/json
|
- application/json
|
||||||
responses:
|
responses:
|
||||||
@@ -726,16 +716,6 @@ paths:
|
|||||||
- application/json
|
- application/json
|
||||||
description: Submits the generated code to mark the user as attended.
|
description: Submits the generated code to mark the user as attended.
|
||||||
parameters:
|
parameters:
|
||||||
- description: latest
|
|
||||||
in: header
|
|
||||||
name: X-Api-Version
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
- description: Bearer token
|
|
||||||
in: header
|
|
||||||
name: Authorization
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
- description: Checkin Code Data
|
- description: Checkin Code Data
|
||||||
in: body
|
in: body
|
||||||
name: payload
|
name: payload
|
||||||
|
|||||||
Reference in New Issue
Block a user