2024-02-27 17:02:22 +05:30
|
|
|
package service
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
|
|
type TeamResponseV2 struct {
|
|
|
|
|
ID uint `json:"id"`
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
UpdatedAt time.Time `json:"updated_at,omitempty"`
|
2024-02-28 18:20:10 +05:30
|
|
|
SlackChannel *SlackChannel `json:"slack_channel"`
|
|
|
|
|
OnCall *BotResponse `json:"oncall"`
|
|
|
|
|
PseOnCall *BotResponse `json:"pse_oncall"`
|
2024-02-27 17:02:22 +05:30
|
|
|
SeverityMembersMap map[uint][]User `json:"severity_members_map,omitempty"`
|
|
|
|
|
ManagerDetails ManagerDetails `json:"manager_details"`
|
2025-02-27 15:51:13 +05:30
|
|
|
TeamType string `json:"team_type"`
|
2024-02-27 17:02:22 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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"`
|
|
|
|
|
}
|