Add attendance_list in service_event, add set user permission in user
All checks were successful
Client CMS Check Build (NixCN CMS) TeamCity build finished
Backend Check Build (NixCN CMS) TeamCity build finished

update

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-02-02 21:31:33 +08:00
parent 9c945d69a9
commit 99424ee55f
15 changed files with 733 additions and 30 deletions

View File

@@ -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": {