class GetIMTokenAction extends AdminAction {
    private static final Logger LOG = LoggerFactory.getLogger(GetIMTokenAction.class);
    @Override
    public boolean isTransactionAction() {
        return false;
    }

    @Override
    public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>}
}

        if (request.getNettyRequest() instanceof FullHttpRequest) {
            InputGetToken input = getRequestBody(request.getNettyRequest(), InputGetToken.class);
            String userId = input.getUserId();


            WFCMessage.GetTokenRequest getTokenRequest = WFCMessage.GetTokenRequest.newBuilder().setUserId(userId).setClientId(input.getClientId()).setPlatform(input.getPlatform() == null ? 0 : input.getPlatform()).build();
            sendApiMessage(response, userId, input.getClientId(), IMTopic.GetTokenTopic, getTokenRequest.toByteArray(), result -> {
                ErrorCode errorCode1 = ErrorCode.fromCode(result[0]);
                if (errorCode1 == ErrorCode.ERROR_CODE_SUCCESS) {
                    //ba errorcode qudiao
                    byte[] data = new byte[result.length -1];
                    for (int i = 0; i < data.length; i++) {
                        data[i] = result[i+1];
                    }
                    String token = Base64.getEncoder().encodeToString(data);

                    LOG.info("get im token success {},{},{}", userId, input.getClientId(), token.substring(0, Math.min(10, token.length())));
                    
                    return new Result(errorCode1, new OutputGetIMTokenData(userId, token));
                } else {
                    return new Result(errorCode1);
                }
            }, false);
            return false;
        }
        return true;
    
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.String) <variables>private static final org.slf4j.Logger LOG,private static boolean NO_CHECK_TIME,private static java.lang.String SECRET_KEY