Get the distribution team list interface

API call address

{域名地址}/api/retailer/members

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

Calling methods

GET

Request parameters

Field name type Required illustrate
Current int no Get the specified page data, current page number
pageSize int no Display quantity, quantity per page

Return parameters

Field name type illustrate
code int Error code
msg string Error Cause Description
data object Results content
Total int total
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

parameter value
Current 1

Return to the data example

{
    "code": 0,
    "data": [
        {
            "id": 2,
            "created_time": 0,
            "updated_time": 1665753923,
            "parent_id": 1000,
            "user_name": "wangxiaocong",
            "real_name": "",
            "avatar_url": "",
            "email": "",
            "phone": "",
            "group_id": 1,
            "status": 1,
            "is_retailer": 0,
            "balance": 0,
            "total_reward": 0,
            "invite_code": "",
            "last_login": 0,
            "expire_time": 0,
            "extra": null,
            "token": "",
            "group": null,
            "full_avatar_url": "",
            "link": ""
        },
        {
            "id": 1,
            "created_time": 0,
            "updated_time": 1665755545,
            "parent_id": 1000,
            "user_name": "wangdacong",
            "real_name": "王小强",
            "avatar_url": "",
            "email": "[email protected]",
            "phone": "13888888888",
            "group_id": 1,
            "status": 1,
            "is_retailer": 1,
            "balance": 0,
            "total_reward": 0,
            "invite_code": "123456",
            "last_login": 0,
            "expire_time": 1667404800,
            "extra": null,
            "token": "",
            "group": null,
            "full_avatar_url": "",
            "link": ""
        }
    ],
    "msg": "",
    "total": 2
}

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