|
|
@ -1281,6 +1281,8 @@ http://localhost:3000/api/18816895620/mirror_demo | jq
|
|
|
|
|watchers_count |int|关注数量|
|
|
|
|
|watchers_count |int|关注数量|
|
|
|
|
|branches_count |int|分支数量|
|
|
|
|
|branches_count |int|分支数量|
|
|
|
|
|commits_count |int|总提交记录数量|
|
|
|
|
|commits_count |int|总提交记录数量|
|
|
|
|
|
|
|
|
|issues_count |int|总提交记录数量|
|
|
|
|
|
|
|
|
|pull_requests_count |int|总提交记录数量|
|
|
|
|
|praised |boolean|当前登录用户是否已点赞,true:已点赞,fasle:未点赞, 用户未登录状态为null|
|
|
|
|
|praised |boolean|当前登录用户是否已点赞,true:已点赞,fasle:未点赞, 用户未登录状态为null|
|
|
|
|
|watched |boolean|当前登录用户是否已关注,true:已关注,fasle:未关注, 用户未登录状态为null|
|
|
|
|
|watched |boolean|当前登录用户是否已关注,true:已关注,fasle:未关注, 用户未登录状态为null|
|
|
|
|
|permission |string|当前登录用户对该仓库的操作权限, Manager:管理员,可以在线编辑文件、在线新建文件、可以设置仓库的基本信息; Developer:开发人员,可在线编辑文件、在线新建文件、不能设置仓库信息; Reporter: 报告人员,只能查看信息,不能设置仓库信息、不能在线编辑文件、不能在线新建文件;用户未登录时也会返回Reporter, 说明也只有读取文件的权限 |
|
|
|
|
|permission |string|当前登录用户对该仓库的操作权限, Manager:管理员,可以在线编辑文件、在线新建文件、可以设置仓库的基本信息; Developer:开发人员,可在线编辑文件、在线新建文件、不能设置仓库信息; Reporter: 报告人员,只能查看信息,不能设置仓库信息、不能在线编辑文件、不能在线新建文件;用户未登录时也会返回Reporter, 说明也只有读取文件的权限 |
|
|
|
@ -1308,6 +1310,8 @@ http://localhost:3000/api/18816895620/mirror_demo | jq
|
|
|
|
"watchers_count": 1,
|
|
|
|
"watchers_count": 1,
|
|
|
|
"branches_count": 6,
|
|
|
|
"branches_count": 6,
|
|
|
|
"commits_count": 107,
|
|
|
|
"commits_count": 107,
|
|
|
|
|
|
|
|
"issues_count": 0,
|
|
|
|
|
|
|
|
"pull_requests_count": 0,
|
|
|
|
"permission": "Manager",
|
|
|
|
"permission": "Manager",
|
|
|
|
"mirror_url": "https://gitea.com/CasperVector/slew.git",
|
|
|
|
"mirror_url": "https://gitea.com/CasperVector/slew.git",
|
|
|
|
"watched": true,
|
|
|
|
"watched": true,
|
|
|
|