29 lines
511 B
Go
29 lines
511 B
Go
package opps
|
|
|
|
type Opportunity struct {
|
|
Title string `json:"Title"`
|
|
Status string `json:"Status"`
|
|
SolutionConsultants struct {
|
|
Results []int `json:"results"`
|
|
} `json:"SolutionConsultantId"`
|
|
}
|
|
|
|
type Result struct {
|
|
Data struct {
|
|
Opportunities []Opportunity `json:"results"`
|
|
Next string `json:"__next"`
|
|
} `json:"d"`
|
|
}
|
|
|
|
type Counter struct {
|
|
Inactive int
|
|
Won int
|
|
Open int
|
|
Closed int
|
|
}
|
|
|
|
type SolutionConsultant struct {
|
|
ID int
|
|
Name string
|
|
}
|