TIL about struct tagging using string literals... I thought those were just weird fancy comments.
This commit is contained in:
parent
3258707dce
commit
b35fcbbbb0
@ -171,13 +171,12 @@ type Ticket struct {
|
|||||||
ContactPhoneExtension string `json:"contactPhoneExtension,omitempty"`
|
ContactPhoneExtension string `json:"contactPhoneExtension,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
//TBD: For some reason the Info struct contained in TimeEntryReference does get data when the JSON is unmarshaled into this struct. The ID works fine
|
|
||||||
type TimeEntryReference struct {
|
type TimeEntryReference struct {
|
||||||
ID int
|
ID int
|
||||||
Info struct {
|
Info struct {
|
||||||
Notes string
|
Notes string `json:"notes"`
|
||||||
TimeHref string
|
TimeHref string `json:"time_href"`
|
||||||
}
|
} `json:"_info"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cw *ConnectwiseSite) GetTicketByID(ticketID int) *Ticket {
|
func (cw *ConnectwiseSite) GetTicketByID(ticketID int) *Ticket {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user