1 Star 0 Fork 0

h79 / gothird

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
access.go 461 Bytes
一键复制 编辑 原始数据 按行查看 历史
huqiuyun 提交于 2023-09-12 20:06 . 上传素材
package app3
import (
"gitee.com/h79/gothird/token/access"
)
type AccessToken struct {
Token string `json:"component_access_token"`
ExpiresIn int64 `json:"expires_in"`
}
// GetAccessToken access.Token interface implement
func (a AccessToken) GetAccessToken() access.Value {
return access.Value{
Data: a.Token,
ExpireIn: access.ExpireSecond(a.ExpiresIn),
}
}
func (a AccessToken) GetRefAccessToken() access.Value {
return access.Value{}
}
1
https://gitee.com/h79/gothird.git
git@gitee.com:h79/gothird.git
h79
gothird
gothird
v1.8.103

搜索帮助