Fix agenda list swagger doc error
All checks were successful
Server Check Build (NixCN CMS) TeamCity build finished

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-03-27 20:46:33 +08:00
parent 5225d7b62d
commit 75be02aed7
4 changed files with 89 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ import (
// @Produce json
// @Security Bearer
// @Param event_id query string true "Event ID"
// @Success 200 {object} utils.RespStatus{data=[]data.AgendaDoc}
// @Success 200 {object} utils.RespStatus{data=[]service_agenda.AgendaListItem}
// @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Input"
// @Failure 403 {object} utils.RespStatus{data=nil} "Unauthorized"
// @Failure 404 {object} utils.RespStatus{data=nil} "Event Not Found"

View File

@@ -65,7 +65,7 @@ const docTemplate = `{
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/data.AgendaDoc"
"$ref": "#/definitions/service_agenda.AgendaListItem"
}
}
}
@@ -3718,6 +3718,38 @@ const docTemplate = `{
}
}
},
"service_agenda.AgendaListItem": {
"type": "object",
"properties": {
"agenda_id": {
"type": "string"
},
"attendance_id": {
"type": "string"
},
"description": {
"type": "string"
},
"end_time": {
"type": "string"
},
"name": {
"type": "string"
},
"nickname": {
"type": "string"
},
"start_time": {
"type": "string"
},
"status": {
"type": "string"
},
"username": {
"type": "string"
}
}
},
"service_agenda.AgendaReviewData": {
"type": "object",
"required": [
@@ -3834,7 +3866,6 @@ const docTemplate = `{
"type": "object",
"required": [
"client_id",
"client_ip",
"email",
"redirect_uri",
"turnstile_token"

View File

@@ -63,7 +63,7 @@
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/data.AgendaDoc"
"$ref": "#/definitions/service_agenda.AgendaListItem"
}
}
}
@@ -3716,6 +3716,38 @@
}
}
},
"service_agenda.AgendaListItem": {
"type": "object",
"properties": {
"agenda_id": {
"type": "string"
},
"attendance_id": {
"type": "string"
},
"description": {
"type": "string"
},
"end_time": {
"type": "string"
},
"name": {
"type": "string"
},
"nickname": {
"type": "string"
},
"start_time": {
"type": "string"
},
"status": {
"type": "string"
},
"username": {
"type": "string"
}
}
},
"service_agenda.AgendaReviewData": {
"type": "object",
"required": [
@@ -3832,7 +3864,6 @@
"type": "object",
"required": [
"client_id",
"client_ip",
"email",
"redirect_uri",
"turnstile_token"

View File

@@ -58,6 +58,27 @@ definitions:
permission_level:
type: integer
type: object
service_agenda.AgendaListItem:
properties:
agenda_id:
type: string
attendance_id:
type: string
description:
type: string
end_time:
type: string
name:
type: string
nickname:
type: string
start_time:
type: string
status:
type: string
username:
type: string
type: object
service_agenda.AgendaReviewData:
properties:
agenda_id:
@@ -149,7 +170,6 @@ definitions:
type: string
required:
- client_id
- client_ip
- email
- redirect_uri
- turnstile_token
@@ -588,7 +608,7 @@ paths:
- properties:
data:
items:
$ref: '#/definitions/data.AgendaDoc'
$ref: '#/definitions/service_agenda.AgendaListItem'
type: array
type: object
"400":