Remove search engine, add event list api
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
98
docs/docs.go
98
docs/docs.go
@@ -809,7 +809,7 @@ const docTemplate = `{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/definitions/service_event.InfoResponse"
|
||||
"$ref": "#/definitions/service_event.EventInfoResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -873,14 +873,14 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/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"
|
||||
],
|
||||
@@ -888,12 +888,27 @@ const docTemplate = `{
|
||||
"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": [
|
||||
{
|
||||
@@ -903,7 +918,28 @@ const docTemplate = `{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -911,7 +947,7 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error (Database Error)",
|
||||
"description": "Internal Server Error (Database query failed)",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
@@ -1072,7 +1108,7 @@ const docTemplate = `{
|
||||
"data": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/data.UserSearchDoc"
|
||||
"$ref": "#/definitions/data.UserIndexDoc"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1226,45 +1262,30 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"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": {
|
||||
@@ -1394,7 +1415,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"service_event.InfoResponse": {
|
||||
"service_event.EventInfoResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"end_time": {
|
||||
@@ -1440,17 +1461,6 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"service_user.UserTableResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"user_table": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/data.User"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"utils.RespStatus": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user