Files
houston-be/service/response/team_response_v2.go

34 lines
943 B
Go
Raw Normal View History

package service
import "time"
type TeamResponseV2 struct {
ID uint `json:"id"`
Name string `json:"name"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
SlackChannel *SlackChannel `json:"slack_channel"`
OnCall *BotResponse `json:"oncall"`
PseOnCall *BotResponse `json:"pse_oncall"`
SeverityMembersMap map[uint][]User `json:"severity_members_map,omitempty"`
ManagerDetails ManagerDetails `json:"manager_details"`
TeamType string `json:"team_type"`
}
type SlackChannel struct {
Id string `json:"id"`
Name string `json:"name"`
}
type User struct {
Id uint `json:"id"`
Email string `json:"email"`
Name string `json:"name"`
}
type ManagerDetails struct {
Id uint `json:"id"`
Email string `json:"email"`
Name string `json:"name"`
SeverityId uint `json:"severity_id"`
}