推荐角色列表

请求URL:

  • /getRecommendRoles

请求方式:

  • POST

参数:

参数名 必选 类型 说明

返回示例

{
    "code": 200,
    "msg": "SUCCESS",
    "data": {
        "recommendList": [
            {
                "id": 84,
                "name": "Fire Keeper",
                "description": "[character(Fire Keeper)...\r\n}]",
                "personality": "Fire Keeper is ...",
                "firstMes": "*You has been ...*",
                "avatar": "https://avatars.charhub.io...png",
                "scenario": "You stumbles upon a small, ...",
                "backgroundThumb": "",
                "background": "",
                "creatorNotes": "Creator's notes go here.",
                "systemPrompt": "",
                "tags": [
                    "Fantasy",
                    "Games",
                    "Anime Game Characters",
                    "Love",
                    "Female",
                    "Human",
                    "Roleplay",
                    "Cute",
                    "Romance"
                ],
                "characterBook": null,
                "state": 1,
                "isRecommend": 0,
                "chatCount": 0,
                "chatCountVirtual": 0,
                "favoriteCount": 0,
                "isFavorite": false
            },

            {
                "id": 83,
                "name": "Cricket",
                "description": "Cricket\nType: Main ....",
                "personality": "",
                "firstMes": "*Cricket kicks her feet ?!!*",
                "avatar": "https://avatars.charhub.io...png",
                "scenario": "",
                "backgroundThumb": "",
                "background": "",
                "creatorNotes": "RPG/Scenario details have been ...",
                "systemPrompt": "",
                "tags": [
                    "TAVERN",
                    "CAI",
                    "OC",
                    "Female",
                    "Fantasy",
                    "Comedy",
                    "Adventure"
                ],
                "characterBook": [
                    {
                        "name": "Triple A Adventuring Agency",
                        "content": "----\nTriple A Adventuring Agency."
                    },
                    {
                        "name": "Money/Costs/Debt",
                        "content": "----\nCosts\nType: concept\nProfit?: 2gp-50gp per ..."
                    }
                ],
                "state": 1,
                "isRecommend": 0,
                "chatCount": 0,
                "chatCountVirtual": 0,
                "favoriteCount": 0,
                "isFavorite": false
            }
        ],
        "roleIndex": 2
    }
}

返回参数说明

参数名 类型 说明
code int 状态码
msg string 提示信息
data struct 数据体
-recommendList array 推荐角色列表
--id int 角色ID
--name string 角色名称
--description string 角色描述
--personality string 角色个性
--firstMes string 角色第一句话
--avatar string 角色头像
--backgroundThumb string 角色缩率背景图
--background string 角色背景图
--scenario string 角色故事背景
--tags Array 角色标签
--chatCount int 聊天次数
--isFavorite bool 是否已点赞
-roleIndex int 当前角色下标

备注

用户进入后获取一个推荐角色列表recommendList,并获取一个角色列表的下标roleIndex,

所以当前打开的聊天角色即是recommendList[roleIndex]

2021 © Live all right reserved,powered by Gitbook该文件修订时间: 2025-09-15 14:23:20

results matching ""

    No results matching ""