类 ApiUtil

java.lang.Object
cn.daenx.yhchatsdk.framework.utils.ApiUtil

@Component public class ApiUtil extends Object
API工具类
作者:
DaenMax
  • 构造器详细资料

    • ApiUtil

      public ApiUtil()
  • 方法详细资料

    • setToken

      @Value("${yhchat.token}") public void setToken(String token)
    • getToken

      public static String getToken()
    • sendMsg

      public static ApiSendMsgRetV1 sendMsg(ApiSendMsgReqV1 apiSendMsgReqV1)
      发送消息
      参数:
      apiSendMsgReqV1 -
      返回:
    • sendMsgBatch

      public static ApiSendMsgBatchRetV1 sendMsgBatch(ApiSendMsgBatchReqV1 apiSendMsgBatchReqV1)
      批量发送消息
      参数:
      apiSendMsgBatchReqV1 -
      返回:
    • editMsg

      public static ApiEditMsgRetV1 editMsg(ApiEditMsgReqV1 apiEditMsgReqV1)
      编辑消息 参数中的recvId、recvType需要和原消息保持一致,否则无法编辑
      参数:
      apiEditMsgReqV1 -
      返回:
    • recallMsg

      public static ApiRecallMsgRetV1 recallMsg(ApiRecallMsgReqV1 apiRecallMsgReqV1)
      撤回消息 参数中的chatId、chatType需要和原消息保持一致,否则无法撤回
      参数:
      apiRecallMsgReqV1 -
      返回:
    • setBoard

      public static ApiSetBoardRetV1 setBoard(ApiSetBoardReqV1 apiSetBoardReqV1)
      设置看板
      参数:
      apiSetBoardReqV1 -
      返回:
    • disBoard

      public static ApiDisBoardRetV1 disBoard(ApiDisBoardReqV1 apiDisBoardReqV1)
      取消设置看板
      参数:
      apiDisBoardReqV1 -
      返回: