获取bibleChat数据

请求URL

/bibleChat/getBibleChatData GET POST

返回结果

{
	"leftCnt":"string",
	"isVip":"int",
	"dailyVerse":{
		"content":"string",
		"reference":"string",
		"verseId":"string"
	},
	"popularQuestionList":[{
		"questionId":"int",
		"question":"string"
	}],
	"bigTopicList":[],
	"smallTopicList":[]
}

保存聊天记录

请求URL

/bibleChat/saveChatHistory GET POST

请求体 application/json

{
	"toUserId":"string //接收者用户ID【必须】",
	"content":"string //聊天内容【必须】"
}

返回结果

{
	"id":"int //聊天记录ID",
	"fromUserId":"string //发送者用户ID",
	"toUserId":"string //接收者用户ID",
	"content":"string //聊天内容",
	"isFavorite":"int //是否收藏 (1: 已收藏, 0: 未收藏)",
	"isSelf":"boolean //是否是自己发送的消息",
	"sendTime":"string //发送时间"
}

获取聊天记录

请求URL

/bibleChat/getChatHistory GET POST

请求体 application/json

{
	"targetUserId":"string //目标用户ID【必须】",
	"page":"int //页码,从1开始",
	"pageSize":"int //每页记录数"
}

返回结果

{
	"records":[{
		"id":"int //聊天记录ID",
		"fromUserId":"string //发送者用户ID",
		"toUserId":"string //接收者用户ID",
		"content":"string //聊天内容",
		"isFavorite":"int //是否收藏 (1: 已收藏, 0: 未收藏)",
		"isSelf":"boolean //是否是自己发送的消息",
		"sendTime":"string //发送时间"
	}],
	"total":"long //总记录数",
	"current":"long //当前页码",
	"size":"long //每页记录数",
	"hasMore":"boolean //是否有更多记录"
}

标记聊天记录为收藏

请求URL

/bibleChat/markAsFavorite GET POST

请求体 application/json

{
	"chatId":"int //聊天记录ID【必须】",
	"isFavorite":"int //是否收藏 (1: 收藏, 0: 取消收藏)【必须】"
}

返回结果

Map{}

获取收藏的聊天记录

请求URL

/bibleChat/getFavoriteChatHistory GET POST

请求参数 application/x-www-form-urlencoded

参数名 类型 必须 描述
page int 页码,默认1
pageSize int 每页记录数,默认20

返回结果

{
	"records":[{
		"id":"int //聊天记录ID",
		"fromUserId":"string //发送者用户ID",
		"toUserId":"string //接收者用户ID",
		"content":"string //聊天内容",
		"isFavorite":"int //是否收藏 (1: 已收藏, 0: 未收藏)",
		"isSelf":"boolean //是否是自己发送的消息",
		"sendTime":"string //发送时间"
	}],
	"total":"long //总记录数",
	"current":"long //当前页码",
	"size":"long //每页记录数",
	"hasMore":"boolean //是否有更多记录"
}