class RelationGetAction extends AdminAction {

    @Override
    public boolean isTransactionAction() {
        return true;
    }

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

        if (request.getNettyRequest() instanceof FullHttpRequest) {
            StringPairPojo input = getRequestBody(request.getNettyRequest(), StringPairPojo.class);
            FriendData data = messagesStore.getFriendData(input.getFirst(), input.getSecond());

            RelationPojo out = new RelationPojo();
            out.userId = input.getFirst();
            out.targetId = input.getSecond();
            if(data != null ) {
                out.isFriend = data.getState() == 0;
                out.isBlacked = data.getBlacked() == 1;
                out.alias = data.getAlias();
                out.extra = data.getExtra();
            }
            setResponseContent(RestResult.ok(out), response);
        }
        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