forked from gitea/gitea
1
0
Fork 0
gitea/routers/api/v1
Gusted d3b31cc1ee
Add `GetUserTeams` ()
* 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 

* 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 format with gofumpt () 2022-01-20 18:46:10 +01:00
misc format with gofumpt () 2022-01-20 18:46:10 +01:00
notify Simplify parameter types () 2021-12-20 04:41:31 +00:00
org Add `GetUserTeams` () 2022-02-01 14:09:24 -05:00
repo Automatically pause queue if index service is unavailable () 2022-01-27 10:30:51 +02:00
settings Make mirror feature more configurable () 2021-09-07 17:49:36 +02:00
swagger Add API to get issue/pull comments and events (timeline) () 2022-01-01 22:12:25 +08:00
user API: Return primary language and repository language stats API URL () 2022-01-25 08:33:40 +02:00
utils format with gofumpt () 2022-01-20 18:46:10 +01:00
api.go format with gofumpt () 2022-01-20 18:46:10 +01:00