1 Star 0 Fork 0

h79 / gothird

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
const.go 1.80 KB
一键复制 编辑 原始数据 按行查看 历史
huqiuyun 提交于 2023-10-11 13:55 . ticket
package token
const (
NAccessToken = "access:token" /*自己本身的access token*/
NRefreshToken = "access:token:refresh" /*刷新自己本身access token */
NTicket = "get:ticket"
NOauth2 = "oauth2" /*网页,个人授权*/
NOauthAccount = "oauth2:account"
NOauth2App3 = "oauth2:app3" /*第三方应用授权,比把公众号授权给某个应用*/
NPreAuthCode = "app3:pre_auth_code" /* for 公众号授权给第三方,需要先获取一个 预授权码,然后调用前端授权页面进行授权,授权成功后会给一个授权码 "authorization_code"
然后用这个 authorization_code去调用 NOauth2App3,获取到 access token 相关信息 */
NAccessTokenProxy = "access:token:proxy" /* 进行代理,中转,从别的服务器获取token相关信息 */
NGetOwner = "get:owner"
)
const (
PermanentInfo = "permanentInfo"
PermanentCode = "permanent_code"
AgentId = "agentId"
SuiteType = "suiteType"
Owner = "owner"
Parent = "parent"
Secret = "secret"
True = "true"
Encoder = "encoder"
Decoder = "decoder"
)
const (
BaiduType = "baidu"
FeiShuType = "feishu"
FxgType = "fxg"
GdtType = "gdt"
GdtAdvType = "gdt.adv"
OceanType = "ocean"
OceanAdvType = "ocean.adv"
WxType = "wx"
WxWebType = "wx.web"
WxApp3Type = "wx.app3"
WxApp3IdType = "wx.app3.id"
WxApp3WebType = "wx.app3.web"
WxWorkType = "wx.work"
WxWorkMsgAuditType = "wx.work.msg.audit"
WxWorkProviderType = "wx.work.service.provider" //服务商
WxWorkSuiteType = "wx.work.service.suite" //第三方应用及模板
WxWorkCorpType = "wx.work.service.corp" //企业
WxWorkAgentType = "wx.work.service.agent" //代应用
)
1
https://gitee.com/h79/gothird.git
git@gitee.com:h79/gothird.git
h79
gothird
gothird
v1.8.103

搜索帮助