添加/更新用户所在国家/地区猜测数据
POST
/api/analyze/country会先从缓存/MySQL中查取,如没有则添加,如有则更新
请求参数
Body 参数application/json
country_iso
string
猜测的国家 ISO 编码
country_name
string
猜测的国家
login
string
GitHub 用户名
message
string
猜测记录信息
confidence
number
置信度
示例1
{
"country_iso": "CN",
"login": "yyx990803",
"message": "根据互联网搜索查询",
"confidence": 0.54
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
string
错误码
message
null
错误码信息
data
object (CountryGuessResp)
成功时返回的数据
login
string
Github 用户名
country_iso
string
猜测国家 ISO 编码
updateTime
integer
更新时间时间戳
success
boolean
请求是否成功
示例
{
"code": "0",
"message": null,
"data": {
"login": "EST-NINE",
"country_iso": "CH",
"country_name": "China",
"message": "eiusmod anim culpa labore dolore",
"confidence": 0.54,
"updateTime": 1730702602
},
"success": true
}
最后修改时间: 4 个月前