1 Star 0 Fork 0

tech4good/common

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
portal_info_wechat.go 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
v_chaoni 提交于 2021-11-12 17:06 +08:00 . 1
package dto
// AccessToken 凭证定义
type AccessToken struct {
AccessToken string `json:"access_token"`
ExpiresIn int `json:"expires_in"`
}
// Param 微信参数
type Param struct {
ToUser string `json:"touser"`
TemplateId string `json:"template_id"`
Url string `json:"url"`
Miniprogram MiniprogramData `json:"miniprogram"`
Data PushData `json:"data"`
}
// MiniprogramData 小程序数据
type MiniprogramData struct {
Appid string `json:"appid"`
Pagepath string `json:"pagepath"`
}
// PushData 推送数据
type PushData struct {
First ValueData `json:"first"`
Keyword1 ValueData `json:"keyword1"`
Keyword2 ValueData `json:"keyword2"`
Keyword3 ValueData `json:"keyword3"`
Remark ValueData `json:"remark"`
}
// ValueData 值数据
type ValueData struct {
Value string `json:"value"`
Color string `json:"color"`
}
// Result 结束定义
type Result struct {
ErrCode int `json:"errcode"`
ErrMsg string `json:"errmsg"`
}
// OpenIDParam OpenID参数
type OpenIDParam struct {
AppID string `json:"appid"`
Secret string `json:"secret"`
Code string `json:"code"`
}
// OpenIdResult OpenID结果
type OpenIdResult struct {
AccessToken string `json:"access_token"`
ExpiresIn int `json:"expires_in"`
RefreshToken string `json:"refresh_token"`
OpenId string `json:"openid"`
Scope string `json:"scope"`
}
// UserInfo 用户信息
type UserInfo struct {
OpenId string `json:"openid"`
Nickname string `json:"nickname"`
HeadImgUrl string `json:"headimgurl"`
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tech4good/common.git
git@gitee.com:tech4good/common.git
tech4good
common
common
v1.0.2

搜索帮助