Interface HttpChatHistoryService


@HttpExchange("seen/feign-v1/chat/chat-history") public interface HttpChatHistoryService
HttpChatHistoryService
Since:
2022-10-09
Author:
chixuehui
  • Method Details

    • add

      @PostExchange("add") Integer add(@RequestParam("contentType") io.github.seenings.article.enumeration.ContentType contentType, @RequestParam("contentId") Integer contentId, @RequestParam("fromUserId") Long fromUserId, @RequestParam("toUserId") Long toUserId, @RequestParam("sent") Boolean sent, @RequestParam("sendTime") @DateTimeFormat(iso=DATE_TIME) LocalDateTime sendTime)
    • pageUserIdToHistoryId

      @PostExchange("page-user-id-to-history-id") List<Integer> pageUserIdToHistoryId(@RequestParam("pageUserId") Long pageUserId, @RequestParam("selfUserId") Long selfUserId)
      根据页面用户ID和自己的用户ID获取聊天记录ID
      Parameters:
      pageUserId - 页面用户ID
      selfUserId - 自己用户ID
      Returns:
      聊天记录ID
    • idToChatContentAndTime

      @PostExchange("id-to-chat-content-and-time") Map<Integer, io.github.seenings.chat.model.ChatContentAndTime> idToChatContentAndTime(@RequestBody Set<Integer> ids)
      根据ID获取聊天内容和时间
      Parameters:
      ids - 聊天记录ID
      Returns:
      聊天记录ID对应聊天内容和时间
    • userIdToChatContentAndTime

      @PostExchange("user-id-to-chat-content-and-time") Map<Long, io.github.seenings.chat.model.ChatContentAndTime> userIdToChatContentAndTime(@RequestBody Set<Long> userIds, @RequestParam("toUserId") Long toUserId)
    • setSent

      @PostExchange("set-sent") boolean setSent(@RequestParam("id") Integer id)
    • idToFromUserId

      @PostExchange("id-to-from-user-id") Map<Integer,Long> idToFromUserId(@RequestBody Set<Integer> ids)
      根据聊天记录ID获取发送方ID
      Parameters:
      ids - 聊天记录ID
      Returns:
      聊天记录ID对应发送方ID
    • idToIsSent

      @PostExchange("id-to-is-sent") Map<Integer,Boolean> idToIsSent(@RequestBody Set<Integer> ids)
      根据聊天记录ID获取是否发出
      Parameters:
      ids - 聊天记录ID
      Returns:
      聊天记录ID对应是否发出
    • idToToUserId

      @PostExchange("id-to-to-user-id") Map<Integer,Long> idToToUserId(@RequestBody Set<Integer> ids)
      根据聊天记录ID获取接收方ID
      Parameters:
      ids - 聊天记录ID
      Returns:
      聊天记录ID对应接收方ID