GeniusRank(七牛云 1024 项目)
  1. Socre Rank 服务
GeniusRank(七牛云 1024 项目)
  • 通用服务模块
    • ping
      GET
    • time
      GET
    • 文件上传
      POST
    • 查看本地图片
      GET
  • 登录服务模块
    • 发送验证码到邮箱
      GET
    • 邮箱是否存在
      GET
    • 用户名是否存在
      GET
    • 用户注册
      POST
    • 用户根据邮箱验证码登录
      POST
    • 用户使用密码登录
      POST
    • 忘记密码
      POST
    • 用户 OAuth 登录
      POST
  • 用户服务模块
    • 查询用户基础信息
      GET
    • 查询用户脱敏后的基础信息
      GET
    • 更新用户基础信息
      PUT
    • 检查用户是否登录
      GET
    • 用户登出
      DELETE
  • 分析数据服务模块
    • 健康测试
      • ping
    • Prompt 服务
      • 查询对应 id 的 prompt
      • 根据 type 查询 prompt
      • 查询对应所有的 prompt
      • 添加一个 prompt
      • 根据 id 修改 prompt
      • 根据 id 删除 prompt
    • ChatGLM 服务
      • 普通问答-同步请求 Chat
      • 普通问答-流式请求 Chat
      • 分析技术能力-流式请求 Chat
    • Country Guess 服务
      • 查询对应 githubUserId 的用户所在国家/地区
      • 查询已存在国家
      • 添加/更新用户所在国家/地区猜测数据
    • Socre Rank 服务
      • 查询对应 login 的用户分数
        GET
      • 简单的计算/更新用户分数(无需登录)
        POST
      • 登录后细节的计算/更新用户分数
        POST
      • Score Rank
        GET
      • 查询已存在开发者领域
        GET
      • 查询用户排名
        GET
  • 前端调试
  1. Socre Rank 服务

登录后细节的计算/更新用户分数

POST
/api/analyze/score/detailed
RocketMQ 异步持久化用户分数和开发者领域
权重占比 / ”满分"占比详见:https://ncuhomer.feishu.cn/wiki/JcVJwyJwpi42jIkNMY2cHdlQn5g

请求参数

