refactor(db): move some methods from user.go to users.go (#7195)

This commit is contained in:
Joe Chen
2022-10-22 14:41:40 +08:00
committed by GitHub
parent 260e990be7
commit c502dc6ed8
25 changed files with 297 additions and 214 deletions

View File

@@ -138,7 +138,7 @@ func ExploreUsers(c *context.Context) {
c.Data["PageIsExploreUsers"] = true
RenderUserSearch(c, &UserSearchOptions{
Type: db.UserIndividual,
Type: db.UserTypeIndividual,
Counter: db.CountUsers,
Ranger: db.ListUsers,
PageSize: conf.UI.ExplorePagingNum,
@@ -153,7 +153,7 @@ func ExploreOrganizations(c *context.Context) {
c.Data["PageIsExploreOrganizations"] = true
RenderUserSearch(c, &UserSearchOptions{
Type: db.UserOrganization,
Type: db.UserTypeOrganization,
Counter: db.CountOrganizations,
Ranger: db.Organizations,
PageSize: conf.UI.ExplorePagingNum,