API call address
{域名地址}/api/user/detail
illustrate:{域名地址}
You need to replace it with your domain address, such as/api/user/detail
Calling methods
GET
Request parameters
Field name |
type |
Required |
illustrate |
userId |
int |
yes |
User ID |
Return parameters
Field name |
type |
illustrate |
code |
int |
Error code |
msg |
string |
Error Cause Description |
data |
object |
Results content |
Data parameters
Field name |
type |
illustrate |
id |
int |
User ID |
parent_id |
int |
Superior User ID |
user_name |
string |
username |
real_name |
string |
Real name |
avatar_url |
string |
User avatar address |
email |
string |
email address |
Phone |
string |
Phone number |
group_id |
int |
User group ID |
is_retailer |
int |
Is it a distribution staff or not |
balance |
int |
User balance |
Total_reward |
int |
Distributor cumulative income |
invite_code |
int |
User invitation code |
last_login |
int |
Last login time |
expire_time |
int |
Expiration time |
created_time |
int |
Register time stamp |
updated_time |
int |
Update time stamp |
status |
int |
Display status |
Request data example
Return to the data example
{
"code": 0,
"data": {
"id": 1000,
"created_time": 1669012062,
"updated_time": 1679536756,
"parent_id": 0,
"user_name": "admin",
"real_name": "",
"avatar_url": "uploads/202211/21/14f56760596b5328.webp",
"email": "",
"phone": "",
"group_id": 2,
"status": 1,
"is_retailer": 0,
"balance": 0,
"total_reward": 0,
"invite_code": "anqicms",
"last_login": 1702912236,
"expire_time": 1997404800,
"extra": null,
"group": null,
"full_avatar_url": "",
"link": ""
},
"msg": ""
}
Error code
Error code |
illustrate |
0 |
OK |
-1 |
Error, the cause of the error is pointed out in msg |
1001 |
Not logged in |
1002 |
Unauthorized |
200 |
API request OK |