Class RequestEvent

java.lang.Object
com.mikuac.shiro.handler.event.RequestEvent

@Component public class RequestEvent extends Object
  • Field Details

    • handlers

      public final Map<String,BiConsumer<Bot,com.alibaba.fastjson2.JSONObject>> handlers
      存储请求事件处理器
  • Constructor Details

    • RequestEvent

      public RequestEvent()
  • Method Details

    • setUtils

      @Autowired public void setUtils(EventUtils utils)
    • setInjection

      @Autowired public void setInjection(InjectionHandler injection)
    • handler

      public void handler(Bot bot, com.alibaba.fastjson2.JSONObject resp)
      请求事件分发
      Parameters:
      bot - Bot
      resp - JSONObject
    • friend

      public void friend(Bot bot, com.alibaba.fastjson2.JSONObject resp)
      加好友请求
      Parameters:
      bot - Bot
      resp - JSONObject
    • group

      public void group(Bot bot, com.alibaba.fastjson2.JSONObject resp)
      加群请求
      Parameters:
      bot - Bot
      resp - JSONObject