1 Star 0 Fork 0

h79/gothird

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ticket.go 432 Bytes
一键复制 编辑 原始数据 按行查看 历史
huqiuyun 提交于 1年前 . ticket
package token
import "gitee.com/h79/gothird/token/access"
type Ticket struct {
Ticket string `json:"ticket"`
ExpireIn int64 `json:"expires_in"`
}
func (a Ticket) IsValid() bool {
return a.Ticket != ""
}
func (a Ticket) GetAccessToken() access.Value {
return access.Value{
Data: a.Ticket,
ExpireIn: access.ExpireSecond(a.ExpireIn),
}
}
func (a Ticket) GetRefAccessToken() access.Value {
return access.Value{}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/h79/gothird.git
git@gitee.com:h79/gothird.git
h79
gothird
gothird
v1.9.5

搜索帮助

371d5123 14472233 46e8bd33 14472233