聊天发送

请求URL:

  • /submitChat

请求方式:

  • POST

参数:

参数名 必选 类型 说明
roleId int 角色ID
content string 聊天内容
romanticFriendId uint 恋人&朋友ID

返回示例

{
    "code": 200,
    "msg": "SUCCESS",
    "data": {
        "createdAt": 1756184773,
        "dialogueId": "1-1",
        "msgId": 5828,
        "roleId": 1,
        "userMsg": {
            "msgId": 5827,
            "content": "你好,我今天会不会走运,捡到100万巨款?",
            "createdAt": 1756184767
        }
    }
}

返回参数说明

参数名 类型 说明
code int 状态码
msg string 提示信息
data struct 数据
-msgId uint AI回复的消息ID
-dialogueId string 会话ID
-roleId uint8 角色ID
-createdAt int64 AI消息回复时间
-userMsg struct 用户消息数据
--msgId uint 用户消息ID
--content string 用户消息内容
--createdAt int64 用户消息发送时间

备注

角色ID:

1-随便聊聊;2-恋人契合度;3-朋友契合度;

4-梦境解析;5-每日运势;6-塔罗牌占卜;7-个人成长

8-星象主线;9-每日解惑;10-倾述树洞;

11-Ask Me Anything;12-Dive Deeper;

13-Romantic Relationship;14-Heartbreak Survival;

15-Trust Issues; 16-Drama & Clapbacks;

17-Friendship Patterns; 18-Loyalty Check;

19-Know Your Vibe;20-Big Brain Decisions;

21-Routine Flex; 22-Would You Rather;

23-Guess Your Celebrity; 24-Random Talk;

25-Daily Clarity; 26-Unload Zone;

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

results matching ""

    No results matching ""