获取话题[列表]

  • 接口地址: /api/fresns/hashtag/lists
  • 请求方式: POST
  • 请求格式: JSON

header 可选参数:

参数名公开模式(是否必传)私有模式(是否必传)
uidNOYES
midNOYES
tokenNOYES

body 参数:

参数名类型是否必传说明
searchKeyStringNO搜索:关键词(查询 name 字段)
viewCountGtNumberNO查看数大于 view_count 字段
viewCountLtNumberNO查看数小于 view_count 字段
likeCountGtNumberNO点赞数大于 like_count 字段
likeCountLtNumberNO点赞数小于 like_count 字段
followCountGtNumberNO关注数大于 follow_count 字段
followCountLtNumberNO关注数小于 follow_count 字段
shieldCountGtNumberNO屏蔽数大于 shield_count 字段
shieldCountLtNumberNO屏蔽数小于 shield_count 字段
postCountGtNumberNO帖子数大于 post_count 字段
postCountLtNumberNO帖子数小于 post_count 字段
essenceCountGtNumberNO精华数大于 essence_count 字段
essenceCountLtNumberNO精华数小于 essence_count 字段
createdTimeGtStringNO创建时间大于 created_at 字段
createdTimeLtStringNO创建时间小于 created_at 字段
sortTypeStringNO排序类型 view / like / follow / shield / post / essence / time
默认 time
sortDirectionNumberNO排序方式 1.升序 2.降序
默认 2.降序
pageSizeNumberNO每页显示条数(默认 30 条)
pageNumberNO页码(默认 1)

返回结果:

成功

{
    "code": 0,
    "message": "ok",
    "data": {
        "pagination": {
            "total": "一共有多少条数据",
            "current": "当前页码",
            "pageSize": "每页有多少条数据",
            "lastPage": "最后一页页码"
        },
        "list": [
            {
                "huri": "hashtags > slug",
                "hname": "hashtags > name",
                "cover": "hashtags > cover_file_url",
                "description": "hashtags > description 多语言",
                "hashtagName": "配置表键名 hashtag_name 多语言",
                "likeSetting": "配置表键名 like_hashtag_setting 布尔型",
                "likeName": "配置表键名 like_hashtag_name 多语言",
                "likeStatus": "查询 member_likes 表。输出 0.未点赞 1.已点赞",
                "followSetting": "配置表键名 follow_hashtag_setting 布尔型",
                "followName": "配置表键名 follow_hashtag_name 多语言",
                "followStatus": "查询 member_follows 表。输出 0.未关注 1.已关注",
                "shieldSetting": "配置表键名 shield_hashtag_setting 布尔型",
                "shieldName": "配置表键名 shield_hashtag_name 多语言",
                "shieldStatus": "查询 member_shields 表。输出 0.未屏蔽 1.已屏蔽",
                "viewCount": "hashtags > view_count",
                "likeCount": "hashtags > like_count",
                "followCount": "hashtags > follow_count",
                "shieldCount": "hashtags > shield_count",
                "postCount": "hashtags > post_count",
                "essenceCount": "hashtags > essence_count"
            }
        ]
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

失败

{
    "code": "code_messages > code",
    "message": "code_messages > message"
}
1
2
3
4

开发说明

  • cover 参数需要判断是否开启了防盗链