1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05: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 format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
misc format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
notify Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
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 Make mirror feature more configurable (#16957) 2021-09-07 17:49:36 +02:00
swagger Add API to get issue/pull comments and events (timeline) (#17403) 2022-01-01 22:12:25 +08:00
user API: Return primary language and repository language stats API URL (#18396) 2022-01-25 08:33:40 +02:00
utils format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
api.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00