]> source.dussan.org Git - gitea.git/commit
Use a standalone struct name for Organization (#17632)
authorLunny Xiao <xiaolunwen@gmail.com>
Fri, 19 Nov 2021 11:41:40 +0000 (19:41 +0800)
committerGitHub <noreply@github.com>
Fri, 19 Nov 2021 11:41:40 +0000 (19:41 +0800)
commit7a0347315995b25bcb2dca4786504fb699b5f004
tree803dfd39286216fd0521ad16539ffd9fc5f87fc0
parenta09b40de8d1dae7107437cfba42cee201fcd6d42
Use a standalone struct name for Organization (#17632)

* Use a standalone struct name for Organization

* recover unnecessary change

* make the code readable

* Fix template failure

* Fix template failure

* Move HasMemberWithUserID to org

* Fix test

* Remove unnecessary user type check

* Fix test

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
43 files changed:
models/access.go
models/action.go
models/org.go
models/org_team.go
models/org_test.go
models/repo.go
models/repo_test.go
models/repo_transfer.go
models/user.go
models/userlist_test.go
modules/context/api_org.go
modules/context/org.go
modules/convert/convert.go
modules/repository/create_test.go
modules/repository/repo.go
routers/api/v1/admin/org.go
routers/api/v1/org/hook.go
routers/api/v1/org/label.go
routers/api/v1/org/org.go
routers/api/v1/org/team.go
routers/api/v1/repo/fork.go
routers/api/v1/repo/migrate.go
routers/api/v1/repo/repo.go
routers/api/v1/repo/transfer.go
routers/api/v1/user/repo.go
routers/api/v1/utils/hook.go
routers/web/org/home.go
routers/web/org/org.go
routers/web/org/setting.go
routers/web/org/teams.go
routers/web/repo/issue.go
routers/web/repo/issue_label.go
routers/web/repo/pull.go
routers/web/repo/repo.go
routers/web/repo/setting.go
routers/web/repo/setting_protected_branch.go
routers/web/repo/tag.go
routers/web/user/home.go
routers/web/user/oauth.go
services/org/org.go
services/org/org_test.go
services/repository/repository.go
services/user/user.go