diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-05-11 18:21:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-11 18:21:34 +0800 |
commit | 34eee25bd42d19287e3e33afd169cc979ab61f37 (patch) | |
tree | 8def3b2f224745e3fbc0adaec2f01d7f752c443d /routers/api/v1/admin | |
parent | 1658cd04e9918109867f2745ddf760d260681878 (diff) | |
download | gitea-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/admin')
-rw-r--r-- | routers/api/v1/admin/org.go | 2 | ||||
-rw-r--r-- | routers/api/v1/admin/repo.go | 2 | ||||
-rw-r--r-- | routers/api/v1/admin/user.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/routers/api/v1/admin/org.go b/routers/api/v1/admin/org.go index 03263a86dd..fba41a8cfe 100644 --- a/routers/api/v1/admin/org.go +++ b/routers/api/v1/admin/org.go @@ -6,7 +6,7 @@ package admin import ( - api "code.gitea.io/sdk/gitea" + api "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/models" "code.gitea.io/gitea/modules/context" diff --git a/routers/api/v1/admin/repo.go b/routers/api/v1/admin/repo.go index d883e2cbd0..aaa7957a50 100644 --- a/routers/api/v1/admin/repo.go +++ b/routers/api/v1/admin/repo.go @@ -5,7 +5,7 @@ package admin import ( - api "code.gitea.io/sdk/gitea" + api "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/routers/api/v1/repo" diff --git a/routers/api/v1/admin/user.go b/routers/api/v1/admin/user.go index 0c7088151f..6dc3b0325b 100644 --- a/routers/api/v1/admin/user.go +++ b/routers/api/v1/admin/user.go @@ -10,9 +10,9 @@ import ( "code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" + api "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/routers/api/v1/convert" "code.gitea.io/gitea/routers/api/v1/user" - api "code.gitea.io/sdk/gitea" ) func parseLoginSource(ctx *context.APIContext, u *models.User, sourceID int64, loginName string) { |