Add lock for attendance swagger doc
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -21,6 +21,7 @@ import (
|
|||||||
// @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Input"
|
// @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Input"
|
||||||
// @Failure 401 {object} utils.RespStatus{data=nil} "Unauthorized"
|
// @Failure 401 {object} utils.RespStatus{data=nil} "Unauthorized"
|
||||||
// @Failure 500 {object} utils.RespStatus{data=nil} "Internal Server Error"
|
// @Failure 500 {object} utils.RespStatus{data=nil} "Internal Server Error"
|
||||||
|
// @Security ApiKeyAuth
|
||||||
// @Router /event/attendance [get]
|
// @Router /event/attendance [get]
|
||||||
func (self *EventHandler) AttendanceList(c *gin.Context) {
|
func (self *EventHandler) AttendanceList(c *gin.Context) {
|
||||||
eventIdStr := c.Query("event_id")
|
eventIdStr := c.Query("event_id")
|
||||||
|
|||||||
@@ -561,6 +561,11 @@ const docTemplate = `{
|
|||||||
},
|
},
|
||||||
"/event/attendance": {
|
"/event/attendance": {
|
||||||
"get": {
|
"get": {
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"ApiKeyAuth": []
|
||||||
|
}
|
||||||
|
],
|
||||||
"description": "Retrieves the list of attendees, including user info and decrypted KYC data for a specified event.",
|
"description": "Retrieves the list of attendees, including user info and decrypted KYC data for a specified event.",
|
||||||
"produces": [
|
"produces": [
|
||||||
"application/json"
|
"application/json"
|
||||||
@@ -2293,7 +2298,7 @@ const docTemplate = `{
|
|||||||
var SwaggerInfo = &swag.Spec{
|
var SwaggerInfo = &swag.Spec{
|
||||||
Version: "1.0",
|
Version: "1.0",
|
||||||
Host: "localhost:8000",
|
Host: "localhost:8000",
|
||||||
BasePath: "/api/v1",
|
BasePath: "/app/api/v1",
|
||||||
Schemes: []string{"http", "https"},
|
Schemes: []string{"http", "https"},
|
||||||
Title: "NixCN CMS API",
|
Title: "NixCN CMS API",
|
||||||
Description: "API Docs based on Gin framework",
|
Description: "API Docs based on Gin framework",
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"version": "1.0"
|
"version": "1.0"
|
||||||
},
|
},
|
||||||
"host": "localhost:8000",
|
"host": "localhost:8000",
|
||||||
"basePath": "/api/v1",
|
"basePath": "/app/api/v1",
|
||||||
"paths": {
|
"paths": {
|
||||||
"/auth/exchange": {
|
"/auth/exchange": {
|
||||||
"post": {
|
"post": {
|
||||||
@@ -559,6 +559,11 @@
|
|||||||
},
|
},
|
||||||
"/event/attendance": {
|
"/event/attendance": {
|
||||||
"get": {
|
"get": {
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"ApiKeyAuth": []
|
||||||
|
}
|
||||||
|
],
|
||||||
"description": "Retrieves the list of attendees, including user info and decrypted KYC data for a specified event.",
|
"description": "Retrieves the list of attendees, including user info and decrypted KYC data for a specified event.",
|
||||||
"produces": [
|
"produces": [
|
||||||
"application/json"
|
"application/json"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
basePath: /api/v1
|
basePath: /app/api/v1
|
||||||
definitions:
|
definitions:
|
||||||
data.EventIndexDoc:
|
data.EventIndexDoc:
|
||||||
properties:
|
properties:
|
||||||
@@ -566,6 +566,8 @@ paths:
|
|||||||
data:
|
data:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
|
security:
|
||||||
|
- ApiKeyAuth: []
|
||||||
summary: Get Attendance List
|
summary: Get Attendance List
|
||||||
tags:
|
tags:
|
||||||
- Event
|
- Event
|
||||||
|
|||||||
Reference in New Issue
Block a user