teams: add team count when searching for team

closes #10207
This commit is contained in:
bergquist
2017-12-15 11:08:06 +01:00
parent 854d22fa8e
commit 256f7176a2
4 changed files with 45 additions and 20 deletions
+11 -4
View File
@@ -60,9 +60,16 @@ type SearchTeamsQuery struct {
Result SearchTeamQueryResult
}
type SearchTeamDto struct {
Id int64 `json:"id"`
OrgId int64 `json:"orgId"`
Name string `json:"name"`
MemberCount int64 `json:"memberCount"`
}
type SearchTeamQueryResult struct {
TotalCount int64 `json:"totalCount"`
Teams []*Team `json:"teams"`
Page int `json:"page"`
PerPage int `json:"perPage"`
TotalCount int64 `json:"totalCount"`
Teams []*SearchTeamDto `json:"teams"`
Page int `json:"page"`
PerPage int `json:"perPage"`
}