Remove search engine, add event list api
All checks were successful
Client CMS Check Build (NixCN CMS) TeamCity build finished
Backend Check Build (NixCN CMS) TeamCity build finished

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-30 11:54:13 +08:00
parent 2aa344a11f
commit 39f555b780
26 changed files with 401 additions and 499 deletions

View File

@@ -807,7 +807,7 @@
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/service_event.InfoResponse"
"$ref": "#/definitions/service_event.EventInfoResponse"
}
}
}
@@ -871,14 +871,14 @@
}
}
},
"/user/full": {
"/event/list": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Fetches all user records without pagination. This is typically used for administrative overview or data export.",
"description": "Fetches a list of events with support for pagination via limit and offset. Data is retrieved directly from the database for consistency.",
"consumes": [
"application/json"
],
@@ -886,12 +886,27 @@
"application/json"
],
"tags": [
"User"
"Event"
],
"summary": "List Events",
"parameters": [
{
"type": "string",
"description": "Maximum number of events to return (default 20)",
"name": "limit",
"in": "query"
},
{
"type": "string",
"description": "Number of events to skip",
"name": "offset",
"in": "query",
"required": true
}
],
"summary": "Get Full User Table",
"responses": {
"200": {
"description": "Successful retrieval of full user table",
"description": "Successful paginated list retrieval",
"schema": {
"allOf": [
{
@@ -901,7 +916,28 @@
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/service_user.UserTableResponse"
"type": "array",
"items": {
"$ref": "#/definitions/data.EventIndexDoc"
}
}
}
}
]
}
},
"400": {
"description": "Invalid Input (Missing offset or malformed parameters)",
"schema": {
"allOf": [
{
"$ref": "#/definitions/utils.RespStatus"
},
{
"type": "object",
"properties": {
"data": {
"type": "object"
}
}
}
@@ -909,7 +945,7 @@
}
},
"500": {
"description": "Internal Server Error (Database Error)",
"description": "Internal Server Error (Database query failed)",
"schema": {
"allOf": [
{
@@ -1070,7 +1106,7 @@
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/data.UserSearchDoc"
"$ref": "#/definitions/data.UserIndexDoc"
}
}
}
@@ -1224,45 +1260,30 @@
}
},
"definitions": {
"data.User": {
"data.EventIndexDoc": {
"type": "object",
"properties": {
"allow_public": {
"type": "boolean"
},
"avatar": {
"description": {
"type": "string"
},
"bio": {
"end_time": {
"type": "string"
},
"email": {
"event_id": {
"type": "string"
},
"id": {
"type": "integer"
},
"nickname": {
"name": {
"type": "string"
},
"permission_level": {
"type": "integer"
},
"subtitle": {
"start_time": {
"type": "string"
},
"user_id": {
"type": "string"
},
"username": {
"type": "string"
},
"uuid": {
"type": {
"type": "string"
}
}
},
"data.UserSearchDoc": {
"data.UserIndexDoc": {
"type": "object",
"properties": {
"avatar": {
@@ -1392,7 +1413,7 @@
}
}
},
"service_event.InfoResponse": {
"service_event.EventInfoResponse": {
"type": "object",
"properties": {
"end_time": {
@@ -1438,17 +1459,6 @@
}
}
},
"service_user.UserTableResponse": {
"type": "object",
"properties": {
"user_table": {
"type": "array",
"items": {
"$ref": "#/definitions/data.User"
}
}
}
},
"utils.RespStatus": {
"type": "object",
"properties": {