diff --git a/cmake/define.inc b/cmake/define.inc
index 8e3c06fbf3e5379f8fe4af4426be7c9cd8d24db6..908b81e602900162e3534145c28db0e3896aed33 100755
--- a/cmake/define.inc
+++ b/cmake/define.inc
@@ -13,6 +13,10 @@ IF (TD_ACCOUNT)
   ADD_DEFINITIONS(-D_ACCOUNT)
 ENDIF ()
 
+IF (TD_GRANT)
+  ADD_DEFINITIONS(-D_GRANT)
+ENDIF ()
+
 IF (TD_GODLL)
   ADD_DEFINITIONS(-D_TD_GO_DLL_)
 ENDIF ()
diff --git a/src/mnode/inc/mgmtGrant.h b/src/mnode/inc/mgmtGrant.h
index ef404f1705a11f202c2b7f7353f198aa53a346e2..e84cd0e174d2f69e56ac7977fa1880c0dff6a002 100644
--- a/src/mnode/inc/mgmtGrant.h
+++ b/src/mnode/inc/mgmtGrant.h
@@ -21,12 +21,18 @@
 #endif
 #include "mnode.h"
 
-bool    mgmtCheckExpired();
-void    mgmtAddTimeSeries(SAcctObj *pAcct, uint32_t timeSeriesNum);
-void    mgmtRestoreTimeSeries(SAcctObj *pAcct, uint32_t timeseries);
+bool mgmtCheckExpired();
+void mgmtParseParameterKFp();
+void mgmtSendMsgToMaster();
+void mgmtSetCurStorage(uint64_t storage);
+void mgmtAddTimeSeries(SAcctObj *pAcct, uint32_t timeSeriesNum);
+void mgmtRestoreTimeSeries(SAcctObj *pAcct, uint32_t timeseries);
+
 int32_t mgmtCheckTimeSeries(uint32_t timeseries);
 int32_t mgmtCheckUserGrant();
 int32_t mgmtCheckDbGrant();
+int32_t mgmtCheckDnodeGrant();
+int32_t mgmtCheckAccts();
 
 #ifdef __cplusplus
 }
diff --git a/src/mnode/src/mgmtGrant.c b/src/mnode/src/mgmtGrant.c
index be1861e45b3b411fd5a448d0b51126261c51d789..42439fa0e872fe0c51859fa43c50c60856de2477 100644
--- a/src/mnode/src/mgmtGrant.c
+++ b/src/mnode/src/mgmtGrant.c
@@ -14,58 +14,20 @@
  */
 
 #define _DEFAULT_SOURCE
+#ifndef _GRANT
 #include "os.h"
-#include "mgmtAcct.h"
-
-int32_t (*mgmtCheckUserGrantFp)() = NULL;
-int32_t (*mgmtCheckDbGrantFp)() = NULL;
-void    (*mgmtAddTimeSeriesFp)(uint32_t timeSeriesNum) = NULL;
-void    (*mgmtRestoreTimeSeriesFp)(uint32_t timeSeriesNum) = NULL;
-int32_t (*mgmtCheckTimeSeriesFp)(uint32_t timeseries) = NULL;
-bool    (*mgmtCheckExpiredFp)() = NULL;
-
-int32_t mgmtCheckUserGrant() {
-  if (mgmtCheckUserGrantFp) {
-    return (*mgmtCheckUserGrantFp)();
-  } else {
-    return 0;
-  }
-}
-
-int32_t mgmtCheckDbGrant() {
-  if (mgmtCheckDbGrantFp) {
-    return (*mgmtCheckDbGrantFp)();
-  } else {
-    return 0;
-  }
-}
-
-void mgmtAddTimeSeries(SAcctObj *pAcct, uint32_t timeSeriesNum) {
-  pAcct->acctInfo.numOfTimeSeries += timeSeriesNum;
-  if (mgmtAddTimeSeriesFp) {
-    (*mgmtAddTimeSeriesFp)(timeSeriesNum);
-  }
-}
-
-void mgmtRestoreTimeSeries(SAcctObj *pAcct, uint32_t timeSeriesNum) {
-  pAcct->acctInfo.numOfTimeSeries -= timeSeriesNum;
-  if (mgmtRestoreTimeSeriesFp) {
-    (*mgmtRestoreTimeSeriesFp)(timeSeriesNum);
-  }
-}
-
-int32_t mgmtCheckTimeSeries(uint32_t timeseries) {
-  if (mgmtCheckTimeSeriesFp) {
-    return (*mgmtCheckTimeSeriesFp)(timeseries);
-  } else {
-    return 0;
-  }
-}
-
-bool mgmtCheckExpired() {
-  if (mgmtCheckExpiredFp) {
-    return mgmtCheckExpiredFp();
-  } else {
-    return false;
-  }
-}
+#include "mgmtGrant.h"
+
+bool mgmtCheckExpired() { return false; }
+void mgmtParseParameterKFp() {}
+void mgmtSendMsgToMaster() {}
+void mgmtSetCurStorage(uint64_t storage) {}
+void mgmtAddTimeSeries(SAcctObj *pAcct, uint32_t timeSeriesNum) {}
+void mgmtRestoreTimeSeries(SAcctObj *pAcct, uint32_t timeseries) {}
+int32_t mgmtCheckTimeSeries(uint32_t timeseries) { return TSDB_CODE_SUCCESS; }
+int32_t mgmtCheckUserGrant() { return TSDB_CODE_SUCCESS; }
+int32_t mgmtCheckDbGrant() { return TSDB_CODE_SUCCESS; }
+int32_t mgmtCheckDnodeGrant() { return TSDB_CODE_SUCCESS; }
+int32_t mgmtCheckAccts() { return TSDB_CODE_SUCCESS; }
+
+#endif
\ No newline at end of file