rename
This commit is contained in:
2024-03-29 12:12:36 +03:00
parent aa92a0ac3f
commit 0af910b0cf
14 changed files with 109 additions and 159 deletions
+1 -2
View File
@@ -1,7 +1,7 @@
package v1
import (
"github.com/gin-gonic/gin"
"git.company.lan/gopkg/gin"
)
type Book struct {
@@ -11,7 +11,6 @@ type Book struct {
Year *uint16 `json:"year"`
}
//
// @Summary Get a list of books in the the store
// @Description get string by ID
// @Accept json
+1 -1
View File
@@ -1,7 +1,7 @@
package v1
import (
"github.com/gin-gonic/gin"
"git.company.lan/gopkg/gin"
)
// @title Swagger Example API
+1 -2
View File
@@ -1,7 +1,7 @@
package v2
import (
"github.com/gin-gonic/gin"
"git.company.lan/gopkg/gin"
)
type Book struct {
@@ -11,7 +11,6 @@ type Book struct {
Year *uint16 `json:"year"`
}
//
// @Summary Get a list of books in the the store
// @Description get string by ID
// @Accept json
+1 -1
View File
@@ -1,7 +1,7 @@
package v2
import (
"github.com/gin-gonic/gin"
"git.company.lan/gopkg/gin"
)
// @title Swagger Example API
+5 -5
View File
@@ -1,12 +1,12 @@
package main
import (
"github.com/gin-gonic/gin"
"git.company.lan/gopkg/gin"
ginSwagger "git.company.lan/gopkg/gin-swagger"
v1 "git.company.lan/gopkg/gin-swagger/example/multiple/api/v1"
v2 "git.company.lan/gopkg/gin-swagger/example/multiple/api/v2"
_ "git.company.lan/gopkg/gin-swagger/example/multiple/docs"
swaggerFiles "github.com/swaggo/files"
ginSwagger "github.com/swaggo/gin-swagger"
v1 "github.com/swaggo/gin-swagger/example/multiple/api/v1"
v2 "github.com/swaggo/gin-swagger/example/multiple/api/v2"
_ "github.com/swaggo/gin-swagger/example/multiple/docs"
)
func main() {