xscript
This commit is contained in:
parent
632607cd0b
commit
e073f40449
4 changed files with 8 additions and 2 deletions
|
@ -80,6 +80,7 @@ type Call struct {
|
||||||
TalkgroupGroup *string `json:"talkgroupGroup,omitempty" relayOut:"talkgroupGroup,omitempty"`
|
TalkgroupGroup *string `json:"talkgroupGroup,omitempty" relayOut:"talkgroupGroup,omitempty"`
|
||||||
TalkgroupLabel *string `json:"talkgroupLabel,omitempty" relayOut:"talkgroupLabel,omitempty"`
|
TalkgroupLabel *string `json:"talkgroupLabel,omitempty" relayOut:"talkgroupLabel,omitempty"`
|
||||||
TGAlphaTag *string `json:"tg_name,omitempty" relayOut:"talkgroupTag,omitempty"`
|
TGAlphaTag *string `json:"tg_name,omitempty" relayOut:"talkgroupTag,omitempty"`
|
||||||
|
Transcript *string `json:"transcript" relayOut:"transcript,omitempty"`
|
||||||
|
|
||||||
shouldStore bool `json:"-"`
|
shouldStore bool `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -179,6 +179,7 @@ func (s *store) Call(ctx context.Context, id uuid.UUID) (*calls.Call, error) {
|
||||||
TalkgroupLabel: c.TGLabel,
|
TalkgroupLabel: c.TGLabel,
|
||||||
TalkgroupGroup: c.TGGroup,
|
TalkgroupGroup: c.TGGroup,
|
||||||
TGAlphaTag: c.TGAlphaTag,
|
TGAlphaTag: c.TGAlphaTag,
|
||||||
|
Transcript: c.Transcript,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -181,7 +181,8 @@ SELECT
|
||||||
tg_label,
|
tg_label,
|
||||||
tg_alpha_tag,
|
tg_alpha_tag,
|
||||||
tg_group,
|
tg_group,
|
||||||
source
|
source,
|
||||||
|
transcript
|
||||||
FROM calls
|
FROM calls
|
||||||
WHERE id = $1
|
WHERE id = $1
|
||||||
`
|
`
|
||||||
|
@ -203,6 +204,7 @@ type GetCallRow struct {
|
||||||
TGAlphaTag *string `json:"tg_alpha_tag"`
|
TGAlphaTag *string `json:"tg_alpha_tag"`
|
||||||
TGGroup *string `json:"tg_group"`
|
TGGroup *string `json:"tg_group"`
|
||||||
Source int `json:"source"`
|
Source int `json:"source"`
|
||||||
|
Transcript *string `json:"transcript"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (q *Queries) GetCall(ctx context.Context, id uuid.UUID) (GetCallRow, error) {
|
func (q *Queries) GetCall(ctx context.Context, id uuid.UUID) (GetCallRow, error) {
|
||||||
|
@ -225,6 +227,7 @@ func (q *Queries) GetCall(ctx context.Context, id uuid.UUID) (GetCallRow, error)
|
||||||
&i.TGAlphaTag,
|
&i.TGAlphaTag,
|
||||||
&i.TGGroup,
|
&i.TGGroup,
|
||||||
&i.Source,
|
&i.Source,
|
||||||
|
&i.Transcript,
|
||||||
)
|
)
|
||||||
return i, err
|
return i, err
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,6 +180,7 @@ SELECT
|
||||||
tg_label,
|
tg_label,
|
||||||
tg_alpha_tag,
|
tg_alpha_tag,
|
||||||
tg_group,
|
tg_group,
|
||||||
source
|
source,
|
||||||
|
transcript
|
||||||
FROM calls
|
FROM calls
|
||||||
WHERE id = @id;
|
WHERE id = @id;
|
||||||
|
|
Loading…
Add table
Reference in a new issue