fixed code style
This commit is contained in:
parent
afd5571188
commit
d2d285b3b2
@ -37,15 +37,15 @@ var templateVarAssoc = map[string]interface{}{
|
|||||||
|
|
||||||
// Template struct.
|
// Template struct.
|
||||||
type Template struct {
|
type Template struct {
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
ChannelID uint64 `json:"channel_id,omitempty"`
|
ChannelID uint64 `json:"channel_id,omitempty"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Enabled bool `json:"enabled,omitempty"`
|
Enabled bool `json:"enabled,omitempty"`
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
Template []TemplateItem `json:"template"`
|
Template []TemplateItem `json:"template"`
|
||||||
HeaderParams *HeaderParams `json:"headerParams,omitempty"`
|
HeaderParams *HeaderParams `json:"headerParams,omitempty"`
|
||||||
Footer *string `json:"footer,omitempty"`
|
Footer *string `json:"footer,omitempty"`
|
||||||
ButtonParams []ButtonParam `json:"buttonParams,omitempty"`
|
ButtonParams []ButtonParam `json:"buttonParams,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// TemplateItem is a part of template.
|
// TemplateItem is a part of template.
|
||||||
|
@ -109,4 +109,4 @@ func TestUnmarshalMediaInteractiveTemplate(t *testing.T) {
|
|||||||
assert.NoError(t, json.Unmarshal([]byte(input), &template))
|
assert.NoError(t, json.Unmarshal([]byte(input), &template))
|
||||||
assert.Nil(t, template.HeaderParams)
|
assert.Nil(t, template.HeaderParams)
|
||||||
assert.Empty(t, template.ButtonParams)
|
assert.Empty(t, template.ButtonParams)
|
||||||
}
|
}
|
||||||
|
@ -649,4 +649,4 @@ type ButtonParam struct {
|
|||||||
ButtonType ButtonType `json:"type"`
|
ButtonType ButtonType `json:"type"`
|
||||||
Text string `json:"text,omitempty"`
|
Text string `json:"text,omitempty"`
|
||||||
URLParameter string `json:"urlParameter,omitempty"`
|
URLParameter string `json:"urlParameter,omitempty"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user