Documentation ¶
Index ¶
- Constants
- func Signature(timestamp, nonce, token, body string) string
- type CardAction
- type CardActionBody
- type CardActionHandler
- func (h *CardActionHandler) AuthByChallenge(ctx context.Context, cardAction *CardAction) (*larkevent.EventResp, error)
- func (h *CardActionHandler) DoHandle(ctx context.Context, cardAction *CardAction) (*larkevent.EventResp, error)
- func (h *CardActionHandler) Event() interface{}
- func (h *CardActionHandler) Handle(ctx context.Context, req *larkevent.EventReq) (eventResp *larkevent.EventResp)
- func (h *CardActionHandler) InitConfig(options ...larkevent.OptionFunc)
- func (h *CardActionHandler) Logger() larkcore.Logger
- func (h *CardActionHandler) VerifySign(ctx context.Context, req *larkevent.EventReq) error
- type CustomResp
- type CustomToastBody
- type I18n
- type MessageCard
- func (card *MessageCard) Build() *MessageCard
- func (card *MessageCard) CardLink(cardLink *MessageCardURL) *MessageCard
- func (card *MessageCard) Config(config *MessageCardConfig) *MessageCard
- func (card *MessageCard) Elements(elements []MessageCardElement) *MessageCard
- func (card *MessageCard) Header(header *MessageCardHeader) *MessageCard
- func (card *MessageCard) I18nElements(i18nElements *MessageCardI18nElements) *MessageCard
- func (m *MessageCard) JSON() (string, error)
- func (m *MessageCard) String() (string, error)
- type MessageCardAction
- func (cardAction *MessageCardAction) Actions(actions []MessageCardActionElement) *MessageCardAction
- func (cardAction *MessageCardAction) Build() *MessageCardAction
- func (cardAction *MessageCardAction) Layout(layout *MessageCardActionLayout) *MessageCardAction
- func (m *MessageCardAction) MarshalJSON() ([]byte, error)
- func (m *MessageCardAction) Tag() string
- type MessageCardActionConfirm
- type MessageCardActionElement
- type MessageCardActionLayout
- type MessageCardButtonType
- type MessageCardConfig
- func (config *MessageCardConfig) Build() *MessageCardConfig
- func (config *MessageCardConfig) EnableForward(enableForward bool) *MessageCardConfig
- func (config *MessageCardConfig) UpdateMulti(updateMulti bool) *MessageCardConfig
- func (config *MessageCardConfig) WideScreenMode(wideScreenMode bool) *MessageCardConfig
- type MessageCardDiv
- func (div *MessageCardDiv) Build() *MessageCardDiv
- func (div *MessageCardDiv) Extra(extra MessageCardExtraElement) *MessageCardDiv
- func (div *MessageCardDiv) Fields(fields []*MessageCardField) *MessageCardDiv
- func (m *MessageCardDiv) MarshalJSON() ([]byte, error)
- func (m *MessageCardDiv) Tag() string
- func (div *MessageCardDiv) Text(text MessageCardText) *MessageCardDiv
- type MessageCardElement
- type MessageCardEmbedButton
- func (m *MessageCardEmbedButton) Build() *MessageCardEmbedButton
- func (m *MessageCardEmbedButton) Confirm(confirm *MessageCardActionConfirm) *MessageCardEmbedButton
- func (m *MessageCardEmbedButton) IsAction()
- func (m *MessageCardEmbedButton) IsExtra()
- func (m *MessageCardEmbedButton) MarshalJSON() ([]byte, error)
- func (m *MessageCardEmbedButton) MultiUrl(multiURL *MessageCardURL) *MessageCardEmbedButton
- func (m *MessageCardEmbedButton) Tag() string
- func (m *MessageCardEmbedButton) Text(text MessageCardText) *MessageCardEmbedButton
- func (m *MessageCardEmbedButton) Type(type_ MessageCardButtonType) *MessageCardEmbedButton
- func (m *MessageCardEmbedButton) Url(url string) *MessageCardEmbedButton
- func (m *MessageCardEmbedButton) Value(value map[string]interface{}) *MessageCardEmbedButton
- type MessageCardEmbedDatePicker
- type MessageCardEmbedDatePickerBase
- func (picker *MessageCardEmbedDatePickerBase) Build() *MessageCardEmbedDatePickerBase
- func (picker *MessageCardEmbedDatePickerBase) Confirm(confirm *MessageCardActionConfirm) *MessageCardEmbedDatePickerBase
- func (picker *MessageCardEmbedDatePickerBase) InitialDate(initialDate string) *MessageCardEmbedDatePickerBase
- func (picker *MessageCardEmbedDatePickerBase) InitialDatetime(initialDatetime string) *MessageCardEmbedDatePickerBase
- func (picker *MessageCardEmbedDatePickerBase) InitialTime(initialTime string) *MessageCardEmbedDatePickerBase
- func (m *MessageCardEmbedDatePickerBase) IsAction()
- func (m *MessageCardEmbedDatePickerBase) IsExtra()
- func (picker *MessageCardEmbedDatePickerBase) Placeholder(placeholder *MessageCardPlainText) *MessageCardEmbedDatePickerBase
- func (picker *MessageCardEmbedDatePickerBase) Value(value map[string]interface{}) *MessageCardEmbedDatePickerBase
- type MessageCardEmbedImage
- func (image *MessageCardEmbedImage) Alt(alt *MessageCardPlainText) *MessageCardEmbedImage
- func (image *MessageCardEmbedImage) Build() *MessageCardEmbedImage
- func (image *MessageCardEmbedImage) ImgKey(imgKey string) *MessageCardEmbedImage
- func (m *MessageCardEmbedImage) IsExtra()
- func (m *MessageCardEmbedImage) IsNote()
- func (m *MessageCardEmbedImage) MarshalJSON() ([]byte, error)
- func (image *MessageCardEmbedImage) Mode(mode *MessageCardImageModel) *MessageCardEmbedImage
- func (image *MessageCardEmbedImage) Preview(preview bool) *MessageCardEmbedImage
- func (m *MessageCardEmbedImage) Tag() string
- type MessageCardEmbedOverflow
- func (overFlow *MessageCardEmbedOverflow) Build() *MessageCardEmbedOverflow
- func (overFlow *MessageCardEmbedOverflow) Confirm(confirm *MessageCardActionConfirm) *MessageCardEmbedOverflow
- func (m *MessageCardEmbedOverflow) IsAction()
- func (m *MessageCardEmbedOverflow) IsExtra()
- func (m *MessageCardEmbedOverflow) MarshalJSON() ([]byte, error)
- func (overFlow *MessageCardEmbedOverflow) Options(options []*MessageCardEmbedSelectOption) *MessageCardEmbedOverflow
- func (m *MessageCardEmbedOverflow) Tag() string
- func (overFlow *MessageCardEmbedOverflow) Value(value map[string]interface{}) *MessageCardEmbedOverflow
- type MessageCardEmbedPickerDatetime
- func (m *MessageCardEmbedPickerDatetime) Build() *MessageCardEmbedPickerDatetime
- func (m *MessageCardEmbedPickerDatetime) MarshalJSON() ([]byte, error)
- func (m *MessageCardEmbedPickerDatetime) MessageCardEmbedPickerDatetime(base *MessageCardEmbedDatePickerBase) *MessageCardEmbedPickerDatetime
- func (m *MessageCardEmbedPickerDatetime) Tag() string
- type MessageCardEmbedPickerTime
- func (m *MessageCardEmbedPickerTime) Build() *MessageCardEmbedPickerTime
- func (m *MessageCardEmbedPickerTime) MarshalJSON() ([]byte, error)
- func (m *MessageCardEmbedPickerTime) MessageCardEmbedPickerTime(base *MessageCardEmbedDatePickerBase) *MessageCardEmbedPickerTime
- func (m *MessageCardEmbedPickerTime) Tag() string
- type MessageCardEmbedSelectMenuBase
- func (selectMenu *MessageCardEmbedSelectMenuBase) Build() *MessageCardEmbedSelectMenuBase
- func (selectMenu *MessageCardEmbedSelectMenuBase) Confirm(confirm *MessageCardActionConfirm) *MessageCardEmbedSelectMenuBase
- func (selectMenu *MessageCardEmbedSelectMenuBase) InitialOption(initialOption string) *MessageCardEmbedSelectMenuBase
- func (m *MessageCardEmbedSelectMenuBase) IsAction()
- func (m *MessageCardEmbedSelectMenuBase) IsExtra()
- func (selectMenu *MessageCardEmbedSelectMenuBase) Options(options []*MessageCardEmbedSelectOption) *MessageCardEmbedSelectMenuBase
- func (selectMenu *MessageCardEmbedSelectMenuBase) Placeholder(placeholder *MessageCardPlainText) *MessageCardEmbedSelectMenuBase
- func (selectMenu *MessageCardEmbedSelectMenuBase) Value(value map[string]interface{}) *MessageCardEmbedSelectMenuBase
- type MessageCardEmbedSelectMenuPerson
- func (menuPerson *MessageCardEmbedSelectMenuPerson) Build(messageCardEmbedSelectMenuBase *MessageCardEmbedSelectMenuBase) *MessageCardEmbedSelectMenuPerson
- func (m *MessageCardEmbedSelectMenuPerson) MarshalJSON() ([]byte, error)
- func (menuPerson *MessageCardEmbedSelectMenuPerson) MessageCardEmbedSelectMenu(messageCardEmbedSelectMenuBase *MessageCardEmbedSelectMenuBase) *MessageCardEmbedSelectMenuPerson
- func (m *MessageCardEmbedSelectMenuPerson) Tag() string
- type MessageCardEmbedSelectMenuStatic
- func (m *MessageCardEmbedSelectMenuStatic) Build() *MessageCardEmbedSelectMenuStatic
- func (m *MessageCardEmbedSelectMenuStatic) MarshalJSON() ([]byte, error)
- func (m *MessageCardEmbedSelectMenuStatic) MessageCardEmbedSelectMenuStatic(base *MessageCardEmbedSelectMenuBase) *MessageCardEmbedSelectMenuStatic
- func (m *MessageCardEmbedSelectMenuStatic) Tag() string
- type MessageCardEmbedSelectOption
- func (m *MessageCardEmbedSelectOption) Build() *MessageCardEmbedSelectOption
- func (m *MessageCardEmbedSelectOption) MultiUrl(multiUrl *MessageCardURL) *MessageCardEmbedSelectOption
- func (m *MessageCardEmbedSelectOption) Text(text *MessageCardPlainText) *MessageCardEmbedSelectOption
- func (m *MessageCardEmbedSelectOption) Type(type_ *MessageCardButtonType) *MessageCardEmbedSelectOption
- func (m *MessageCardEmbedSelectOption) URL(url string) *MessageCardEmbedSelectOption
- func (m *MessageCardEmbedSelectOption) Value(value string) *MessageCardEmbedSelectOption
- type MessageCardExtraElement
- type MessageCardField
- type MessageCardHeader
- type MessageCardHr
- type MessageCardI18nElements
- func (i18nEle *MessageCardI18nElements) Build() *MessageCardI18nElements
- func (i18nEle *MessageCardI18nElements) EnUS(enUS []MessageCardElement) *MessageCardI18nElements
- func (i18nEle *MessageCardI18nElements) JaJP(jaJP []MessageCardElement) *MessageCardI18nElements
- func (i18nEle *MessageCardI18nElements) ZhCN(zhCn []MessageCardElement) *MessageCardI18nElements
- type MessageCardImage
- func (image *MessageCardImage) Alt(alt *MessageCardPlainText) *MessageCardImage
- func (image *MessageCardImage) Build() *MessageCardImage
- func (image *MessageCardImage) CompactWidth(compactWidth bool) *MessageCardImage
- func (image *MessageCardImage) CustomWidth(customWidth int) *MessageCardImage
- func (image *MessageCardImage) ImgKey(imgKey string) *MessageCardImage
- func (m *MessageCardImage) MarshalJSON() ([]byte, error)
- func (image *MessageCardImage) Mode(mode MessageCardImageModel) *MessageCardImage
- func (image *MessageCardImage) Preview(preview bool) *MessageCardImage
- func (m *MessageCardImage) Tag() string
- func (image *MessageCardImage) Title(title MessageCardText) *MessageCardImage
- type MessageCardImageModel
- type MessageCardLarkMd
- func (md *MessageCardLarkMd) Build() *MessageCardLarkMd
- func (md *MessageCardLarkMd) Content(content string) *MessageCardLarkMd
- func (m *MessageCardLarkMd) IsExtra()
- func (m *MessageCardLarkMd) IsNote()
- func (m *MessageCardLarkMd) MarshalJSON() ([]byte, error)
- func (m *MessageCardLarkMd) Tag() string
- func (m *MessageCardLarkMd) Text() string
- type MessageCardMarkdown
- func (markDown *MessageCardMarkdown) Build() *MessageCardMarkdown
- func (markDown *MessageCardMarkdown) Content(content string) *MessageCardMarkdown
- func (markDown *MessageCardMarkdown) Href(href map[string]*MessageCardURL) *MessageCardMarkdown
- func (m *MessageCardMarkdown) MarshalJSON() ([]byte, error)
- func (m *MessageCardMarkdown) Tag() string
- type MessageCardNote
- type MessageCardNoteElement
- type MessageCardPlainText
- func (plainText *MessageCardPlainText) Build() *MessageCardPlainText
- func (plainText *MessageCardPlainText) Content(content string) *MessageCardPlainText
- func (plainText *MessageCardPlainText) I18n(i18n *MessageCardPlainTextI18n) *MessageCardPlainText
- func (m *MessageCardPlainText) IsExtra()
- func (m *MessageCardPlainText) IsNote()
- func (plainText *MessageCardPlainText) Lines(lines int) *MessageCardPlainText
- func (m *MessageCardPlainText) MarshalJSON() ([]byte, error)
- func (m *MessageCardPlainText) Tag() string
- func (m *MessageCardPlainText) Text() string
- type MessageCardPlainTextI18n
- func (i18n *MessageCardPlainTextI18n) Build() *MessageCardPlainTextI18n
- func (i18n *MessageCardPlainTextI18n) EnUS(enUs string) *MessageCardPlainTextI18n
- func (i18n *MessageCardPlainTextI18n) JaJP(jaJp string) *MessageCardPlainTextI18n
- func (i18n *MessageCardPlainTextI18n) ZhCN(zhCn string) *MessageCardPlainTextI18n
- type MessageCardText
- type MessageCardURL
- func (cardUrl *MessageCardURL) AndroidUrl(androidUrl string) *MessageCardURL
- func (cardUrl *MessageCardURL) Build() *MessageCardURL
- func (cardUrl *MessageCardURL) IoSUrl(iOSUrl string) *MessageCardURL
- func (cardUrl *MessageCardURL) PcUrl(pcURL string) *MessageCardURL
- func (cardUrl *MessageCardURL) Url(url string) *MessageCardURL
Constants ¶
View Source
const ( TemplateBlue = "blue" TemplateWathet = "wathet" TemplateTurquoise = "turquoise" TemplateGreen = "green" TemplateYellow = "yellow" TemplateOrange = "orange" TemplateRed = "red" TemplateCarmine = "carmine" TemplateViolet = "violet" TemplatePurple = "purple" TemplateIndigo = "indigo" TemplateGrey = "grey" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CardAction ¶
type CardAction struct { *larkevent.EventReq OpenID string `json:"open_id"` UserID string `json:"user_id"` OpenMessageID string `json:"open_message_id"` TenantKey string `json:"tenant_key"` Token string `json:"token"` Timezone string `json:"timezone"` Challenge string `json:"challenge"` Type string `json:"type"` Action *struct { Value map[string]interface{} `json:"value"` Tag string `json:"tag"` Option string `json:"option"` Timezone string `json:"timezone"` } `json:"action"` }
type CardActionBody ¶
type CardActionBody struct { *CardAction Challenge string `json:"challenge"` Type string `json:"type"` }
type CardActionHandler ¶
func NewCardActionHandler ¶
func NewCardActionHandler(verificationToken, eventEncryptKey string, handler func(context.Context, *CardAction) (interface{}, error)) *CardActionHandler
func (*CardActionHandler) AuthByChallenge ¶
func (h *CardActionHandler) AuthByChallenge(ctx context.Context, cardAction *CardAction) (*larkevent.EventResp, error)
func (*CardActionHandler) DoHandle ¶
func (h *CardActionHandler) DoHandle(ctx context.Context, cardAction *CardAction) (*larkevent.EventResp, error)
func (*CardActionHandler) Event ¶
func (h *CardActionHandler) Event() interface{}
func (*CardActionHandler) InitConfig ¶
func (h *CardActionHandler) InitConfig(options ...larkevent.OptionFunc)
func (*CardActionHandler) Logger ¶
func (h *CardActionHandler) Logger() larkcore.Logger
func (*CardActionHandler) VerifySign ¶
type CustomResp ¶
type CustomToastBody ¶
type MessageCard ¶
type MessageCard struct { Config_ *MessageCardConfig `json:"config,omitempty"` Header_ *MessageCardHeader `json:"header,omitempty"` Elements_ []MessageCardElement `json:"elements,omitempty"` I18nElements_ *MessageCardI18nElements `json:"i18n_elements,omitempty"` CardLink_ *MessageCardURL `json:"card_link,omitempty"` }
func NewMessageCard ¶
func NewMessageCard() *MessageCard
func (*MessageCard) Build ¶
func (card *MessageCard) Build() *MessageCard
func (*MessageCard) CardLink ¶
func (card *MessageCard) CardLink(cardLink *MessageCardURL) *MessageCard
func (*MessageCard) Config ¶
func (card *MessageCard) Config(config *MessageCardConfig) *MessageCard
func (*MessageCard) Elements ¶
func (card *MessageCard) Elements(elements []MessageCardElement) *MessageCard
func (*MessageCard) Header ¶
func (card *MessageCard) Header(header *MessageCardHeader) *MessageCard
func (*MessageCard) I18nElements ¶
func (card *MessageCard) I18nElements(i18nElements *MessageCardI18nElements) *MessageCard
func (*MessageCard) JSON ¶
func (m *MessageCard) JSON() (string, error)
func (*MessageCard) String ¶
func (m *MessageCard) String() (string, error)
type MessageCardAction ¶
type MessageCardAction struct { Actions_ []MessageCardActionElement `json:"actions,omitempty"` Layout_ *MessageCardActionLayout `json:"layout,omitempty"` }
func NewMessageCardAction ¶
func NewMessageCardAction() *MessageCardAction
func (*MessageCardAction) Actions ¶
func (cardAction *MessageCardAction) Actions(actions []MessageCardActionElement) *MessageCardAction
func (*MessageCardAction) Build ¶
func (cardAction *MessageCardAction) Build() *MessageCardAction
func (*MessageCardAction) Layout ¶
func (cardAction *MessageCardAction) Layout(layout *MessageCardActionLayout) *MessageCardAction
func (*MessageCardAction) MarshalJSON ¶
func (m *MessageCardAction) MarshalJSON() ([]byte, error)
func (*MessageCardAction) Tag ¶
func (m *MessageCardAction) Tag() string
type MessageCardActionConfirm ¶
type MessageCardActionConfirm struct { Title_ *MessageCardPlainText `json:"title,omitempty"` Text_ *MessageCardPlainText `json:"text,omitempty"` }
func NewMessageCardActionConfirm ¶
func NewMessageCardActionConfirm() *MessageCardActionConfirm
func (*MessageCardActionConfirm) Build ¶
func (confirm *MessageCardActionConfirm) Build() *MessageCardActionConfirm
func (*MessageCardActionConfirm) Text ¶
func (confirm *MessageCardActionConfirm) Text(text *MessageCardPlainText) *MessageCardActionConfirm
func (*MessageCardActionConfirm) Title ¶
func (confirm *MessageCardActionConfirm) Title(title *MessageCardPlainText) *MessageCardActionConfirm
type MessageCardActionElement ¶
type MessageCardActionElement interface { MessageCardElement IsAction() }
type MessageCardActionLayout ¶
type MessageCardActionLayout string
const ( MessageCardActionLayoutBisected MessageCardActionLayout = "bisected" MessageCardActionLayoutTrisection MessageCardActionLayout = "trisection" MessageCardActionLayoutFlow MessageCardActionLayout = "flow" )
func (MessageCardActionLayout) Ptr ¶
func (al MessageCardActionLayout) Ptr() *MessageCardActionLayout
type MessageCardButtonType ¶
type MessageCardButtonType string
const ( MessageCardButtonTypeDefault MessageCardButtonType = "default" MessageCardButtonTypePrimary MessageCardButtonType = "primary" MessageCardButtonTypeDanger MessageCardButtonType = "danger" )
func (MessageCardButtonType) Ptr ¶
func (bt MessageCardButtonType) Ptr() *MessageCardButtonType
type MessageCardConfig ¶
type MessageCardConfig struct { EnableForward_ *bool `json:"enable_forward,omitempty"` UpdateMulti_ *bool `json:"update_multi,omitempty"` WideScreenMode_ *bool `json:"wide_screen_mode,omitempty"` }
func NewMessageCardConfig ¶
func NewMessageCardConfig() *MessageCardConfig
func (*MessageCardConfig) Build ¶
func (config *MessageCardConfig) Build() *MessageCardConfig
func (*MessageCardConfig) EnableForward ¶
func (config *MessageCardConfig) EnableForward(enableForward bool) *MessageCardConfig
func (*MessageCardConfig) UpdateMulti ¶
func (config *MessageCardConfig) UpdateMulti(updateMulti bool) *MessageCardConfig
func (*MessageCardConfig) WideScreenMode ¶
func (config *MessageCardConfig) WideScreenMode(wideScreenMode bool) *MessageCardConfig
type MessageCardDiv ¶
type MessageCardDiv struct { Text_ MessageCardText `json:"text,omitempty"` Fields_ []*MessageCardField `json:"fields,omitempty"` Extra_ MessageCardExtraElement `json:"extra,omitempty"` }
func NewMessageCardDiv ¶
func NewMessageCardDiv() *MessageCardDiv
func (*MessageCardDiv) Build ¶
func (div *MessageCardDiv) Build() *MessageCardDiv
func (*MessageCardDiv) Extra ¶
func (div *MessageCardDiv) Extra(extra MessageCardExtraElement) *MessageCardDiv
func (*MessageCardDiv) Fields ¶
func (div *MessageCardDiv) Fields(fields []*MessageCardField) *MessageCardDiv
func (*MessageCardDiv) MarshalJSON ¶
func (m *MessageCardDiv) MarshalJSON() ([]byte, error)
func (*MessageCardDiv) Tag ¶
func (m *MessageCardDiv) Tag() string
func (*MessageCardDiv) Text ¶
func (div *MessageCardDiv) Text(text MessageCardText) *MessageCardDiv
type MessageCardElement ¶
type MessageCardEmbedButton ¶
type MessageCardEmbedButton struct { Text_ MessageCardText `json:"text,omitempty"` URL_ *string `json:"url,omitempty"` MultiURL_ *MessageCardURL `json:"multi_url,omitempty"` Type_ *MessageCardButtonType `json:"type,omitempty"` Value_ map[string]interface{} `json:"value,omitempty"` Confirm_ *MessageCardActionConfirm `json:"confirm,omitempty"` }
func NewMessageCardEmbedButton ¶
func NewMessageCardEmbedButton() *MessageCardEmbedButton
func (*MessageCardEmbedButton) Build ¶
func (m *MessageCardEmbedButton) Build() *MessageCardEmbedButton
func (*MessageCardEmbedButton) Confirm ¶
func (m *MessageCardEmbedButton) Confirm(confirm *MessageCardActionConfirm) *MessageCardEmbedButton
func (*MessageCardEmbedButton) IsAction ¶
func (m *MessageCardEmbedButton) IsAction()
func (*MessageCardEmbedButton) IsExtra ¶
func (m *MessageCardEmbedButton) IsExtra()
func (*MessageCardEmbedButton) MarshalJSON ¶
func (m *MessageCardEmbedButton) MarshalJSON() ([]byte, error)
func (*MessageCardEmbedButton) MultiUrl ¶
func (m *MessageCardEmbedButton) MultiUrl(multiURL *MessageCardURL) *MessageCardEmbedButton
func (*MessageCardEmbedButton) Tag ¶
func (m *MessageCardEmbedButton) Tag() string
func (*MessageCardEmbedButton) Text ¶
func (m *MessageCardEmbedButton) Text(text MessageCardText) *MessageCardEmbedButton
func (*MessageCardEmbedButton) Type ¶
func (m *MessageCardEmbedButton) Type(type_ MessageCardButtonType) *MessageCardEmbedButton
func (*MessageCardEmbedButton) Url ¶
func (m *MessageCardEmbedButton) Url(url string) *MessageCardEmbedButton
func (*MessageCardEmbedButton) Value ¶
func (m *MessageCardEmbedButton) Value(value map[string]interface{}) *MessageCardEmbedButton
type MessageCardEmbedDatePicker ¶
type MessageCardEmbedDatePicker struct {
*MessageCardEmbedDatePickerBase
}
func NewMessageCardEmbedDatePicker ¶
func NewMessageCardEmbedDatePicker() *MessageCardEmbedDatePicker
func (*MessageCardEmbedDatePicker) MarshalJSON ¶
func (m *MessageCardEmbedDatePicker) MarshalJSON() ([]byte, error)
func (*MessageCardEmbedDatePicker) MessageCardEmbedDatePicker ¶
func (m *MessageCardEmbedDatePicker) MessageCardEmbedDatePicker(base *MessageCardEmbedDatePickerBase) *MessageCardEmbedDatePicker
func (*MessageCardEmbedDatePicker) Tag ¶
func (m *MessageCardEmbedDatePicker) Tag() string
type MessageCardEmbedDatePickerBase ¶
type MessageCardEmbedDatePickerBase struct { InitialDate_ *string `json:"initial_date,omitempty"` InitialTime_ *string `json:"initial_time,omitempty"` InitialDatetime_ *string `json:"initial_datetime,omitempty"` Placeholder_ *MessageCardPlainText `json:"placeholder,omitempty"` Value_ map[string]interface{} `json:"value,omitempty"` Confirm_ *MessageCardActionConfirm `json:"confirm,omitempty"` }
func NewMessageCardEmbedDatePickerBase ¶
func NewMessageCardEmbedDatePickerBase() *MessageCardEmbedDatePickerBase
func (*MessageCardEmbedDatePickerBase) Build ¶
func (picker *MessageCardEmbedDatePickerBase) Build() *MessageCardEmbedDatePickerBase
func (*MessageCardEmbedDatePickerBase) Confirm ¶
func (picker *MessageCardEmbedDatePickerBase) Confirm(confirm *MessageCardActionConfirm) *MessageCardEmbedDatePickerBase
func (*MessageCardEmbedDatePickerBase) InitialDate ¶
func (picker *MessageCardEmbedDatePickerBase) InitialDate(initialDate string) *MessageCardEmbedDatePickerBase
func (*MessageCardEmbedDatePickerBase) InitialDatetime ¶
func (picker *MessageCardEmbedDatePickerBase) InitialDatetime(initialDatetime string) *MessageCardEmbedDatePickerBase
func (*MessageCardEmbedDatePickerBase) InitialTime ¶
func (picker *MessageCardEmbedDatePickerBase) InitialTime(initialTime string) *MessageCardEmbedDatePickerBase
func (*MessageCardEmbedDatePickerBase) IsAction ¶
func (m *MessageCardEmbedDatePickerBase) IsAction()
func (*MessageCardEmbedDatePickerBase) IsExtra ¶
func (m *MessageCardEmbedDatePickerBase) IsExtra()
func (*MessageCardEmbedDatePickerBase) Placeholder ¶
func (picker *MessageCardEmbedDatePickerBase) Placeholder(placeholder *MessageCardPlainText) *MessageCardEmbedDatePickerBase
func (*MessageCardEmbedDatePickerBase) Value ¶
func (picker *MessageCardEmbedDatePickerBase) Value(value map[string]interface{}) *MessageCardEmbedDatePickerBase
type MessageCardEmbedImage ¶
type MessageCardEmbedImage struct { Alt_ *MessageCardPlainText `json:"alt,omitempty"` ImgKey_ string `json:"img_key,omitempty"` Mode_ *MessageCardImageModel `json:"mode,omitempty"` Preview_ *bool `json:"preview,omitempty"` }
func NewMessageCardEmbedImage ¶
func NewMessageCardEmbedImage() *MessageCardEmbedImage
func (*MessageCardEmbedImage) Alt ¶
func (image *MessageCardEmbedImage) Alt(alt *MessageCardPlainText) *MessageCardEmbedImage
func (*MessageCardEmbedImage) Build ¶
func (image *MessageCardEmbedImage) Build() *MessageCardEmbedImage
func (*MessageCardEmbedImage) ImgKey ¶
func (image *MessageCardEmbedImage) ImgKey(imgKey string) *MessageCardEmbedImage
func (*MessageCardEmbedImage) IsExtra ¶
func (m *MessageCardEmbedImage) IsExtra()
func (*MessageCardEmbedImage) IsNote ¶
func (m *MessageCardEmbedImage) IsNote()
func (*MessageCardEmbedImage) MarshalJSON ¶ added in v3.0.1
func (m *MessageCardEmbedImage) MarshalJSON() ([]byte, error)
func (*MessageCardEmbedImage) Mode ¶
func (image *MessageCardEmbedImage) Mode(mode *MessageCardImageModel) *MessageCardEmbedImage
func (*MessageCardEmbedImage) Preview ¶
func (image *MessageCardEmbedImage) Preview(preview bool) *MessageCardEmbedImage
func (*MessageCardEmbedImage) Tag ¶
func (m *MessageCardEmbedImage) Tag() string
type MessageCardEmbedOverflow ¶
type MessageCardEmbedOverflow struct { Options_ []*MessageCardEmbedSelectOption `json:"options,omitempty"` Value_ map[string]interface { } `json:"value,omitempty"` Confirm_ *MessageCardActionConfirm `json:"confirm,omitempty"` }
func NewMessageCardEmbedOverflow ¶
func NewMessageCardEmbedOverflow() *MessageCardEmbedOverflow
func (*MessageCardEmbedOverflow) Build ¶
func (overFlow *MessageCardEmbedOverflow) Build() *MessageCardEmbedOverflow
func (*MessageCardEmbedOverflow) Confirm ¶
func (overFlow *MessageCardEmbedOverflow) Confirm(confirm *MessageCardActionConfirm) *MessageCardEmbedOverflow
func (*MessageCardEmbedOverflow) IsAction ¶
func (m *MessageCardEmbedOverflow) IsAction()
func (*MessageCardEmbedOverflow) IsExtra ¶
func (m *MessageCardEmbedOverflow) IsExtra()
func (*MessageCardEmbedOverflow) MarshalJSON ¶
func (m *MessageCardEmbedOverflow) MarshalJSON() ([]byte, error)
func (*MessageCardEmbedOverflow) Options ¶
func (overFlow *MessageCardEmbedOverflow) Options(options []*MessageCardEmbedSelectOption) *MessageCardEmbedOverflow
func (*MessageCardEmbedOverflow) Tag ¶
func (m *MessageCardEmbedOverflow) Tag() string
func (*MessageCardEmbedOverflow) Value ¶
func (overFlow *MessageCardEmbedOverflow) Value(value map[string]interface{}) *MessageCardEmbedOverflow
type MessageCardEmbedPickerDatetime ¶
type MessageCardEmbedPickerDatetime struct {
*MessageCardEmbedDatePickerBase
}
func NewMessageCardEmbedPickerDatetime ¶
func NewMessageCardEmbedPickerDatetime() *MessageCardEmbedPickerDatetime
func (*MessageCardEmbedPickerDatetime) Build ¶
func (m *MessageCardEmbedPickerDatetime) Build() *MessageCardEmbedPickerDatetime
func (*MessageCardEmbedPickerDatetime) MarshalJSON ¶
func (m *MessageCardEmbedPickerDatetime) MarshalJSON() ([]byte, error)
func (*MessageCardEmbedPickerDatetime) MessageCardEmbedPickerDatetime ¶
func (m *MessageCardEmbedPickerDatetime) MessageCardEmbedPickerDatetime(base *MessageCardEmbedDatePickerBase) *MessageCardEmbedPickerDatetime
func (*MessageCardEmbedPickerDatetime) Tag ¶
func (m *MessageCardEmbedPickerDatetime) Tag() string
type MessageCardEmbedPickerTime ¶
type MessageCardEmbedPickerTime struct {
*MessageCardEmbedDatePickerBase
}
func NewMessageCardEmbedPickerTime ¶
func NewMessageCardEmbedPickerTime() *MessageCardEmbedPickerTime
func (*MessageCardEmbedPickerTime) Build ¶
func (m *MessageCardEmbedPickerTime) Build() *MessageCardEmbedPickerTime
func (*MessageCardEmbedPickerTime) MarshalJSON ¶
func (m *MessageCardEmbedPickerTime) MarshalJSON() ([]byte, error)
func (*MessageCardEmbedPickerTime) MessageCardEmbedPickerTime ¶
func (m *MessageCardEmbedPickerTime) MessageCardEmbedPickerTime(base *MessageCardEmbedDatePickerBase) *MessageCardEmbedPickerTime
func (*MessageCardEmbedPickerTime) Tag ¶
func (m *MessageCardEmbedPickerTime) Tag() string
type MessageCardEmbedSelectMenuBase ¶
type MessageCardEmbedSelectMenuBase struct { Placeholder_ *MessageCardPlainText `json:"placeholder,omitempty"` InitialOption_ string `json:"initial_option,omitempty"` Options_ []*MessageCardEmbedSelectOption `json:"options,omitempty"` Value_ map[string]interface { } `json:"value,omitempty"` Confirm_ *MessageCardActionConfirm `json:"confirm,omitempty"` }
func NewMessageCardEmbedSelectMenuBase ¶
func NewMessageCardEmbedSelectMenuBase() *MessageCardEmbedSelectMenuBase
func (*MessageCardEmbedSelectMenuBase) Build ¶
func (selectMenu *MessageCardEmbedSelectMenuBase) Build() *MessageCardEmbedSelectMenuBase
func (*MessageCardEmbedSelectMenuBase) Confirm ¶
func (selectMenu *MessageCardEmbedSelectMenuBase) Confirm(confirm *MessageCardActionConfirm) *MessageCardEmbedSelectMenuBase
func (*MessageCardEmbedSelectMenuBase) InitialOption ¶
func (selectMenu *MessageCardEmbedSelectMenuBase) InitialOption(initialOption string) *MessageCardEmbedSelectMenuBase
func (*MessageCardEmbedSelectMenuBase) IsAction ¶
func (m *MessageCardEmbedSelectMenuBase) IsAction()
func (*MessageCardEmbedSelectMenuBase) IsExtra ¶
func (m *MessageCardEmbedSelectMenuBase) IsExtra()
func (*MessageCardEmbedSelectMenuBase) Options ¶
func (selectMenu *MessageCardEmbedSelectMenuBase) Options(options []*MessageCardEmbedSelectOption) *MessageCardEmbedSelectMenuBase
func (*MessageCardEmbedSelectMenuBase) Placeholder ¶
func (selectMenu *MessageCardEmbedSelectMenuBase) Placeholder(placeholder *MessageCardPlainText) *MessageCardEmbedSelectMenuBase
func (*MessageCardEmbedSelectMenuBase) Value ¶
func (selectMenu *MessageCardEmbedSelectMenuBase) Value(value map[string]interface{}) *MessageCardEmbedSelectMenuBase
type MessageCardEmbedSelectMenuPerson ¶
type MessageCardEmbedSelectMenuPerson struct {
*MessageCardEmbedSelectMenuBase
}
func NewMessageCardEmbedSelectMenuPerson ¶
func NewMessageCardEmbedSelectMenuPerson() *MessageCardEmbedSelectMenuPerson
func (*MessageCardEmbedSelectMenuPerson) Build ¶
func (menuPerson *MessageCardEmbedSelectMenuPerson) Build(messageCardEmbedSelectMenuBase *MessageCardEmbedSelectMenuBase) *MessageCardEmbedSelectMenuPerson
func (*MessageCardEmbedSelectMenuPerson) MarshalJSON ¶
func (m *MessageCardEmbedSelectMenuPerson) MarshalJSON() ([]byte, error)
func (*MessageCardEmbedSelectMenuPerson) MessageCardEmbedSelectMenu ¶
func (menuPerson *MessageCardEmbedSelectMenuPerson) MessageCardEmbedSelectMenu(messageCardEmbedSelectMenuBase *MessageCardEmbedSelectMenuBase) *MessageCardEmbedSelectMenuPerson
func (*MessageCardEmbedSelectMenuPerson) Tag ¶
func (m *MessageCardEmbedSelectMenuPerson) Tag() string
type MessageCardEmbedSelectMenuStatic ¶
type MessageCardEmbedSelectMenuStatic struct {
*MessageCardEmbedSelectMenuBase
}
func NewMessageCardEmbedSelectMenuStatic ¶
func NewMessageCardEmbedSelectMenuStatic() *MessageCardEmbedSelectMenuStatic
func (*MessageCardEmbedSelectMenuStatic) Build ¶
func (m *MessageCardEmbedSelectMenuStatic) Build() *MessageCardEmbedSelectMenuStatic
func (*MessageCardEmbedSelectMenuStatic) MarshalJSON ¶
func (m *MessageCardEmbedSelectMenuStatic) MarshalJSON() ([]byte, error)
func (*MessageCardEmbedSelectMenuStatic) MessageCardEmbedSelectMenuStatic ¶
func (m *MessageCardEmbedSelectMenuStatic) MessageCardEmbedSelectMenuStatic(base *MessageCardEmbedSelectMenuBase) *MessageCardEmbedSelectMenuStatic
func (*MessageCardEmbedSelectMenuStatic) Tag ¶
func (m *MessageCardEmbedSelectMenuStatic) Tag() string
type MessageCardEmbedSelectOption ¶
type MessageCardEmbedSelectOption struct { Text_ *MessageCardPlainText `json:"text,omitempty"` Value_ string `json:"value,omitempty"` URL_ *string `json:"url,omitempty"` MultiURL_ *MessageCardURL `json:"multi_url,omitempty"` Type_ *MessageCardButtonType `json:"type,omitempty"` }
func NewMessageCardEmbedSelectOption ¶
func NewMessageCardEmbedSelectOption() *MessageCardEmbedSelectOption
func (*MessageCardEmbedSelectOption) Build ¶
func (m *MessageCardEmbedSelectOption) Build() *MessageCardEmbedSelectOption
func (*MessageCardEmbedSelectOption) MultiUrl ¶
func (m *MessageCardEmbedSelectOption) MultiUrl(multiUrl *MessageCardURL) *MessageCardEmbedSelectOption
func (*MessageCardEmbedSelectOption) Text ¶
func (m *MessageCardEmbedSelectOption) Text(text *MessageCardPlainText) *MessageCardEmbedSelectOption
func (*MessageCardEmbedSelectOption) Type ¶
func (m *MessageCardEmbedSelectOption) Type(type_ *MessageCardButtonType) *MessageCardEmbedSelectOption
func (*MessageCardEmbedSelectOption) URL ¶
func (m *MessageCardEmbedSelectOption) URL(url string) *MessageCardEmbedSelectOption
func (*MessageCardEmbedSelectOption) Value ¶
func (m *MessageCardEmbedSelectOption) Value(value string) *MessageCardEmbedSelectOption
type MessageCardExtraElement ¶
type MessageCardExtraElement interface { MessageCardElement IsExtra() }
type MessageCardField ¶
type MessageCardField struct { IsShort_ bool `json:"is_short,omitempty"` Text_ MessageCardText `json:"text,omitempty"` }
func NewMessageCardField ¶
func NewMessageCardField() *MessageCardField
func (*MessageCardField) Build ¶
func (field *MessageCardField) Build() *MessageCardField
func (*MessageCardField) IsShort ¶
func (field *MessageCardField) IsShort(isShort bool) *MessageCardField
func (*MessageCardField) Text ¶
func (field *MessageCardField) Text(text MessageCardText) *MessageCardField
type MessageCardHeader ¶
type MessageCardHeader struct { Template_ *string `json:"template,omitempty"` Title_ *MessageCardPlainText `json:"title,omitempty"` }
func NewMessageCardHeader ¶
func NewMessageCardHeader() *MessageCardHeader
func (*MessageCardHeader) Build ¶
func (header *MessageCardHeader) Build() *MessageCardHeader
func (*MessageCardHeader) Template ¶
func (header *MessageCardHeader) Template(template string) *MessageCardHeader
func (*MessageCardHeader) Title ¶
func (header *MessageCardHeader) Title(title *MessageCardPlainText) *MessageCardHeader
type MessageCardHr ¶
type MessageCardHr struct { }
func NewMessageCardHr ¶
func NewMessageCardHr() *MessageCardHr
func (*MessageCardHr) Build ¶
func (hr *MessageCardHr) Build() *MessageCardHr
func (*MessageCardHr) MarshalJSON ¶
func (m *MessageCardHr) MarshalJSON() ([]byte, error)
func (*MessageCardHr) Tag ¶
func (m *MessageCardHr) Tag() string
type MessageCardI18nElements ¶
type MessageCardI18nElements struct { ZhCN_ []MessageCardElement `json:"zh_cn,omitempty"` EnUS_ []MessageCardElement `json:"en_us,omitempty"` JaJP_ []MessageCardElement `json:"ja_jp,omitempty"` }
func NewMessageCardI18nElements ¶
func NewMessageCardI18nElements() *MessageCardI18nElements
func (*MessageCardI18nElements) Build ¶
func (i18nEle *MessageCardI18nElements) Build() *MessageCardI18nElements
func (*MessageCardI18nElements) EnUS ¶
func (i18nEle *MessageCardI18nElements) EnUS(enUS []MessageCardElement) *MessageCardI18nElements
func (*MessageCardI18nElements) JaJP ¶
func (i18nEle *MessageCardI18nElements) JaJP(jaJP []MessageCardElement) *MessageCardI18nElements
func (*MessageCardI18nElements) ZhCN ¶
func (i18nEle *MessageCardI18nElements) ZhCN(zhCn []MessageCardElement) *MessageCardI18nElements
type MessageCardImage ¶
type MessageCardImage struct { Alt_ *MessageCardPlainText `json:"alt,omitempty"` Title_ MessageCardText `json:"title,omitempty"` ImgKey_ string `json:"img_key,omitempty"` CustomWidth_ *int `json:"custom_width,omitempty"` CompactWidth_ *bool `json:"compact_width,omitempty"` Mode_ *MessageCardImageModel `json:"mode,omitempty"` Preview_ *bool `json:"preview,omitempty"` }
func NewMessageCardImage ¶
func NewMessageCardImage() *MessageCardImage
func (*MessageCardImage) Alt ¶
func (image *MessageCardImage) Alt(alt *MessageCardPlainText) *MessageCardImage
func (*MessageCardImage) Build ¶
func (image *MessageCardImage) Build() *MessageCardImage
func (*MessageCardImage) CompactWidth ¶
func (image *MessageCardImage) CompactWidth(compactWidth bool) *MessageCardImage
func (*MessageCardImage) CustomWidth ¶
func (image *MessageCardImage) CustomWidth(customWidth int) *MessageCardImage
func (*MessageCardImage) ImgKey ¶
func (image *MessageCardImage) ImgKey(imgKey string) *MessageCardImage
func (*MessageCardImage) MarshalJSON ¶
func (m *MessageCardImage) MarshalJSON() ([]byte, error)
func (*MessageCardImage) Mode ¶
func (image *MessageCardImage) Mode(mode MessageCardImageModel) *MessageCardImage
func (*MessageCardImage) Preview ¶
func (image *MessageCardImage) Preview(preview bool) *MessageCardImage
func (*MessageCardImage) Tag ¶
func (m *MessageCardImage) Tag() string
func (*MessageCardImage) Title ¶
func (image *MessageCardImage) Title(title MessageCardText) *MessageCardImage
type MessageCardImageModel ¶
type MessageCardImageModel string
const ( MessageCardImageModelFitHorizontal MessageCardImageModel = "fit_horizontal" MessageCardImageModelCropCenter MessageCardImageModel = "crop_center" )
func (MessageCardImageModel) Ptr ¶
func (m MessageCardImageModel) Ptr() *MessageCardImageModel
type MessageCardLarkMd ¶
type MessageCardLarkMd struct {
Content_ string `json:"content,omitempty"`
}
func NewMessageCardLarkMd ¶
func NewMessageCardLarkMd() *MessageCardLarkMd
func (*MessageCardLarkMd) Build ¶
func (md *MessageCardLarkMd) Build() *MessageCardLarkMd
func (*MessageCardLarkMd) Content ¶
func (md *MessageCardLarkMd) Content(content string) *MessageCardLarkMd
func (*MessageCardLarkMd) IsExtra ¶
func (m *MessageCardLarkMd) IsExtra()
func (*MessageCardLarkMd) IsNote ¶
func (m *MessageCardLarkMd) IsNote()
func (*MessageCardLarkMd) MarshalJSON ¶
func (m *MessageCardLarkMd) MarshalJSON() ([]byte, error)
func (*MessageCardLarkMd) Tag ¶
func (m *MessageCardLarkMd) Tag() string
func (*MessageCardLarkMd) Text ¶
func (m *MessageCardLarkMd) Text() string
type MessageCardMarkdown ¶
type MessageCardMarkdown struct { Content_ string `json:"content,omitempty"` Href_ map[string]*MessageCardURL `json:"href,omitempty"` }
func NewMessageCardMarkdown ¶
func NewMessageCardMarkdown() *MessageCardMarkdown
func (*MessageCardMarkdown) Build ¶
func (markDown *MessageCardMarkdown) Build() *MessageCardMarkdown
func (*MessageCardMarkdown) Content ¶
func (markDown *MessageCardMarkdown) Content(content string) *MessageCardMarkdown
func (*MessageCardMarkdown) Href ¶
func (markDown *MessageCardMarkdown) Href(href map[string]*MessageCardURL) *MessageCardMarkdown
func (*MessageCardMarkdown) MarshalJSON ¶
func (m *MessageCardMarkdown) MarshalJSON() ([]byte, error)
func (*MessageCardMarkdown) Tag ¶
func (m *MessageCardMarkdown) Tag() string
type MessageCardNote ¶
type MessageCardNote struct {
Elements_ []MessageCardNoteElement `json:"elements,omitempty"`
}
func NewMessageCardNote ¶
func NewMessageCardNote() *MessageCardNote
func (*MessageCardNote) Build ¶
func (note *MessageCardNote) Build() *MessageCardNote
func (*MessageCardNote) Elements ¶
func (note *MessageCardNote) Elements(elements []MessageCardNoteElement) *MessageCardNote
func (*MessageCardNote) MarshalJSON ¶
func (m *MessageCardNote) MarshalJSON() ([]byte, error)
func (*MessageCardNote) Tag ¶
func (m *MessageCardNote) Tag() string
type MessageCardNoteElement ¶
type MessageCardNoteElement interface { MessageCardElement IsNote() }
type MessageCardPlainText ¶
type MessageCardPlainText struct { Content_ string `json:"content,omitempty"` Lines_ *int `json:"lines,omitempty"` I18n_ *MessageCardPlainTextI18n `json:"i18n,omitempty"` }
func NewMessageCardPlainText ¶
func NewMessageCardPlainText() *MessageCardPlainText
func (*MessageCardPlainText) Build ¶
func (plainText *MessageCardPlainText) Build() *MessageCardPlainText
func (*MessageCardPlainText) Content ¶
func (plainText *MessageCardPlainText) Content(content string) *MessageCardPlainText
func (*MessageCardPlainText) I18n ¶
func (plainText *MessageCardPlainText) I18n(i18n *MessageCardPlainTextI18n) *MessageCardPlainText
func (*MessageCardPlainText) IsExtra ¶
func (m *MessageCardPlainText) IsExtra()
func (*MessageCardPlainText) IsNote ¶
func (m *MessageCardPlainText) IsNote()
func (*MessageCardPlainText) Lines ¶
func (plainText *MessageCardPlainText) Lines(lines int) *MessageCardPlainText
func (*MessageCardPlainText) MarshalJSON ¶
func (m *MessageCardPlainText) MarshalJSON() ([]byte, error)
func (*MessageCardPlainText) Tag ¶
func (m *MessageCardPlainText) Tag() string
func (*MessageCardPlainText) Text ¶
func (m *MessageCardPlainText) Text() string
type MessageCardPlainTextI18n ¶
type MessageCardPlainTextI18n struct { ZhCN_ string `json:"zh_cn,omitempty"` EnUS_ string `json:"en_us,omitempty"` JaJP_ string `json:"ja_jp,omitempty"` }
func NewMessageCardPlainTextI18n ¶
func NewMessageCardPlainTextI18n() *MessageCardPlainTextI18n
func (*MessageCardPlainTextI18n) Build ¶
func (i18n *MessageCardPlainTextI18n) Build() *MessageCardPlainTextI18n
func (*MessageCardPlainTextI18n) EnUS ¶
func (i18n *MessageCardPlainTextI18n) EnUS(enUs string) *MessageCardPlainTextI18n
func (*MessageCardPlainTextI18n) JaJP ¶
func (i18n *MessageCardPlainTextI18n) JaJP(jaJp string) *MessageCardPlainTextI18n
func (*MessageCardPlainTextI18n) ZhCN ¶
func (i18n *MessageCardPlainTextI18n) ZhCN(zhCn string) *MessageCardPlainTextI18n
type MessageCardText ¶
type MessageCardText interface { MessageCardElement Text() string }
type MessageCardURL ¶
type MessageCardURL struct { URL_ string `json:"url,omitempty"` AndroidURL_ string `json:"android_url,omitempty"` IOSURL_ string `json:"ios_url,omitempty"` PCURL_ string `json:"pc_url,omitempty"` }
func NewMessageCardURL ¶
func NewMessageCardURL() *MessageCardURL
func (*MessageCardURL) AndroidUrl ¶
func (cardUrl *MessageCardURL) AndroidUrl(androidUrl string) *MessageCardURL
func (*MessageCardURL) Build ¶
func (cardUrl *MessageCardURL) Build() *MessageCardURL
func (*MessageCardURL) IoSUrl ¶
func (cardUrl *MessageCardURL) IoSUrl(iOSUrl string) *MessageCardURL
func (*MessageCardURL) PcUrl ¶
func (cardUrl *MessageCardURL) PcUrl(pcURL string) *MessageCardURL
func (*MessageCardURL) Url ¶
func (cardUrl *MessageCardURL) Url(url string) *MessageCardURL
Click to show internal directories.
Click to hide internal directories.