Documentation ¶
Index ¶
- Constants
- type BotMsgContent
- type Content
- type CustomerMsg
- type CustomerMsgImage
- type CustomerMsgLink
- type CustomerMsgText
- type EnterpriseGroupMsg
- type MPMsgTemplate
- type MiniProgram
- type MsgCustomer
- type MsgImage
- type MsgLink
- type MsgResp
- type MsgRespImage
- type MsgTemplate
- type MsgValue
- type ReqBotMsg
- type ReqMiniProgramSubscribeMsg
- type Service
- func (s *Service) GetAccessToken(appID string, appSecret string) (string, error)
- func (s *Service) Init(app sptty.ISptty) error
- func (s *Service) PostGroupBotMsg(req *ReqBotMsg) error
- func (s *Service) SendCustomerMsg(token string, body interface{}) error
- func (s *Service) SendMPTemplateMsg(token string, openid string, templateid string, page string, formid string, ...) error
- func (s *Service) SendMiniProgramSubscribeMsg(req *ReqMiniProgramSubscribeMsg) error
- func (s *Service) ServiceName() string
- type SubscribeMsg
- type TemplateValue
- type TokenResp
Constants ¶
View Source
const ( BotMsgTypeText = "text" BotMsgTypeMarkdown = "markdown" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotMsgContent ¶
type CustomerMsg ¶
type CustomerMsgImage ¶
type CustomerMsgImage struct { CustomerMsg Image MsgImage `json:"image"` }
type CustomerMsgLink ¶
type CustomerMsgLink struct { CustomerMsg Link MsgLink `json:"link"` }
type CustomerMsgText ¶
type CustomerMsgText struct { CustomerMsg Text Content `json:"text"` }
type EnterpriseGroupMsg ¶
type MPMsgTemplate ¶
type MiniProgram ¶
type MsgCustomer ¶
type MsgRespImage ¶
type MsgTemplate ¶
type ReqBotMsg ¶
type ReqBotMsg struct { BotKey string BotMsgContent }
type ReqMiniProgramSubscribeMsg ¶
type ReqMiniProgramSubscribeMsg struct { AccessToken string SubscribeMsg }
type Service ¶
type Service struct { sptty.BaseService // contains filtered or unexported fields }
func (*Service) GetAccessToken ¶
func (*Service) PostGroupBotMsg ¶
企业微信群机器人消息推送
func (*Service) SendCustomerMsg ¶
func (*Service) SendMPTemplateMsg ¶
func (*Service) SendMiniProgramSubscribeMsg ¶
func (s *Service) SendMiniProgramSubscribeMsg(req *ReqMiniProgramSubscribeMsg) error
小程序订阅消息
func (*Service) ServiceName ¶
type SubscribeMsg ¶
type TemplateValue ¶
type TemplateValue struct {
Value string `json:"value"`
}
Click to show internal directories.
Click to hide internal directories.