|
@@ -10,6 +10,23 @@ type FormSignature struct {
|
|
|
Echostr string `form:"echostr" json:"echostr"`
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+type FormAuthorize struct {
|
|
|
+ Code string `form:"code"`
|
|
|
+ State string `form:"state"`
|
|
|
+ URL string `form:"url"`
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+type FormOpenID struct {
|
|
|
+ OpenID string `form:"openid"`
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+type FormCode struct {
|
|
|
+ Code string `form:"code"`
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
type ResponseMsg struct {
|
|
|
ErrCode int `json:"errcode"`
|
|
@@ -45,6 +62,9 @@ type Response struct {
|
|
|
|
|
|
|
|
|
Ticket string `json:"ticket"`
|
|
|
+
|
|
|
+
|
|
|
+ SessionKey string `json:"session_key"`
|
|
|
}
|
|
|
|
|
|
|
|
@@ -68,3 +88,144 @@ type EventTemplateReply struct {
|
|
|
MsgID string `xml:"MsgID"`
|
|
|
Status string `xml:"Status"`
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+type SignPackage struct {
|
|
|
+ AppID string `json:"appId"`
|
|
|
+ NonceStr string `json:"nonceStr"`
|
|
|
+ Timestamp int64 `json:"timestamp"`
|
|
|
+ Signature string `json:"signature"`
|
|
|
+ URL string `json:"url"`
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+type Client struct {
|
|
|
+ AppID string `json:"appid"`
|
|
|
+ AppSecret string `json:"appsecret"`
|
|
|
+ Token string `json:"token"`
|
|
|
+ EncodingAESKey string `json:"encodingaeskey"`
|
|
|
+
|
|
|
+ AccessToken string
|
|
|
+ LastTokenTime int64
|
|
|
+
|
|
|
+ Ticket string
|
|
|
+ LastTicketTime int64
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+type MiniClient struct {
|
|
|
+ AppID string `json:"appid"`
|
|
|
+ AppSecret string `json:"appsecret"`
|
|
|
+
|
|
|
+ AccessToken string
|
|
|
+ LastTokenTime int64
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+type FormMaterial struct {
|
|
|
+ Type string `form:"type"`
|
|
|
+ Offset int `form:"offset"`
|
|
|
+ Count int `form:"count"`
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+type UserInfo struct {
|
|
|
+ SubScribe int `json:"subscribe"`
|
|
|
+ OpenID string `json:"openid"`
|
|
|
+ NickName string `json:"nickname"`
|
|
|
+ Sex int `json:"sex"`
|
|
|
+ Language string `json:"language"`
|
|
|
+ City string `json:"city"`
|
|
|
+ Province string `json:"province"`
|
|
|
+ Country string `json:"country"`
|
|
|
+ HeadImgURL string `json:"headimgurl"`
|
|
|
+ SubscribeTime int `json:"subscribe_time"`
|
|
|
+ UnionID string `json:"unionid"`
|
|
|
+ Remark string `json:"remark"`
|
|
|
+ GroupID int `json:"groupid"`
|
|
|
+ TagidList []int `json:"tagid_list"`
|
|
|
+ SubscribeScene string `json:"subscribe_scene"`
|
|
|
+ QrScene int `json:"qr_scene"`
|
|
|
+ QrSceneStr string `json:"qr_scene_str"`
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+type List struct {
|
|
|
+ OpenID []string `json:"openid"`
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+type UserList struct {
|
|
|
+ Total int `json:"total"`
|
|
|
+ Count int `json:"count"`
|
|
|
+ Data List `json:"data"`
|
|
|
+ NextOpenID string `json:"next_openid"`
|
|
|
+}
|
|
|
+
|
|
|
+type newsitem struct {
|
|
|
+ Title string `json:"title"`
|
|
|
+ Author string `json:"author"`
|
|
|
+ Digest string `json:"digest"`
|
|
|
+ Content string `json:"content"`
|
|
|
+ ContentSourceURL string `json:"content_source_url"`
|
|
|
+ ThumbMediaID string `json:"thumb_media_id"`
|
|
|
+ ShowCoverPic int `json:"show_cover_pic"`
|
|
|
+ URL string `json:"url"`
|
|
|
+ ThumbURL string `json:"thumb_url"`
|
|
|
+ NeedOpenComment int `json:"need_open_comment"`
|
|
|
+ OnlyFansCanComment int `json:"only_fans_can_comment"`
|
|
|
+}
|
|
|
+
|
|
|
+type content struct {
|
|
|
+ NewsItem []*newsitem `json:"news_item,omitempty"`
|
|
|
+ CreateTime int `json:"create_time,omitempty"`
|
|
|
+ UpdateTime int `json:"update_time,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+type item struct {
|
|
|
+ MediaID string `json:"media_id"`
|
|
|
+ Name string `json:"name,omitempty"`
|
|
|
+ UpdateTime int `json:"update_time"`
|
|
|
+ URL string `json:"url,omitempty"`
|
|
|
+ Content *content `json:"content,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+type Material struct {
|
|
|
+ TotalCount int `json:"total_count"`
|
|
|
+ ItemCount int `json:"item_count"`
|
|
|
+ Item []item `json:"item"`
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+type MiniProgramPage struct {
|
|
|
+ AppID string `json:"appid,omitempty"`
|
|
|
+ PagePath string `json:"pagepath,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+type ValueColor struct {
|
|
|
+ Value string `json:"value"`
|
|
|
+ Color string `json:"color,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+type TemplateData struct {
|
|
|
+ First *ValueColor `json:"first"`
|
|
|
+ Keyword1 *ValueColor `json:"keyword1,omitempty"`
|
|
|
+ Keyword2 *ValueColor `json:"keyword2,omitempty"`
|
|
|
+ Keyword3 *ValueColor `json:"keyword3,omitempty"`
|
|
|
+ Keyword4 *ValueColor `json:"keyword4,omitempty"`
|
|
|
+ Keyword5 *ValueColor `json:"keyword5,omitempty"`
|
|
|
+ Keyword6 *ValueColor `json:"keyword6,omitempty"`
|
|
|
+ Remark *ValueColor `json:"remark,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+type TemplateMessage struct {
|
|
|
+ ToUser string `json:"touser"`
|
|
|
+ TemplateID string `json:"template_id"`
|
|
|
+ URL string `json:"url"`
|
|
|
+ MiniProgram *MiniProgramPage `json:"miniprogram,omitempty"`
|
|
|
+ Data TemplateData `json:"data"`
|
|
|
+}
|