Add attendance_list in service_event, add set user permission in user
update Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
120
docs/docs.go
120
docs/docs.go
@@ -559,6 +559,111 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/event/attendance": {
|
||||
"get": {
|
||||
"description": "Retrieves the list of attendees, including user info and decrypted KYC data for a specified event.",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Event"
|
||||
],
|
||||
"summary": "Get Attendance List",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Event UUID",
|
||||
"name": "event_id",
|
||||
"in": "query",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "latest",
|
||||
"name": "X-Api-Version",
|
||||
"in": "header",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Successful retrieval",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/utils.RespStatus"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/service_event.AttendanceListResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Invalid Input",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/utils.RespStatus"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Unauthorized",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/utils.RespStatus"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/utils.RespStatus"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/event/checkin": {
|
||||
"get": {
|
||||
"security": [
|
||||
@@ -2020,6 +2125,21 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"service_event.AttendanceListResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"attendance_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"kyc_info": {},
|
||||
"kyc_type": {
|
||||
"type": "string"
|
||||
},
|
||||
"user_info": {
|
||||
"$ref": "#/definitions/service_user.UserInfoData"
|
||||
}
|
||||
}
|
||||
},
|
||||
"service_event.CheckinQueryResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -557,6 +557,111 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/event/attendance": {
|
||||
"get": {
|
||||
"description": "Retrieves the list of attendees, including user info and decrypted KYC data for a specified event.",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Event"
|
||||
],
|
||||
"summary": "Get Attendance List",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Event UUID",
|
||||
"name": "event_id",
|
||||
"in": "query",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "latest",
|
||||
"name": "X-Api-Version",
|
||||
"in": "header",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Successful retrieval",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/utils.RespStatus"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/service_event.AttendanceListResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Invalid Input",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/utils.RespStatus"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Unauthorized",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/utils.RespStatus"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/utils.RespStatus"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/event/checkin": {
|
||||
"get": {
|
||||
"security": [
|
||||
@@ -2018,6 +2123,21 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"service_event.AttendanceListResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"attendance_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"kyc_info": {},
|
||||
"kyc_type": {
|
||||
"type": "string"
|
||||
},
|
||||
"user_info": {
|
||||
"$ref": "#/definitions/service_user.UserInfoData"
|
||||
}
|
||||
}
|
||||
},
|
||||
"service_event.CheckinQueryResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -85,6 +85,16 @@ definitions:
|
||||
refresh_token:
|
||||
type: string
|
||||
type: object
|
||||
service_event.AttendanceListResponse:
|
||||
properties:
|
||||
attendance_id:
|
||||
type: string
|
||||
kyc_info: {}
|
||||
kyc_type:
|
||||
type: string
|
||||
user_info:
|
||||
$ref: '#/definitions/service_user.UserInfoData'
|
||||
type: object
|
||||
service_event.CheckinQueryResponse:
|
||||
properties:
|
||||
checkin_at:
|
||||
@@ -487,6 +497,65 @@ paths:
|
||||
summary: Exchange Code for Token
|
||||
tags:
|
||||
- Authentication
|
||||
/event/attendance:
|
||||
get:
|
||||
description: Retrieves the list of attendees, including user info and decrypted
|
||||
KYC data for a specified event.
|
||||
parameters:
|
||||
- description: Event UUID
|
||||
in: query
|
||||
name: event_id
|
||||
required: true
|
||||
type: string
|
||||
- description: latest
|
||||
in: header
|
||||
name: X-Api-Version
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Successful retrieval
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/utils.RespStatus'
|
||||
- properties:
|
||||
data:
|
||||
items:
|
||||
$ref: '#/definitions/service_event.AttendanceListResponse'
|
||||
type: array
|
||||
type: object
|
||||
"400":
|
||||
description: Invalid Input
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/utils.RespStatus'
|
||||
- properties:
|
||||
data:
|
||||
type: object
|
||||
type: object
|
||||
"401":
|
||||
description: Unauthorized
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/utils.RespStatus'
|
||||
- properties:
|
||||
data:
|
||||
type: object
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/utils.RespStatus'
|
||||
- properties:
|
||||
data:
|
||||
type: object
|
||||
type: object
|
||||
summary: Get Attendance List
|
||||
tags:
|
||||
- Event
|
||||
/event/checkin:
|
||||
get:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user