From 4dfa3942df15b05394291f909f4a61082ac39a63 Mon Sep 17 00:00:00 2001 From: zhanghelong Date: Wed, 29 Aug 2018 00:20:58 +0800 Subject: [PATCH 1/3] Prepare for Prioritize issues & update .gitignore for goland users Signed-off-by: Outman9946 --- .gitignore | 1 + gitea/issue.go | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 13e3457..37b8ce1 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ _testmain.go *.prof coverage.out +.idea diff --git a/gitea/issue.go b/gitea/issue.go index fee7cd6..8fc2b2b 100644 --- a/gitea/issue.go +++ b/gitea/issue.go @@ -152,3 +152,9 @@ type IssueDeadline struct { // swagger:strfmt date-time Deadline *time.Time `json:"due_date"` } + +// EditPriorityOption options for updating priority +type EditPriorityOption struct { + // required:true + Priority int `json:"priority"` +} From f79aee45564aec7118ab9875b3688762199bbf10 Mon Sep 17 00:00:00 2001 From: zhanghelong Date: Thu, 30 Aug 2018 21:58:53 +0800 Subject: [PATCH 2/3] Fix issues Signed-off-by: BetaCat0 --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index 37b8ce1..13e3457 100644 --- a/.gitignore +++ b/.gitignore @@ -24,4 +24,3 @@ _testmain.go *.prof coverage.out -.idea From 4477c63244b9247de5cb16e3387ce253c7fdbc1d Mon Sep 17 00:00:00 2001 From: zhanghelong Date: Sat, 1 Sep 2018 04:42:25 +0800 Subject: [PATCH 3/3] Fix a format problem --- gitea/admin_user.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/gitea/admin_user.go b/gitea/admin_user.go index 4eab8c2..089ff29 100644 --- a/gitea/admin_user.go +++ b/gitea/admin_user.go @@ -42,17 +42,17 @@ type EditUserOption struct { FullName string `json:"full_name" binding:"MaxSize(100)"` // required: true // swagger:strfmt email - Email string `json:"email" binding:"Required;Email;MaxSize(254)"` - Password string `json:"password" binding:"MaxSize(255)"` - Website string `json:"website" binding:"MaxSize(50)"` - Location string `json:"location" binding:"MaxSize(50)"` - Active *bool `json:"active"` - Admin *bool `json:"admin"` - AllowGitHook *bool `json:"allow_git_hook"` - AllowImportLocal *bool `json:"allow_import_local"` - MaxRepoCreation *int `json:"max_repo_creation"` - ProhibitLogin *bool `json:"prohibit_login"` - AllowCreateOrganization *bool `json:"allow_create_organization"` + Email string `json:"email" binding:"Required;Email;MaxSize(254)"` + Password string `json:"password" binding:"MaxSize(255)"` + Website string `json:"website" binding:"MaxSize(50)"` + Location string `json:"location" binding:"MaxSize(50)"` + Active *bool `json:"active"` + Admin *bool `json:"admin"` + AllowGitHook *bool `json:"allow_git_hook"` + AllowImportLocal *bool `json:"allow_import_local"` + MaxRepoCreation *int `json:"max_repo_creation"` + ProhibitLogin *bool `json:"prohibit_login"` + AllowCreateOrganization *bool `json:"allow_create_organization"` } // AdminEditUser modify user informations