1 Star 0 Fork 0

h79/gothird

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

搜索帮助