用户个人信息查询
GET
/api/user/self请求参数
Header 参数
Authorization
string
可选
示例值:
账户 -> 个人中心 -> 账户选项 -> 系统令牌
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
object
必需
id
integer
必需
username
string
必需
password
string
必需
display_name
string
必需
role
integer
必需
status
integer
必需
email
string
必需
github_id
string
必需
telegram_id
string
必需
wechat_id
string
必需
lark_id
string
必需
access_token
string
必需
quota
integer
必需
used_quota
integer
必需
request_count
integer
必需
group
string
必需
aff_code
string
必需
inviter_id
integer
必需
last_login_time
integer
必需
register_time
integer
必需
last_login_ip
string
必需
rate_limit
integer
必需
rate_limit_exceeded_message
string
必需
remark
string
必需
quota_expire_time
integer
必需
phone_number
string
必需
sms_verification_code
string
必需
admin_access_flags
integer
必需
verification_code
string
必需
inviteUserNumber
integer
必需
aff_quota
integer
必需
aff_history_quota
integer
必需
TopupGroupMinLimit
integer
必需
ModelFixedPrice
object
必需
InviteBonusRatio
integer
必需
ShowPackagePlan
boolean
必需
message
string
必需
success
boolean
必需
示例
{
"data": {
"id": 0,
"username": "testName",
"password": "",
"display_name": "testName",
"role": 1,
"status": 1,
"email": "test@thankyou.com",
"github_id": "",
"telegram_id": "",
"wechat_id": "",
"lark_id": "",
"access_token": "",
"quota": 100,
"used_quota": 100,
"request_count": 100,
"group": "default",
"aff_code": "test",
"inviter_id": 0,
"last_login_time": 1,
"register_time": 0,
"last_login_ip": "1.1.1.1",
"rate_limit": -1,
"rate_limit_exceeded_message": "",
"remark": "",
"quota_expire_time": 0,
"phone_number": "",
"sms_verification_code": "",
"admin_access_flags": 0,
"verification_code": "",
"inviteUserNumber": 0,
"aff_quota": 0,
"aff_history_quota": 0,
"TopupGroupMinLimit": 5,
"ModelFixedPrice": {
"o1-mini-all": 0.5,
"o1-preview-all": 1
},
"InviteBonusRatio": 0,
"ShowPackagePlan": false
},
"message": "",
"success": true
}
最后修改时间: 2 个月前