diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-03-29 22:16:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 22:16:31 +0800 |
commit | bd97736b9c7a16023bc9abf17be6157284f655b1 (patch) | |
tree | eea5870d406bd00fa2e675901f24d9f1fbf1796f /services | |
parent | ea6efba9b3fd298c842a935266060e405e2ae4a3 (diff) | |
download | gitea-bd97736b9c7a16023bc9abf17be6157284f655b1.tar.gz gitea-bd97736b9c7a16023bc9abf17be6157284f655b1.zip |
Move project files into models/project sub package (#17704)
* Move project files into models/project sub package
* Fix test
* Fix test
* Fix test
* Fix build
* Fix test
* Fix template bug
* Fix bug
* Fix lint
* Fix test
* Fix import
* Improve codes
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'services')
-rw-r--r-- | services/forms/repo_form.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/services/forms/repo_form.go b/services/forms/repo_form.go index 3760c71f2a..e968ac55ea 100644 --- a/services/forms/repo_form.go +++ b/services/forms/repo_form.go @@ -11,6 +11,7 @@ import ( "strings" "code.gitea.io/gitea/models" + project_model "code.gitea.io/gitea/models/project" "code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/structs" @@ -499,7 +500,7 @@ func (i IssueLockForm) HasValidReason() bool { type CreateProjectForm struct { Title string `binding:"Required;MaxSize(100)"` Content string - BoardType models.ProjectBoardType + BoardType project_model.BoardType } // UserCreateProjectForm is a from for creating an individual or organization @@ -507,7 +508,7 @@ type CreateProjectForm struct { type UserCreateProjectForm struct { Title string `binding:"Required;MaxSize(100)"` Content string - BoardType models.ProjectBoardType + BoardType project_model.BoardType UID int64 `binding:"Required"` } |