文档
测试

获取表白列表

POST
https://udd.uxiao.vip/api.php/love_wall/list

请求头

参数名
类型
描述
必填
token
string
必填 用户token
必填

请求参数

参数名
类型
描述
必填
page
int
选填 请求页码 不填默认第一页
必填
pagesize
int
选填 每页显示数量 不填默认反10条
必填
campus_id
int
选填 校区id 不填默认注册校区
必填
type_id
int
选填 类型id 1:全国, 2:同城, 3:本校, 4:热门
必填
user_id
int
要查询的用户id
必填

响应参数

参数名
类型
描述
必填
code
int
状态码 1:成功,2:失败,10001:未登录
必填
msg
string
返回信息
必填
data
object
返回数据
必填
total
int
列表总数
必填
per_page
int
每页返回数量
必填
current_page
int
当前页码
必填
last_page
int
最后一页页码
必填
data
array
数据列表
必填
id
int
表白墙id
必填
user
object
发布者信息
必填
id
int
发布者用户id
必填
user_nickname
string
发布者昵称
必填
avatar
string
发布者头像
必填
sex
int
性别 0:保密,1:男,2:女
必填
xuexiao
object
发布者学校信息
必填
id
int
学校id
必填
name
string
学校名称
必填
content
string
表白墙内容
必填
images
string
表白墙图片,多个“,”隔开
必填
to_username
string
表白对象名称
必填
like_count
int
点赞数量
必填
comment_count
int
评论数量
必填
is_like
object
本人是否点赞,null为没点赞,其他值为点赞
必填

说明 / 示例

```json { "code": 1, "msg": "获取成功", "data": { "total": 5, "per_page": 10, "current_page": 1, "last_page": 1, "data": [ { "id": 6, //表白墙id "user_id": 27, "festival_id": 0, "campus_id": 1001, "content": "一起去看流星锤", //表白墙信息 "images": "", //表白墙图片 多个","隔开 "to_username": "嘎嘎", //表白对象名称 "create_time": 1620976308, "like_count": 0, //点赞数量 "comment_count": 0, //评论数量 "is_like": null, //本人是否点赞,null为没点赞,其他值为点赞 "user": { //发布者信息 "id": 27, //发布者id "user_nickname": "wowo1", //发布者名称 "xueid": "1001", "avatar": "https://ud.12861.ltd/upload/user/user_thumb/20210507/3da052fdc5983e30b60750fd64810eee.PNG", //发布者头像 "sex": 1, //性别 0:保密,1:男,2:女 "xuexiao": { //发布者学校信息 "id": 1001, //学校id "name": "中国科学技术大学" //学校名称 } } }, { "id": 5, "user_id": 27, "festival_id": 0, "campus_id": 1001, "content": "来瓶二锅头", "images": "", "to_username": "张三", "create_time": 1620976033, "like_count": 0, "comment_count": 0, "is_like": null, "user": { "id": 27, "user_nickname": "wowo1", "xueid": "1001", "avatar": "https://ud.12861.ltd/upload/user/user_thumb/20210507/3da052fdc5983e30b60750fd64810eee.PNG", "sex": 1 } }, { "id": 4, "user_id": 27, "festival_id": 0, "campus_id": 1001, "content": "湿了", "images": "", "to_username": "蛋糕", "create_time": 1620975867, "like_count": 0, "comment_count": 0, "is_like": null, "user": { "id": 27, "user_nickname": "wowo1", "xueid": "1001", "avatar": "https://ud.12861.ltd/upload/user/user_thumb/20210507/3da052fdc5983e30b60750fd64810eee.PNG", "sex": 1 } }, { "id": 2, "user_id": 27, "festival_id": 0, "campus_id": 1001, "content": "要碎", "images": "", "to_username": "春卷", "create_time": 1620975697, "like_count": 0, "comment_count": 0, "is_like": null, "user": { "id": 27, "user_nickname": "wowo1", "xueid": "1001", "avatar": "https://ud.12861.ltd/upload/user/user_thumb/20210507/3da052fdc5983e30b60750fd64810eee.PNG", "sex": 1 } }, { "id": 1, "user_id": 27, "festival_id": 0, "campus_id": 1001, "content": "身体健康", "images": "", "to_username": "高尔夫球", "create_time": 1620975474, "like_count": 0, "comment_count": 0, "is_like": null, "user": { "id": 27, "user_nickname": "wowo1", "xueid": "1001", "avatar": "https://ud.12861.ltd/upload/user/user_thumb/20210507/3da052fdc5983e30b60750fd64810eee.PNG", "sex": 1 } } ] } }