summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/swagger
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-05-11 18:21:34 +0800
committerGitHub <noreply@github.com>2019-05-11 18:21:34 +0800
commit34eee25bd42d19287e3e33afd169cc979ab61f37 (patch)
tree8def3b2f224745e3fbc0adaec2f01d7f752c443d /routers/api/v1/swagger
parent1658cd04e9918109867f2745ddf760d260681878 (diff)
downloadgitea-34eee25bd42d19287e3e33afd169cc979ab61f37.tar.gz
gitea-34eee25bd42d19287e3e33afd169cc979ab61f37.zip
Move sdk structs to modules/structs (#6905)
* move sdk structs to moduels/structs * fix tests * fix fmt * fix swagger * fix vendor
Diffstat (limited to 'routers/api/v1/swagger')
-rw-r--r--routers/api/v1/swagger/issue.go2
-rw-r--r--routers/api/v1/swagger/key.go2
-rw-r--r--routers/api/v1/swagger/misc.go2
-rw-r--r--routers/api/v1/swagger/options.go2
-rw-r--r--routers/api/v1/swagger/org.go2
-rw-r--r--routers/api/v1/swagger/repo.go2
-rw-r--r--routers/api/v1/swagger/user.go2
7 files changed, 7 insertions, 7 deletions
diff --git a/routers/api/v1/swagger/issue.go b/routers/api/v1/swagger/issue.go
index 16711e9b7e..c06186bf6c 100644
--- a/routers/api/v1/swagger/issue.go
+++ b/routers/api/v1/swagger/issue.go
@@ -5,7 +5,7 @@
package swagger
import (
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// Issue
diff --git a/routers/api/v1/swagger/key.go b/routers/api/v1/swagger/key.go
index b247832387..c3da37af63 100644
--- a/routers/api/v1/swagger/key.go
+++ b/routers/api/v1/swagger/key.go
@@ -5,7 +5,7 @@
package swagger
import (
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// PublicKey
diff --git a/routers/api/v1/swagger/misc.go b/routers/api/v1/swagger/misc.go
index c28ba02dbb..9fd0ab5b00 100644
--- a/routers/api/v1/swagger/misc.go
+++ b/routers/api/v1/swagger/misc.go
@@ -5,7 +5,7 @@
package swagger
import (
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// ServerVersion
diff --git a/routers/api/v1/swagger/options.go b/routers/api/v1/swagger/options.go
index 83f7cfec8d..2df97304aa 100644
--- a/routers/api/v1/swagger/options.go
+++ b/routers/api/v1/swagger/options.go
@@ -6,7 +6,7 @@ package swagger
import (
"code.gitea.io/gitea/modules/auth"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// not actually a response, just a hack to get go-swagger to include definitions
diff --git a/routers/api/v1/swagger/org.go b/routers/api/v1/swagger/org.go
index eb4a1084e2..c962e7b188 100644
--- a/routers/api/v1/swagger/org.go
+++ b/routers/api/v1/swagger/org.go
@@ -5,7 +5,7 @@
package swagger
import (
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// Organization
diff --git a/routers/api/v1/swagger/repo.go b/routers/api/v1/swagger/repo.go
index a23e670dac..e7df0b8f71 100644
--- a/routers/api/v1/swagger/repo.go
+++ b/routers/api/v1/swagger/repo.go
@@ -5,7 +5,7 @@
package swagger
import (
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// Repository
diff --git a/routers/api/v1/swagger/user.go b/routers/api/v1/swagger/user.go
index caaf7df705..a2df40e4cf 100644
--- a/routers/api/v1/swagger/user.go
+++ b/routers/api/v1/swagger/user.go
@@ -6,7 +6,7 @@ package swagger
import (
"code.gitea.io/gitea/models"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// User