From d230ee7cf25cd80db5edd12c1254c7baf78751e4 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Sat, 16 Nov 2024 11:45:47 +0200 Subject: [PATCH] Fix errors in swagger docs --- handlers/card.go | 4 ++-- handlers/category.go | 4 ++-- handlers/debt.go | 4 ++-- handlers/expense.go | 4 ++-- handlers/income.go | 4 ++-- handlers/type.go | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/handlers/card.go b/handlers/card.go index 99c46b2..ee33400 100644 --- a/handlers/card.go +++ b/handlers/card.go @@ -63,8 +63,8 @@ func CardGetAll(c *gin.Context) { c.JSON(200, ret) } -// @Summary Get card by id -// @Description Get card by id +// @Summary Add card +// @Description Add card // @Tags card // @Accept json // @Produce json diff --git a/handlers/category.go b/handlers/category.go index 2139780..16e379b 100644 --- a/handlers/category.go +++ b/handlers/category.go @@ -62,8 +62,8 @@ func CategoryGetAll(c *gin.Context) { c.JSON(200, ret) } -// @Summary Get category by id -// @Description Get category by id +// @Summary Add category +// @Description Add category // @Tags category // @Accept json // @Produce json diff --git a/handlers/debt.go b/handlers/debt.go index bd6ce7f..6c71f01 100644 --- a/handlers/debt.go +++ b/handlers/debt.go @@ -35,8 +35,8 @@ func DebtGetId(c *gin.Context) { })(c) } -// @Summary Get debt by id -// @Description Get debt by id +// @Summary Add debt +// @Description Add debt // @Tags debt // @Accept json // @Produce json diff --git a/handlers/expense.go b/handlers/expense.go index b2b44fa..a6ce3f9 100644 --- a/handlers/expense.go +++ b/handlers/expense.go @@ -65,8 +65,8 @@ func ExpenseGetAll(c *gin.Context) { c.JSON(200, ret) } -// @Summary Add expense by id -// @Description Add expense by id +// @Summary Add expense +// @Description Add expense // @Tags expense // @Accept json // @Produce json diff --git a/handlers/income.go b/handlers/income.go index 44b94b0..b5bad04 100644 --- a/handlers/income.go +++ b/handlers/income.go @@ -73,8 +73,8 @@ func IncomeGetId(c *gin.Context) { c.JSON(200, ret) } -// @Summary Get income by id -// @Description Get income by id +// @Summary Add income +// @Description Add income // @Tags income // @Accept json // @Produce json diff --git a/handlers/type.go b/handlers/type.go index 633e1fc..3e4904a 100644 --- a/handlers/type.go +++ b/handlers/type.go @@ -63,8 +63,8 @@ func TypeGetAll(c *gin.Context) { c.JSON(200, ret) } -// @Summary Get dbtype by id -// @Description Get dbtype by id +// @Summary Add dbtype +// @Description Add dbtype // @Tags dbtype // @Accept json // @Produce json