2017-01-05 20:25:04 +01:00
|
|
|
package team
|
|
|
|
|
|
|
|
// Create team response structure
|
|
|
|
type CreateTeamResponse struct {
|
|
|
|
Id string `json:"id"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
Code int `json:"code"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// Update team response structure
|
|
|
|
type UpdateTeamResponse struct {
|
|
|
|
Status string `json:"status"`
|
|
|
|
Code int `json:"code"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// Delete team response structure
|
|
|
|
type DeleteTeamResponse struct {
|
|
|
|
Status string `json:"status"`
|
|
|
|
Code int `json:"code"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get team response structure
|
|
|
|
type GetTeamResponse struct {
|
2017-01-29 16:52:23 +01:00
|
|
|
Description string `json:"description,omitempty"`
|
2017-01-05 20:25:04 +01:00
|
|
|
Id string `json:"id,omitempty"`
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
Members []Member `json:"members,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// List teams response structure
|
|
|
|
type ListTeamsResponse struct {
|
|
|
|
Teams []GetTeamResponse `json:"teams,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// A single team log entry
|
|
|
|
type TeamLogEntry struct {
|
|
|
|
Log string `json:"log"`
|
|
|
|
Owner string `json:"owner"`
|
|
|
|
CreatedAt uint `json:"createdAt"`
|
|
|
|
}
|
|
|
|
|
|
|
|
//List team logs response structure
|
|
|
|
type ListTeamLogsResponse struct {
|
|
|
|
LastKey string `json:"lastKey,omitempty"`
|
|
|
|
Logs []TeamLogEntry `json:logs,omitempty`
|
|
|
|
}
|