summaryrefslogtreecommitdiffstats
path: root/routers/api
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api')
-rw-r--r--routers/api/v1/admin/org.go2
-rw-r--r--routers/api/v1/admin/repo.go2
-rw-r--r--routers/api/v1/admin/user.go2
-rw-r--r--routers/api/v1/api.go2
-rw-r--r--routers/api/v1/convert/convert.go2
-rw-r--r--routers/api/v1/misc/markdown.go2
-rw-r--r--routers/api/v1/misc/markdown_test.go2
-rw-r--r--routers/api/v1/misc/version.go4
-rw-r--r--routers/api/v1/org/hook.go2
-rw-r--r--routers/api/v1/org/member.go2
-rw-r--r--routers/api/v1/org/org.go2
-rw-r--r--routers/api/v1/org/team.go2
-rw-r--r--routers/api/v1/repo/branch.go2
-rw-r--r--routers/api/v1/repo/collaborators.go2
-rw-r--r--routers/api/v1/repo/commits.go2
-rw-r--r--routers/api/v1/repo/file.go2
-rw-r--r--routers/api/v1/repo/fork.go2
-rw-r--r--routers/api/v1/repo/git_hook.go2
-rw-r--r--routers/api/v1/repo/git_ref.go2
-rw-r--r--routers/api/v1/repo/hook.go2
-rw-r--r--routers/api/v1/repo/issue.go2
-rw-r--r--routers/api/v1/repo/issue_comment.go2
-rw-r--r--routers/api/v1/repo/issue_label.go2
-rw-r--r--routers/api/v1/repo/issue_tracked_time.go2
-rw-r--r--routers/api/v1/repo/key.go2
-rw-r--r--routers/api/v1/repo/label.go2
-rw-r--r--routers/api/v1/repo/milestone.go2
-rw-r--r--routers/api/v1/repo/pull.go2
-rw-r--r--routers/api/v1/repo/release.go2
-rw-r--r--routers/api/v1/repo/release_attachment.go2
-rw-r--r--routers/api/v1/repo/repo.go2
-rw-r--r--routers/api/v1/repo/star.go2
-rw-r--r--routers/api/v1/repo/status.go2
-rw-r--r--routers/api/v1/repo/subscriber.go2
-rw-r--r--routers/api/v1/repo/tag.go2
-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
-rw-r--r--routers/api/v1/user/app.go2
-rw-r--r--routers/api/v1/user/email.go2
-rw-r--r--routers/api/v1/user/follower.go2
-rw-r--r--routers/api/v1/user/gpg_key.go2
-rw-r--r--routers/api/v1/user/key.go2
-rw-r--r--routers/api/v1/user/repo.go2
-rw-r--r--routers/api/v1/user/star.go2
-rw-r--r--routers/api/v1/user/user.go2
-rw-r--r--routers/api/v1/user/watch.go2
-rw-r--r--routers/api/v1/utils/hook.go2
52 files changed, 53 insertions, 53 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) {
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index b68bf4b0b8..dfe705f7a8 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -65,13 +65,13 @@ 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/admin"
"code.gitea.io/gitea/routers/api/v1/misc"
"code.gitea.io/gitea/routers/api/v1/org"
"code.gitea.io/gitea/routers/api/v1/repo"
_ "code.gitea.io/gitea/routers/api/v1/swagger" // for swagger generation
"code.gitea.io/gitea/routers/api/v1/user"
- api "code.gitea.io/sdk/gitea"
"github.com/go-macaron/binding"
"gopkg.in/macaron.v1"
diff --git a/routers/api/v1/convert/convert.go b/routers/api/v1/convert/convert.go
index f132dedb55..74fd9b3afd 100644
--- a/routers/api/v1/convert/convert.go
+++ b/routers/api/v1/convert/convert.go
@@ -11,8 +11,8 @@ import (
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/markup"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/util"
- api "code.gitea.io/sdk/gitea"
"github.com/Unknwon/com"
)
diff --git a/routers/api/v1/misc/markdown.go b/routers/api/v1/misc/markdown.go
index 9ae7a6c58c..06e344a15b 100644
--- a/routers/api/v1/misc/markdown.go
+++ b/routers/api/v1/misc/markdown.go
@@ -7,7 +7,7 @@ package misc
import (
"strings"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/markup/markdown"
diff --git a/routers/api/v1/misc/markdown_test.go b/routers/api/v1/misc/markdown_test.go
index 9de1f77f60..6cb6b92f9f 100644
--- a/routers/api/v1/misc/markdown_test.go
+++ b/routers/api/v1/misc/markdown_test.go
@@ -10,8 +10,8 @@ import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/util"
- api "code.gitea.io/sdk/gitea"
"github.com/go-macaron/inject"
"github.com/stretchr/testify/assert"
diff --git a/routers/api/v1/misc/version.go b/routers/api/v1/misc/version.go
index 20e0a60c72..803f5ac716 100644
--- a/routers/api/v1/misc/version.go
+++ b/routers/api/v1/misc/version.go
@@ -7,7 +7,7 @@ package misc
import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
- "code.gitea.io/sdk/gitea"
+ "code.gitea.io/gitea/modules/structs"
)
// Version shows the version of the Gitea server
@@ -20,5 +20,5 @@ func Version(ctx *context.APIContext) {
// responses:
// "200":
// "$ref": "#/responses/ServerVersion"
- ctx.JSON(200, &gitea.ServerVersion{Version: setting.AppVer})
+ ctx.JSON(200, &structs.ServerVersion{Version: setting.AppVer})
}
diff --git a/routers/api/v1/org/hook.go b/routers/api/v1/org/hook.go
index 5825de2c1c..128cfec328 100644
--- a/routers/api/v1/org/hook.go
+++ b/routers/api/v1/org/hook.go
@@ -5,7 +5,7 @@
package org
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/org/member.go b/routers/api/v1/org/member.go
index 33c906ec6a..ad60dfbda5 100644
--- a/routers/api/v1/org/member.go
+++ b/routers/api/v1/org/member.go
@@ -7,7 +7,7 @@ package org
import (
"fmt"
- 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/org/org.go b/routers/api/v1/org/org.go
index e3916046f0..e1d0663f05 100644
--- a/routers/api/v1/org/org.go
+++ b/routers/api/v1/org/org.go
@@ -6,7 +6,7 @@
package org
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/org/team.go b/routers/api/v1/org/team.go
index 340dd96c7e..40b6e008b9 100644
--- a/routers/api/v1/org/team.go
+++ b/routers/api/v1/org/team.go
@@ -6,7 +6,7 @@
package org
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/repo/branch.go b/routers/api/v1/repo/branch.go
index b9a23d3b51..1aaae8723b 100644
--- a/routers/api/v1/repo/branch.go
+++ b/routers/api/v1/repo/branch.go
@@ -10,7 +10,7 @@ import (
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/routers/api/v1/convert"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// GetBranch get a branch of a repository
diff --git a/routers/api/v1/repo/collaborators.go b/routers/api/v1/repo/collaborators.go
index be4a65f9c8..98daf2c9d5 100644
--- a/routers/api/v1/repo/collaborators.go
+++ b/routers/api/v1/repo/collaborators.go
@@ -11,7 +11,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// ListCollaborators list a repository's collaborators
diff --git a/routers/api/v1/repo/commits.go b/routers/api/v1/repo/commits.go
index d29f188535..3f3bd13268 100644
--- a/routers/api/v1/repo/commits.go
+++ b/routers/api/v1/repo/commits.go
@@ -12,7 +12,7 @@ import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/setting"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// GetSingleCommit get a commit via
diff --git a/routers/api/v1/repo/file.go b/routers/api/v1/repo/file.go
index 10108e11c3..db952263e2 100644
--- a/routers/api/v1/repo/file.go
+++ b/routers/api/v1/repo/file.go
@@ -13,8 +13,8 @@ import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/repofiles"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/routers/repo"
- api "code.gitea.io/sdk/gitea"
)
// GetRawFile get a file by path on a repository
diff --git a/routers/api/v1/repo/fork.go b/routers/api/v1/repo/fork.go
index d10f668712..c004544f58 100644
--- a/routers/api/v1/repo/fork.go
+++ b/routers/api/v1/repo/fork.go
@@ -8,7 +8,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// ListForks list a repository's forks
diff --git a/routers/api/v1/repo/git_hook.go b/routers/api/v1/repo/git_hook.go
index b7a8691cd3..80610356dd 100644
--- a/routers/api/v1/repo/git_hook.go
+++ b/routers/api/v1/repo/git_hook.go
@@ -7,8 +7,8 @@ package repo
import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/git"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/routers/api/v1/convert"
- api "code.gitea.io/sdk/gitea"
)
// ListGitHooks list all Git hooks of a repository
diff --git a/routers/api/v1/repo/git_ref.go b/routers/api/v1/repo/git_ref.go
index 6a6ed9ff36..2ec8749058 100644
--- a/routers/api/v1/repo/git_ref.go
+++ b/routers/api/v1/repo/git_ref.go
@@ -7,7 +7,7 @@ package repo
import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/git"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// GetGitAllRefs get ref or an list all the refs of a repository
diff --git a/routers/api/v1/repo/hook.go b/routers/api/v1/repo/hook.go
index ef9d5ac1d3..b35a10ac3d 100644
--- a/routers/api/v1/repo/hook.go
+++ b/routers/api/v1/repo/hook.go
@@ -8,9 +8,9 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/git"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/routers/api/v1/convert"
"code.gitea.io/gitea/routers/api/v1/utils"
- api "code.gitea.io/sdk/gitea"
)
// ListHooks list all hooks of a repository
diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go
index c14fc78ee4..daaa3d5985 100644
--- a/routers/api/v1/repo/issue.go
+++ b/routers/api/v1/repo/issue.go
@@ -18,7 +18,7 @@ import (
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/util"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// ListIssues list the issues of a repository
diff --git a/routers/api/v1/repo/issue_comment.go b/routers/api/v1/repo/issue_comment.go
index 7a720deab2..14e81222e3 100644
--- a/routers/api/v1/repo/issue_comment.go
+++ b/routers/api/v1/repo/issue_comment.go
@@ -12,7 +12,7 @@ import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/notification"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// ListIssueComments list all the comments of an issue
diff --git a/routers/api/v1/repo/issue_label.go b/routers/api/v1/repo/issue_label.go
index 4c8ca8d523..7c22e6885c 100644
--- a/routers/api/v1/repo/issue_label.go
+++ b/routers/api/v1/repo/issue_label.go
@@ -9,7 +9,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// ListIssueLabels list all the labels of an issue
diff --git a/routers/api/v1/repo/issue_tracked_time.go b/routers/api/v1/repo/issue_tracked_time.go
index d2ddb0e0c8..194f7d32ce 100644
--- a/routers/api/v1/repo/issue_tracked_time.go
+++ b/routers/api/v1/repo/issue_tracked_time.go
@@ -8,7 +8,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
func trackedTimesToAPIFormat(trackedTimes []*models.TrackedTime) []*api.TrackedTime {
diff --git a/routers/api/v1/repo/key.go b/routers/api/v1/repo/key.go
index e26ce8cf50..59782d05f6 100644
--- a/routers/api/v1/repo/key.go
+++ b/routers/api/v1/repo/key.go
@@ -12,7 +12,7 @@ import (
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/routers/api/v1/convert"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// appendPrivateInformation appends the owner and key type information to api.PublicKey
diff --git a/routers/api/v1/repo/label.go b/routers/api/v1/repo/label.go
index f61751f3ab..1cd8890ca9 100644
--- a/routers/api/v1/repo/label.go
+++ b/routers/api/v1/repo/label.go
@@ -11,7 +11,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// ListLabels list all the labels of a repository
diff --git a/routers/api/v1/repo/milestone.go b/routers/api/v1/repo/milestone.go
index a76f601a21..1d01093306 100644
--- a/routers/api/v1/repo/milestone.go
+++ b/routers/api/v1/repo/milestone.go
@@ -11,7 +11,7 @@ import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/util"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// ListMilestones list all the opened milestones for a repository
diff --git a/routers/api/v1/repo/pull.go b/routers/api/v1/repo/pull.go
index ab8a85b64d..dda8387913 100644
--- a/routers/api/v1/repo/pull.go
+++ b/routers/api/v1/repo/pull.go
@@ -15,8 +15,8 @@ import (
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/notification"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/util"
- api "code.gitea.io/sdk/gitea"
)
// ListPullRequests returns a list of all PRs
diff --git a/routers/api/v1/repo/release.go b/routers/api/v1/repo/release.go
index 1b5b19666c..0fdcfa355c 100644
--- a/routers/api/v1/repo/release.go
+++ b/routers/api/v1/repo/release.go
@@ -9,7 +9,7 @@ import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// GetRelease get a single release of a repository
diff --git a/routers/api/v1/repo/release_attachment.go b/routers/api/v1/repo/release_attachment.go
index 5efdd69817..f85787bc59 100644
--- a/routers/api/v1/repo/release_attachment.go
+++ b/routers/api/v1/repo/release_attachment.go
@@ -13,7 +13,7 @@ import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// GetReleaseAttachment gets a single attachment of the release
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go
index 35fea20d49..56aac8014c 100644
--- a/routers/api/v1/repo/repo.go
+++ b/routers/api/v1/repo/repo.go
@@ -19,7 +19,7 @@ import (
"code.gitea.io/gitea/modules/util"
"code.gitea.io/gitea/routers/api/v1/convert"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
var searchOrderByMap = map[string]map[string]models.SearchOrderBy{
diff --git a/routers/api/v1/repo/star.go b/routers/api/v1/repo/star.go
index df4241dde2..046142252b 100644
--- a/routers/api/v1/repo/star.go
+++ b/routers/api/v1/repo/star.go
@@ -7,7 +7,7 @@ package repo
import (
"code.gitea.io/gitea/modules/context"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// ListStargazers list a repository's stargazers
diff --git a/routers/api/v1/repo/status.go b/routers/api/v1/repo/status.go
index da2b459c21..487e62c91d 100644
--- a/routers/api/v1/repo/status.go
+++ b/routers/api/v1/repo/status.go
@@ -10,7 +10,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// NewCommitStatus creates a new CommitStatus
diff --git a/routers/api/v1/repo/subscriber.go b/routers/api/v1/repo/subscriber.go
index a3d5e2a270..b7d329dc78 100644
--- a/routers/api/v1/repo/subscriber.go
+++ b/routers/api/v1/repo/subscriber.go
@@ -7,7 +7,7 @@ package repo
import (
"code.gitea.io/gitea/modules/context"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// ListSubscribers list a repo's subscribers (i.e. watchers)
diff --git a/routers/api/v1/repo/tag.go b/routers/api/v1/repo/tag.go
index 505f5b40c9..dd1b5aa7c1 100644
--- a/routers/api/v1/repo/tag.go
+++ b/routers/api/v1/repo/tag.go
@@ -8,7 +8,7 @@ import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/routers/api/v1/convert"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// ListTags list all the tags of a repository
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
diff --git a/routers/api/v1/user/app.go b/routers/api/v1/user/app.go
index d9716f419a..c090a724b7 100644
--- a/routers/api/v1/user/app.go
+++ b/routers/api/v1/user/app.go
@@ -6,7 +6,7 @@
package user
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/user/email.go b/routers/api/v1/user/email.go
index 1d071e697f..67659cfb0f 100644
--- a/routers/api/v1/user/email.go
+++ b/routers/api/v1/user/email.go
@@ -5,7 +5,7 @@
package user
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/user/follower.go b/routers/api/v1/user/follower.go
index c2f0c6e651..453f73137d 100644
--- a/routers/api/v1/user/follower.go
+++ b/routers/api/v1/user/follower.go
@@ -5,7 +5,7 @@
package user
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/user/gpg_key.go b/routers/api/v1/user/gpg_key.go
index 9d6579e413..c2c55e9b92 100644
--- a/routers/api/v1/user/gpg_key.go
+++ b/routers/api/v1/user/gpg_key.go
@@ -5,7 +5,7 @@
package user
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/user/key.go b/routers/api/v1/user/key.go
index 8e0cde0535..286f9ae4c3 100644
--- a/routers/api/v1/user/key.go
+++ b/routers/api/v1/user/key.go
@@ -5,7 +5,7 @@
package user
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/user/repo.go b/routers/api/v1/user/repo.go
index 1ddb3bd57b..5848169088 100644
--- a/routers/api/v1/user/repo.go
+++ b/routers/api/v1/user/repo.go
@@ -7,7 +7,7 @@ package user
import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// listUserRepos - List the repositories owned by the given user.
diff --git a/routers/api/v1/user/star.go b/routers/api/v1/user/star.go
index 62c820f8f4..e5eec71b60 100644
--- a/routers/api/v1/user/star.go
+++ b/routers/api/v1/user/star.go
@@ -5,7 +5,7 @@
package user
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/user/user.go b/routers/api/v1/user/user.go
index 76b4fc8dcc..8d05a67185 100644
--- a/routers/api/v1/user/user.go
+++ b/routers/api/v1/user/user.go
@@ -10,8 +10,8 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/routers/api/v1/convert"
- api "code.gitea.io/sdk/gitea"
"github.com/Unknwon/com"
)
diff --git a/routers/api/v1/user/watch.go b/routers/api/v1/user/watch.go
index 2ce0be2ff0..f0eb95ac1e 100644
--- a/routers/api/v1/user/watch.go
+++ b/routers/api/v1/user/watch.go
@@ -5,7 +5,7 @@
package user
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/utils/hook.go b/routers/api/v1/utils/hook.go
index f0c6b91a18..da15850ec5 100644
--- a/routers/api/v1/utils/hook.go
+++ b/routers/api/v1/utils/hook.go
@@ -11,9 +11,9 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/routers/api/v1/convert"
"code.gitea.io/gitea/routers/utils"
- api "code.gitea.io/sdk/gitea"
"github.com/Unknwon/com"
)