gitea/routers/api/v1
zeripath 9c318a17f5
Add `GetUserTeams` (#18499) (#18531)
Backport #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: Gusted <williamzijl7@hotmail.com>
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-02 08:40:04 +00:00
..
admin Refactor auth package (#17962) 2022-01-02 21:12:35 +08:00
misc Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00
notify Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
org Add `GetUserTeams` (#18499) (#18531) 2022-02-02 08:40:04 +00:00
repo Fix PR comments UI (#18323) 2022-01-19 01:28:38 +08: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 Refactor auth package (#17962) 2022-01-02 21:12:35 +08:00
utils Use a standalone struct name for Organization (#17632) 2021-11-19 19:41:40 +08:00
api.go Add API to get issue/pull comments and events (timeline) (#17403) 2022-01-01 22:12:25 +08:00