1 Star 0 Fork 0

h79/gothird

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
structs.go 633 Bytes
一键复制 编辑 原始数据 按行查看 历史
huqiuyun 提交于 2022-09-20 19:40 . token管理 1.0.4
package token
import "fmt"
type App struct {
ParentId string `json:"parentId"`
Id string `json:"id"`
Type string `json:"type"`
AppId string `json:"appid"`
Secret string `json:"secret"`
Name string `json:"name"`
IsCache bool `json:"cache"`
}
func GenId(appId, childId string) string {
return fmt.Sprintf("%s-%s", appId, childId)
}
type Item struct {
Apps []App `json:"apps"`
}
type ResToken struct {
AppId string `json:"appid"`
Type string `json:"type"`
Token string `json:"token"`
}
type ResCode struct {
AppId string `json:"appid"`
Type string `json:"type"`
Code string `json:"code"`
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/h79/gothird.git
git@gitee.com:h79/gothird.git
h79
gothird
gothird
v1.0.17

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385