Chore: Remove methods from sqlstore interface (#55802)

* Remove SearchOrgUsers from sqlstore interface

* Remove RemoveOrgUser method from sqlstore interface

* Delete RemoveOrgUser from sqlstore

* Fix lint
This commit is contained in:
idafurjes
2022-09-27 15:33:38 +02:00
committed by GitHub
parent 332e8477c7
commit 56cfe02ca2
10 changed files with 501 additions and 493 deletions
+4 -4
View File
@@ -151,14 +151,14 @@ type OrgUserDTO struct {
}
type RemoveOrgUserCommand struct {
UserID int64
OrgID int64
UserID int64 `xorm:"user_id"`
OrgID int64 `xorm:"org_id"`
ShouldDeleteOrphanedUser bool
UserWasDeleted bool
}
type GetOrgUsersQuery struct {
UserID int64 `xorm:"pk autoincr 'user_id'"`
UserID int64 `xorm:"user_id"`
OrgID int64 `xorm:"org_id"`
Query string
Limit int
@@ -169,7 +169,7 @@ type GetOrgUsersQuery struct {
}
type SearchOrgUsersQuery struct {
OrgID int64
OrgID int64 `xorm:"org_id"`
Query string
Page int
Limit int