Mod swagger docs for 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-02-05 18:28:16 +08:00
parent afd37c620a
commit a1cac494dc
4 changed files with 10 additions and 13 deletions

View File

@@ -16,8 +16,8 @@ import (
// @Tags Event
// @Accept json
// @Produce json
// @Param limit query string false "Maximum number of events to return (default 20)"
// @Param offset query string true "Number of events to skip"
// @Param limit query int false "Maximum number of events to return (default 20)"
// @Param offset query int false "Number of events to skip"
// @Param X-Api-Version header string true "latest"
// @Success 200 {object} utils.RespStatus{data=[]data.EventIndexDoc} "Successful paginated list retrieval"
// @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Input (Missing offset or malformed parameters)"