Update user information interface

API call address

{域名地址}/api/user/detail

illustrate:{域名地址}You need to replace it with your domain address, such as/api/user/detail

Calling methods

POST

Request parameters

Field name type Required illustrate
user_name string no username
real_name string no Real name
email string no Mail
Phone string no Phone number

Return parameters

Field name type illustrate
code int Error code
msg string Error Cause Description

Request data example

parameter value
user_name admin
real_name Anqi CMS
email [email protected]

Return to the data example

{
    "code": 0,
    "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