Files
houston-be/service/response/team_response_v2.go
Amitesh Vijaykumar Magar 36d07c7ce2 NTP-42029 | API for Houston-UI (#482)
* NTP-42029 | Created a reverse mapper for UI.

* NTP-42029 | Comment resolution.

* NTP-42029 | external team label change.

* NTP-42029 | Updated mock.

* NTP-42029 | Upgraded dependecy versions in go.

* NTP-42029 | Update go.mod

* NTP-42029 | Changes in mod file.

* NTP-42029 | Upgraded GO version in Dockerfile.

* NTP-42029 | Correcting version of GoLang used.

* NTP-42029 | Removed breaking fonts installation from dockerfile.

* NTP-42029 | Last minute changes.
2025-02-27 15:51:13 +05:30

34 lines
943 B
Go

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"`
}