]> source.dussan.org Git - gitea.git/commit
Reimplement GetUserOrgsList to make it simple and clear (#32486)
authorLunny Xiao <xiaolunwen@gmail.com>
Thu, 14 Nov 2024 05:31:47 +0000 (21:31 -0800)
committerGitHub <noreply@github.com>
Thu, 14 Nov 2024 05:31:47 +0000 (05:31 +0000)
commitb4abb6deff14b741c7666d7579e0eea68443306c
tree47e349b23bb942d0497219c99a85dc1124db9deb
parent3f9c3e7bc394c115ccc4818d6505f1f68de350d2
Reimplement GetUserOrgsList to make it simple and clear (#32486)

Reimplement GetUserOrgsList and also move some functions and test to
org_list file.

---------

Co-authored-by: Zettat123 <zettat123@gmail.com>
models/organization/mini_org.go [deleted file]
models/organization/org.go
models/organization/org_list.go [new file with mode: 0644]
models/organization/org_list_test.go [new file with mode: 0644]
models/organization/org_test.go
services/oauth2_provider/access_token.go