Ai
13 Star 35 Fork 40

go-course/go11

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
interface.go 540 Bytes
一键复制 编辑 原始数据 按行查看 历史
Mr.Yu 提交于 2023-08-05 11:32 +08:00 . 补充认证中间件
package token
import context "context"
const (
AppName = "token"
)
type Service interface {
// 业务RPC接口实现约束
RpcServer
// 撤销
RevolkToken(context.Context, *RevolkTokenRequest) (*Token, error)
}
func NewIssueTokenRequest() *IssueTokenRequest {
return &IssueTokenRequest{}
}
func NewDescribeTokenRequest(ak string) *DescribeTokenRequest {
return &DescribeTokenRequest{
AccessToken: ak,
}
}
func NewValidateTokenRequest(tk string) *ValidateTokenRequest {
return &ValidateTokenRequest{
AccessToken: tk,
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/go-course/go11.git
git@gitee.com:go-course/go11.git
go-course
go11
go11
f4276bbab689

搜索帮助