From c632d41702bd1c2e5097fa9e2140389e3f1a98ca Mon Sep 17 00:00:00 2001 From: UUBulb <35923940+uubulb@users.noreply.github.com> Date: Thu, 24 Oct 2024 14:11:06 +0800 Subject: [PATCH] fix swaggo (#454) --- cmd/dashboard/controller/ddns.go | 2 +- cmd/dashboard/controller/notification.go | 2 +- cmd/dashboard/controller/server.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/dashboard/controller/ddns.go b/cmd/dashboard/controller/ddns.go index 471e2db..47c0345 100644 --- a/cmd/dashboard/controller/ddns.go +++ b/cmd/dashboard/controller/ddns.go @@ -21,7 +21,7 @@ import ( // @Security BearerAuth // @Tags auth required // @Produce json -// @Success 200 {object} model.CommonResponse[[]*model.DDNSProfile] +// @Success 200 {object} model.CommonResponse[[]model.DDNSProfile] // @Router /ddns [get] func listDDNS(c *gin.Context) ([]*model.DDNSProfile, error) { var ddnsProfiles []*model.DDNSProfile diff --git a/cmd/dashboard/controller/notification.go b/cmd/dashboard/controller/notification.go index af1b433..e582d3a 100644 --- a/cmd/dashboard/controller/notification.go +++ b/cmd/dashboard/controller/notification.go @@ -18,7 +18,7 @@ import ( // @Description List notification // @Tags auth required // @Produce json -// @Success 200 {object} model.CommonResponse[[]*model.Notification] +// @Success 200 {object} model.CommonResponse[[]model.Notification] // @Router /notification [get] func listNotification(c *gin.Context) ([]*model.Notification, error) { singleton.NotificationsLock.RLock() diff --git a/cmd/dashboard/controller/server.go b/cmd/dashboard/controller/server.go index 4825b69..85566ca 100644 --- a/cmd/dashboard/controller/server.go +++ b/cmd/dashboard/controller/server.go @@ -19,7 +19,7 @@ import ( // @Description List server // @Tags auth required // @Produce json -// @Success 200 {object} model.CommonResponse[[]*model.Server] +// @Success 200 {object} model.CommonResponse[[]model.Server] // @Router /server [get] func listServer(c *gin.Context) ([]*model.Server, error) { singleton.SortedServerLock.RLock()