Body 参数application/json
login
string 
用户名
可选
name
string 
昵称
必需
avatarUrl
string 
头像
必需
followers
object 
被关注的人数
可选
totalCount
integer 
数量
可选
lifetimeReceivedSponsorshipValues
object 
捐赠者
可选
totalCount
integer 
数量
可选
pullRequests
object 
prs
可选
nodes
array [object {3}] 
节点
可选
totalCount
integer 
数量
可选
issues
object 
issues
可选
nodes
array [object {1}] 
节点
可选
totalCount
integer 
数量
可选
repositories
object 
用户仓库信息
可选
nodes
array[object (Repository ) {6}] 
节点
可选
totalCount
integer 
数量
可选
repositoriesContributedTo
object 
其他仓库信息
可选
nodes
array[object (Repository ) {6}] 
节点
可选
totalCount
integer 
数量
可选
示例
{
    "login": "yyx990803",
    "name": "Evan You",
    "avatarUrl": "https://avatars.githubusercontent.com/u/499550?v=14",
    "followers": {
        "totalCount": 1000
    },
    "lifetimeReceivedSponsorshipValues": {
        "totalCount": 50
    },
    "pullRequests": {
        "nodes": [
            {
                "state": "MERGED",
                "commits": {
                    "totalCount": 10
                },
                "baseRepository": {
                    "stargazerCount": 5000,
                    "forkCount": 200,
                    "pullRequests": {
                        "totalCount": 1000
                    },
                    "issues": {
                        "totalCount": 500
                    },
                    "primaryLanguage": {
                        "name": "Java"
                    },
                    "watchers": {
                        "totalCount": 500
                    }
                }
            },
            {
                "state": "MERGED",
                "commits": {
                    "totalCount": 10
                },
                "baseRepository": {
                    "stargazerCount": 5000,
                    "forkCount": 200,
                    "pullRequests": {
                        "totalCount": 1000
                    },
                    "issues": {
                        "totalCount": 500
                    },
                    "primaryLanguage": {
                        "name": "Java"
                    },
                    "watchers": {
                        "totalCount": 500
                    }
                }
            }
        ],
        "totalCount": 500
    },
    "issues": {
        "nodes": [
            {
                "repository": {
                    "stargazerCount": 5000,
                    "forkCount": 200,
                    "pullRequests": {
                        "totalCount": 1000
                    },
                    "issues": {
                        "totalCount": 500
                    },
                    "primaryLanguage": {
                        "name": "Java"
                    },
                    "watchers": {
                        "totalCount": 500
                    }
                }
            }
        ],
        "totalCount": 500
    },
    "repositories": {
        "nodes": [
            {
                "stargazerCount": 5000,
                "forkCount": 200,
                "pullRequests": {
                    "totalCount": 1000
                },
                "issues": {
                    "totalCount": 500
                },
                "primaryLanguage": {
                    "name": "Java"
                },
                "watchers": {
                    "totalCount": 500
                }
            },
            {
                "stargazerCount": 5000,
                "forkCount": 200,
                "pullRequests": {
                    "totalCount": 1000
                },
                "issues": {
                    "totalCount": 500
                },
                "primaryLanguage": {
                    "name": "Java"
                },
                "watchers": {
                    "totalCount": 500
                }
            }
        ],
        "totalCount": 10
    },
    "repositoriesContributedTo": {
        "nodes": [
            {
                "stargazerCount": 5000,
                "forkCount": 200,
                "pullRequests": {
                    "totalCount": 1000
                },
                "issues": {
                    "totalCount": 500
                },
                "primaryLanguage": {
                    "name": "Java"
                },
                "watchers": {
                    "totalCount": 500
                }
            },
            {
                "stargazerCount": 5000,
                "forkCount": 200,
                "pullRequests": {
                    "totalCount": 1000
                },
                "issues": {
                    "totalCount": 500
                },
                "primaryLanguage": {
                    "name": "Java"
                },
                "watchers": {
                    "totalCount": 500
                }
            }
        ],
        "totalCount": 10
    }
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '127.0.0.1:9000/api/analyze/score/detailed' \
--header 'Content-Type: application/json' \
--data-raw '{
    "login": "yyx990803",
    "name": "Evan You",
    "avatarUrl": "https://avatars.githubusercontent.com/u/499550?v=14",
    "followers": {
        "totalCount": 1000
    },
    "lifetimeReceivedSponsorshipValues": {
        "totalCount": 50
    },
    "pullRequests": {
        "nodes": [
            {
                "state": "MERGED",
                "commits": {
                    "totalCount": 10
                },
                "baseRepository": {
                    "stargazerCount": 5000,
                    "forkCount": 200,
                    "pullRequests": {
                        "totalCount": 1000
                    },
                    "issues": {
                        "totalCount": 500
                    },
                    "primaryLanguage": {
                        "name": "Java"
                    },
                    "watchers": {
                        "totalCount": 500
                    }
                }
            },
            {
                "state": "MERGED",
                "commits": {
                    "totalCount": 10
                },
                "baseRepository": {
                    "stargazerCount": 5000,
                    "forkCount": 200,
                    "pullRequests": {
                        "totalCount": 1000
                    },
                    "issues": {
                        "totalCount": 500
                    },
                    "primaryLanguage": {
                        "name": "Java"
                    },
                    "watchers": {
                        "totalCount": 500
                    }
                }
            }
        ],
        "totalCount": 500
    },
    "issues": {
        "nodes": [
            {
                "repository": {
                    "stargazerCount": 5000,
                    "forkCount": 200,
                    "pullRequests": {
                        "totalCount": 1000
                    },
                    "issues": {
                        "totalCount": 500
                    },
                    "primaryLanguage": {
                        "name": "Java"
                    },
                    "watchers": {
                        "totalCount": 500
                    }
                }
            }
        ],
        "totalCount": 500
    },
    "repositories": {
        "nodes": [
            {
                "stargazerCount": 5000,
                "forkCount": 200,
                "pullRequests": {
                    "totalCount": 1000
                },
                "issues": {
                    "totalCount": 500
                },
                "primaryLanguage": {
                    "name": "Java"
                },
                "watchers": {
                    "totalCount": 500
                }
            },
            {
                "stargazerCount": 5000,
                "forkCount": 200,
                "pullRequests": {
                    "totalCount": 1000
                },
                "issues": {
                    "totalCount": 500
                },
                "primaryLanguage": {
                    "name": "Java"
                },
                "watchers": {
                    "totalCount": 500
                }
            }
        ],
        "totalCount": 10
    },
    "repositoriesContributedTo": {
        "nodes": [
            {
                "stargazerCount": 5000,
                "forkCount": 200,
                "pullRequests": {
                    "totalCount": 1000
                },
                "issues": {
                    "totalCount": 500
                },
                "primaryLanguage": {
                    "name": "Java"
                },
                "watchers": {
                    "totalCount": 500
                }
            },
            {
                "stargazerCount": 5000,
                "forkCount": 200,
                "pullRequests": {
                    "totalCount": 1000
                },
                "issues": {
                    "totalCount": 500
                },
                "primaryLanguage": {
                    "name": "Java"
                },
                "watchers": {
                    "totalCount": 500
                }
            }
        ],
        "totalCount": 10
    }
}'

返回响应

🟢200成功
application/json
Body
code
string 
错误码
必需
message
null 
错误码信息
必需
data
object (GithubScoreResp) 
成功时返回的数据
必需
totalScore
number 
用户总得分
必需
userScore
number 
用户基础数据得分
必需
reposScore
number 
用户仓库数据得分
必需
prsScore
number 
用户 prs 数据得分
必需
issuesScore
number 
用户 issues 数据得分
必需
updateTime
integer 
更新时间时间戳
必需
success
boolean 
请求是否成功
必需
示例
{
    "code": "0",
    "message": null,
    "data": {
        "totalScore": 92.21,
        "userScore": 27.54,
        "reposScore": 46.31,
        "prsScore": 13.77,
        "issuesScore": 4.59,
        "updateTime": 1730461124
    },
    "success": true
}
上一页
简单的计算/更新用户分数(无需登录)
下一页
Score Rank
Built with