Documentation ¶
Index ¶
- func NewBusinessError(err error) error
- func NewError(code int, err error) error
- func NewSDKError(err error) error
- type CreateQrcodeResult
- type Error
- type Message
- func (m *Message) AddTopicId(id int, more ...int) *Message
- func (m *Message) AddUId(id string, more ...string) *Message
- func (m Message) Check() error
- func (m *Message) SetContent(content string) *Message
- func (m *Message) SetContentType(ct int) *Message
- func (m *Message) SetSummary(summary string) *Message
- func (m *Message) SetUrl(url string) *Message
- type Qrcode
- type QueryWxUserResult
- type Result
- type SendMsgResult
- type WxUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateQrcodeResult ¶
type CreateQrcodeResult struct { Expires int `json:"expires"` Code string `json:"code"` ShortUrl string `json:"shortUrl"` Url string `json:"url"` Extra string `json:"extra"` }
CreateQrcodeResult 创建二维码返回参数
type Message ¶
type Message struct { AppToken string `json:"appToken"` Content string `json:"content"` Summary string `json:"summary"` ContentType int `json:"contentType"` TopicIds []int `json:"topicIds"` UIds []string `json:"uids"` Url string `json:"url"` }
Message 消息
ContentType: 1-文字 2-html
func (*Message) AddTopicId ¶
AddTopicId 添加主题
func (*Message) SetContent ¶
func (*Message) SetContentType ¶
func (*Message) SetSummary ¶
type Qrcode ¶
type Qrcode struct { AppToken string `json:"appToken"` Extra string `json:"extra"` ValidTime int `json:"validTime"` }
Qrcode 生成二维码参数
type QueryWxUserResult ¶
type QueryWxUserResult struct { Total int `json:"total"` Page int `json:"page"` PageSize int `json:"pageSize"` Records []WxUser `json:"records"` }
QueryWxUserResult 分页查询微信用户返回结果
type Result ¶
type Result struct { Code int `json:"code"` Msg string `json:"msg"` Data interface{} `json:"data"` }
Result 接口返回结果
Click to show internal directories.
Click to hide internal directories.