0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 00:14:53 +01:00
gitea/routers/api/v1
Gusted d3b31cc1ee
Add GetUserTeams (#18499)
* COrrect use `UserID` in `SearchTeams`

- Use `UserID` in the `SearchTeams` function, currently it was useless
to pass such information. Now it does a INNER statement to `team_user`
which obtains UserID -> TeamID data.
- Make OrgID optional.
- Resolves #18484

* Seperate searching specific user

* Add condition back

* Use correct struct type

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2022-02-01 14:09:24 -05:00
..
admin
misc
notify
org Add GetUserTeams (#18499) 2022-02-01 14:09:24 -05:00
repo Automatically pause queue if index service is unavailable (#15066) 2022-01-27 10:30:51 +02:00
settings
swagger
user
utils
api.go