Add followed & banned status to search result in backend

This commit is contained in:
Marco Realacci 2022-12-10 01:25:38 +01:00
parent 25be953a11
commit acfa1374ff
3 changed files with 45 additions and 7 deletions

View file

@ -9,6 +9,13 @@ type UIDName struct {
Name string `json:"name"`
}
type SearchResult struct {
UID string `json:"user_id"`
Name string `json:"name"`
Followed bool `json:"followed"`
Banned bool `json:"banned"`
}
type GenericResponse struct {
Status string `json:"status"`
}