Documentation
¶
Index ¶
- func DelImage(c *gin.Context)
- func Emoticons(c *gin.Context)
- func NewEmoticons(c *gin.Context)
- func NewUser(c *gin.Context)
- func Response(c *gin.Context, code int, data DoutuResponse)
- func UploadImage(c *gin.Context)
- func WechatAuth(c *gin.Context)
- type DoutuResponse
- type EmoticonsRequest
- type NewUserReq
- type WechatAuthReq
- type WechatAuthResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DoutuResponse ¶
type DoutuResponse struct { Status bool `json:"status"` // 成功失败标志;true:成功 、false:失败 Data interface{} `json:"data"` // 返回数据 Message string `json:"message"` // 提示信息 }
返回结果
type EmoticonsRequest ¶
type EmoticonsRequest struct { Url string `json:"url"` // 表情包链接地址 EmoticonsTypeID int64 `json:"emoticons_type_id"` // 表情包类型ID GroupingTitle string `json:"crouping_title"` // 表情包图组标题 GroupingDescription string `json:"crouping_description"` // 表情包图组描述 OpenID string `json:"open_id"` // 微信用户唯一ID }
表情包请求参数
type NewUserReq ¶
type NewUserReq struct { Sex int64 `json:"sex"` // 性别 0:未知 1:男 2:女 Avatar string `json:"avatar"` // 头像 Nickname string `json:"nickname"` // 微信用户昵称 OpenID string `json:"open_id"` // 微信用户唯一标识 Country string `json:"country"` // 所在国家 Province string `json:"province"` // 所在省份 City string `json:"city"` // 所在城市 }
微信更新用户信息
type WechatAuthResponse ¶
type WechatAuthResponse struct { OpenID string `json:"open_id"` // 微信用户唯一标识 Errmsg string `json:"errmsg"` // 错误信息 }
微信授权返回参数
Click to show internal directories.
Click to hide internal directories.