获取成员[列表]

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

header 可选参数:

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

body 参数:

参数名类型是否必传说明
searchKeyStringNO搜索:关键词(查询 name 和 nickname 字段)
genderNumberNO性别 gender 字段
createdTimeGtStringNO创建时间大于 member_stats > created_at 字段
createdTimeLtStringNO创建时间小于 member_stats > created_at 字段
sortTypeStringNO排序类型 ,默认 follow
sortDirectionNumberNO排序方式 1.升序 2.降序
默认 2.降序
pageSizeNumberNO每页显示条数(默认 30 条)
pageNumberNO页码(默认 1)

返回结果:

成功

{
    "code": 0,
    "message": "ok",
    "data": {
        "pagination": {
            "total": "一共有多少条数据",
            "current": "当前页码",
            "pageSize": "每页有多少条数据",
            "lastPage": "最后一页页码"
        },
        "list": [
            {
                "mid": "members > uuid",
                "mname": "members > name",
                "nickname": "members > nickname",
                "rid": "主角色的值 member_roles > id",
                "nicknameColor": "主角色的值 member_roles > nickname_color",
                "roleName": "主角色的值 member_roles > name 多语言",
                "roleNameDisplay": "主角色的值 member_roles > is_display_name",
                "roleIcon": "主角色的值 member_roles > icon_file_url",
                "roleIconDisplay": "主角色的值 member_roles > is_display_icon",
                "avatar": "members > avatar_file_url",
                "decorate": "members > decorate_file_url",
                "gender": "members > gender",
                "birthday": "members > birthday",
                "bio": "members > bio",
                "followSetting": "配置表键名 follow_member_setting 布尔型",
                "followName": "配置表键名 follow_member_name 多语言",
                "followStatus": "查询 member_follows 表,我是否关注了他。0.未关注 1.已关注",
                "followMeStatus": "反向查询 member_follows 表,他是否关注了我。0.未关注 1.已关注",
                "likeSetting": "配置表键名 like_member_setting 布尔型",
                "likeName": "配置表键名 like_member_name 多语言",
                "likeStatus": "查询 member_likes 表。输出 0.未点赞 1.已点赞",
                "shieldSetting": "配置表键名 shield_member_setting 布尔型",
                "shieldName": "配置表键名 shield_member_name 多语言",
                "shieldStatus": "查询 member_shields 表。输出 0.未屏蔽 1.已屏蔽",
                "verifiedStatus": "members > verified_status",
                "verifiedIcon": "members > verified_file_url",
                "verifiedDesc": "members > verified_desc",
                "stats": {
                    "likeMeCount": "member_stats > like_me_count",
                    "followMeCount": "member_stats > follow_me_count",
                    "shieldMeCount": "member_stats > shield_me_count",
                    "postPublishCount": "member_stats > post_publish_count",
                    "postLikeCount": "member_stats > post_like_count",
                    "commentPublishCount": "member_stats > comment_publish_count",
                    "commentLikeCount": "member_stats > comment_like_count",
                    "extcredits1Status": "扩展 1 状态 extcredits1_status",
                    "extcredits1Name": "扩展 1 名称 extcredits1_name 多语言",
                    "extcredits1Unit": "扩展 1 单位 extcredits1_unit 多语言",
                    "extcredits1": "member_stats > extcredits1",
                    "extcredits2Status": "扩展 2 状态 extcredits2_status",
                    "extcredits2Name": "扩展 2 名称 extcredits2_name 多语言",
                    "extcredits2Unit": "扩展 2 单位 extcredits2_unit 多语言",
                    "extcredits2": "member_stats > extcredits2",
                    "extcredits3Status": "扩展 3 状态 extcredits3_status",
                    "extcredits3Name": "扩展 3 名称 extcredits3_name 多语言",
                    "extcredits3Unit": "扩展 3 单位 extcredits3_unit 多语言",
                    "extcredits3": "member_stats > extcredits3",
                    "extcredits4Status": "扩展 1 状态 extcredits4_status",
                    "extcredits4Name": "扩展 4 名称 extcredits4_name 多语言",
                    "extcredits4Unit": "扩展 4 单位 extcredits4_unit 多语言",
                    "extcredits4": "member_stats > extcredits4",
                    "extcredits5Status": "扩展 1 状态 extcredits5_status",
                    "extcredits5Name": "扩展 5 名称 extcredits5_name 多语言",
                    "extcredits5Unit": "扩展 5 单位 extcredits5_unit 多语言",
                    "extcredits5": "member_stats > extcredits5"
                },
                "icons": [
                    {
                        "icon": "member_icons > icon_file_url",
                        "name": "member_icons > name 多语言"
                    }
                ]
            }
        ]
    }
}
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78

失败

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

开发说明

  • 支持游客状态请求。
  • 最多输出 50 条数据,超出不输出。
  • 所有涉及图片的参数,需要判断是否开启了防盗链,如果开启了,不能直接使用 URL 字段值,需要获取防盗链链接。
排序类型参数关联字段说明
likemember_stats > like_me_count点赞 Ta 的计数
followmember_stats > follow_me_count关注 Ta 的计数
shieldmember_stats > shield_me_count屏蔽 Ta 的计数
postmember_stats > post_publish_countTa 发表的帖子数
commentmember_stats > comment_publish_countTa 发表的评论数
postLikemember_stats > post_like_countTa 发表的帖子被点赞总数
commentLikemember_stats > comment_like_countTa 发表的评论被点赞总数
extcredits1member_stats > extcredits1自定义分值 1
extcredits2member_stats > extcredits2自定义分值 2
extcredits3member_stats > extcredits3自定义分值 3
extcredits4member_stats > extcredits4自定义分值 4
extcredits5member_stats > extcredits5自定义分值 5
timemember_stats > created_at注册时间