1 Star 0 Fork 0

eden-framework / eden-framework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
params.go 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
文兄 提交于 2023-03-15 19:18 . fix. 生成服务
package repo
import (
"path"
"time"
)
type AccessTokenRequest struct {
GrantType string `in:"formData" name:"grant_type"`
UserName string `in:"formData" name:"username"`
Password string `in:"formData" name:"password"`
ClientID string `in:"formData" name:"client_id"`
ClientSecret string `in:"formData" name:"client_secret"`
Scope string `in:"formData" name:"scope"`
}
type AccessTokenResponse struct {
Error string `json:"error,omitempty"`
ErrorDescription string `json:"error_description,omitempty"`
AccessToken string `json:"access_token,omitempty"`
TokenType string `json:"token_type,omitempty"`
ExpiresIn int64 `json:"expires_in,omitempty"`
RefreshToken string `json:"refresh_token,omitempty"`
Scope string `json:"scope,omitempty"`
CreatedAt int64 `json:"created_at,omitempty"`
}
type Commit struct {
Sha string `json:"sha"`
Date time.Time `json:"url"`
}
type Tag struct {
Name string `json:"name"`
Commit Commit `json:"commit"`
}
type TagsResponse []Tag
type Repository struct {
ID uint32 `json:"id"`
Name string `json:"name"`
FullName string `json:"full_name"`
HtmlUrl string `json:"html_url"`
}
func (r Repository) GetPackagePath() string {
return path.Join("gitee.com", r.FullName)
}
type RepoResponse []Repository
1
https://gitee.com/eden-framework/eden-framework.git
git@gitee.com:eden-framework/eden-framework.git
eden-framework
eden-framework
eden-framework
v1.4.7

搜索帮助