角色分类(二级)

请求URL:

  • /getRoleTypeByFid

请求方式:

  • POST

参数:

参数名 必选 类型 说明
fid int 一级分类ID

返回示例

{
    "code": 200,
    "msg": "SUCCESS",
    "data": [
        {
            "id": 4,
            "title": "Enhypen",
            "isShow": 1,
            "pid": 1,
            "sort": 1,
            "whoSee": "",
            "deletedAt": 0,
            "createdAt": 1777514254,
            "updatedAt": 1777514254,
            "roleList": [
                {
                    "id": 1,
                    "name": "Jenna",
                    "description": "",
                    "personality": "",
                    "avatar": "https://muyuhan.s3.amazonaws.com/aiChat/test/thumb/20260112/cd73fea8ba8ca83dd2be36e402abb89c.webp",
                    "backgroundThumb": "",
                    "background": "",
                    "backgroundGif": "",
                    "scenario": "",
                    "emotes": "",
                    "rules": "",
                    "role": "",
                    "speechStyle": "",
                    "state": 0,
                    "fid": 1,
                    "pid": 4,
                    "sex": 0,
                    "isAudit": 0,
                    "listedAt": 0,
                    "chatCount": 0,
                    "chatCountVirtual": 0,
                    "favoriteCount": 0,
                    "avgCost": 0
                },
                {
                    "id": 2,
                    "name": "Luciana Rodríguez",
                    "description": "",
                    "personality": "",
                    "avatar": "https://muyuhan.s3.amazonaws.com/aiChat/test/thumb/20260112/2abe933b2cf424ae6b3e4e8592fe21d3.webp",
                    "backgroundThumb": "",
                    "background": "",
                    "backgroundGif": "",
                    "scenario": "",
                    "emotes": "",
                    "rules": "",
                    "role": "",
                    "speechStyle": "",
                    "state": 0,
                    "fid": 1,
                    "pid": 4,
                    "sex": 0,
                    "isAudit": 0,
                    "listedAt": 0,
                    "chatCount": 0,
                    "chatCountVirtual": 0,
                    "favoriteCount": 0,
                    "avgCost": 0
                }
            ]
        },
        {
            "id": 5,
            "title": "Cortis",
            "isShow": 1,
            "pid": 1,
            "sort": 2,
            "whoSee": "",
            "deletedAt": 0,
            "createdAt": 1777514265,
            "updatedAt": 1777514320,
            "roleList": null
        }
    ]
}

返回参数说明

参数名 类型 说明
code int 状态码
msg string 提示信息
data array 数据列表
-id int 分类ID
-title string 分类标题
-roleList array 角色列表
--id int 角色ID
--name string 角色名称
--avatar string 角色头像
--description string 角色描述

备注

2021 © Live all right reserved,powered by Gitbook该文件修订时间: 2026-05-07 10:53:14

results matching ""

    No results matching ""