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": "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 '127.0.0.1:9000/api/analyze/score/detailed' \
--header 'Content-Type: application/json' \
--data '{
    "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
Bodyapplication/json

示例
{
    "code": "0",
    "message": null,
    "data": {
        "totalScore": 92.21,
        "userScore": 27.54,
        "reposScore": 46.31,
        "prsScore": 13.77,
        "issuesScore": 4.59,
        "updateTime": 1730461124
    },
    "success": true
}
修改于 2024-11-05 06:56:56
上一页
简单的计算/更新用户分数(无需登录)
下一页
Score Rank
Built with