hotgo/server/internal/consts/wechat.go

14 lines
355 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package consts
// 授权类型
const (
WechatAuthorizeOpenId = "openId" // 设置openid
WechatAuthorizeBindLogin = "bindLogin" // 绑定微信登录
)
// 应用授权作用域
const (
WechatScopeBase = "snsapi_base" // 只获取openid无需用户授权
WechatScopeUserinfo = "snsapi_userinfo" // 获取用户信息,需要授权
)