文档
测试

好友列表接口

POST
http://localhost:6600/api/v1/list/getFriend

接口描述

获取好友列表

请求参数

参数名
类型
描述
必填
user_id
int
用户id
必填
page
int
页码
必填
limit
int
每页显示数量
必填

响应参数

参数名
类型
描述
必填
code
int
错误码
必填
data
array
内容
必填
data
Object
内容
必填
friend_id
int
好友id
必填
is_share
int
是否分享(1:是 0:否)
必填
wx_head_url
String
好友微信头像
必填
wx_nick_name
String
好友微信昵称
必填
wx_alias_name
String
备注昵称
必填
total
int
总数
必填
total_page
int
总页数
必填
now_page
int
当前页数
必填
limit
int
每页数量
必填
msg
String
错误信息
必填

说明 / 示例

入参: ``` { "user_id" : 1 } ``` 出参: ``` { "code": 0, "data": { "data": [ { "friend_id": 8787, "wx_nick_name": "akgpdjcixm", "wx_alias_name": "qtezsynxhw", "wx_head_url": "lqtfrsyrvp", "is_share": 7152 }, { "friend_id": 9346, "wx_nick_name": "akgdpozldf", "wx_alias_name": "bsuerexetq", "wx_head_url": "nhghxtspkn", "is_share": 1575 }, { "friend_id": 7162, "wx_nick_name": "ksnvbmfjvy", "wx_alias_name": "wryupnaidt", "wx_head_url": "nojylrelir", "is_share": 5555 } ], "total": 123, "total_page": 5, "now_page": 1, "limit": 20 }, "msg": "成功" } ```