mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
fix swaggo (#454)
This commit is contained in:
@@ -21,7 +21,7 @@ import (
|
|||||||
// @Security BearerAuth
|
// @Security BearerAuth
|
||||||
// @Tags auth required
|
// @Tags auth required
|
||||||
// @Produce json
|
// @Produce json
|
||||||
// @Success 200 {object} model.CommonResponse[[]*model.DDNSProfile]
|
// @Success 200 {object} model.CommonResponse[[]model.DDNSProfile]
|
||||||
// @Router /ddns [get]
|
// @Router /ddns [get]
|
||||||
func listDDNS(c *gin.Context) ([]*model.DDNSProfile, error) {
|
func listDDNS(c *gin.Context) ([]*model.DDNSProfile, error) {
|
||||||
var ddnsProfiles []*model.DDNSProfile
|
var ddnsProfiles []*model.DDNSProfile
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import (
|
|||||||
// @Description List notification
|
// @Description List notification
|
||||||
// @Tags auth required
|
// @Tags auth required
|
||||||
// @Produce json
|
// @Produce json
|
||||||
// @Success 200 {object} model.CommonResponse[[]*model.Notification]
|
// @Success 200 {object} model.CommonResponse[[]model.Notification]
|
||||||
// @Router /notification [get]
|
// @Router /notification [get]
|
||||||
func listNotification(c *gin.Context) ([]*model.Notification, error) {
|
func listNotification(c *gin.Context) ([]*model.Notification, error) {
|
||||||
singleton.NotificationsLock.RLock()
|
singleton.NotificationsLock.RLock()
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import (
|
|||||||
// @Description List server
|
// @Description List server
|
||||||
// @Tags auth required
|
// @Tags auth required
|
||||||
// @Produce json
|
// @Produce json
|
||||||
// @Success 200 {object} model.CommonResponse[[]*model.Server]
|
// @Success 200 {object} model.CommonResponse[[]model.Server]
|
||||||
// @Router /server [get]
|
// @Router /server [get]
|
||||||
func listServer(c *gin.Context) ([]*model.Server, error) {
|
func listServer(c *gin.Context) ([]*model.Server, error) {
|
||||||
singleton.SortedServerLock.RLock()
|
singleton.SortedServerLock.RLock()
|
||||||
|
|||||||
Reference in New Issue
Block a user