Files
2026-09-17 10:18:43 +08:00

77 lines
2.0 KiB
Go

package message
type TemplateSource struct {
IconURL string `json:"icon_url,omitempty"`
Desc string `json:"desc,omitempty"`
DescColor int `json:"desc_color,omitempty"`
}
type ActionMenu struct {
Desc string `json:"desc,omitempty"`
ActionList []ActionItem `json:"action_list,omitempty"`
}
type ActionItem struct {
Text string `json:"text,omitempty"`
Key string `json:"key,omitempty"`
}
type MainTitle struct {
Title string `json:"title,omitempty"`
Desc string `json:"desc,omitempty"`
}
type QuoteArea struct {
Type int `json:"type,omitempty"`
URL string `json:"url,omitempty"`
Title string `json:"title,omitempty"`
QuoteText string `json:"quote_text,omitempty"`
}
type EmphasisContent struct {
Title string `json:"title,omitempty"`
Desc string `json:"desc,omitempty"`
}
type HorizontalContent struct {
Type int `json:"type,omitempty"`
KeyName string `json:"keyname,omitempty"`
Value string `json:"value,omitempty"`
URL string `json:"url,omitempty"`
MediaId string `json:"media_id,omitempty"`
UserId string `json:"userid,omitempty"`
}
type Jump struct {
Type int `json:"type,omitempty"`
Title string `json:"title,omitempty"`
URL string `json:"url,omitempty"`
AppId string `json:"appid,omitempty"`
PagePath string `json:"pagepath,omitempty"`
}
type CardAction struct {
Type int `json:"type,omitempty"`
URL string `json:"url,omitempty"`
AppId string `json:"appid,omitempty"`
PagePath string `json:"pagepath,omitempty"`
}
type Button struct {
Text string `json:"text,omitempty"`
Style int `json:"style,omitempty"`
Key string `json:"key,omitempty"`
}
type ButtonSelection struct {
QuestionKey string `json:"question_key,omitempty"`
Title string `json:"title,omitempty"`
OptionList []ButtonOption `json:"option_list,omitempty"`
SelectedId string `json:"selected_id,omitempty"`
}
type ButtonOption struct {
Id string `json:"id,omitempty"`
Text string `json:"text,omitempty"`
}