Ejemplo n.º 1
0
 def getTableGroupRelationList(self):
     relationId = self.get_argument("id")
     return DatabaseService().getTableGroupRelationList(relationId)
Ejemplo n.º 2
0
 def updateTableGroupRelation(self):
     logger.info(self.request.body)
     return DatabaseService().updateTableGroupRelation(
         json.loads(self.request.body))
Ejemplo n.º 3
0
 def editTableGroup(self):
     logger.info(self.request.body)
     return DatabaseService().editTableGroup(json.loads(self.request.body))
Ejemplo n.º 4
0
 def deleteTableGroupRelation(self):
     relationId = self.get_argument("id")
     return DatabaseService().deleteTableGroupRelation(relationId)
Ejemplo n.º 5
0
 def getTableGroupList(self):
     DBId = self.get_argument("id")
     return DatabaseService().getTableGroupList(DBId)
Ejemplo n.º 6
0
 def deleteTableGroup(self):
     return DatabaseService().deleteTableGroup(json.loads(
         self.request.body))
Ejemplo n.º 7
0
 def getTableGroupInfoById(self):
     tableGroupId = self.get_argument("id")
     return DatabaseService().getTableGroupInfoById(tableGroupId)
Ejemplo n.º 8
0
 def addTableGroup(self):
     logger.info(self.request.body)
     data = json.loads(self.request.body)
     # 数据库该字段可为空,入参没有时,需要补充key,否则访问sql
     return DatabaseService().addTableGroup(data)
Ejemplo n.º 9
0
 def deleteDatabase(self):
     return DatabaseService().deleteDatabase(json.loads(self.request.body))
Ejemplo n.º 10
0
 def getDatabaseList(self):
     # todo 后面传了bu的Id
     # businessUnit = self.get_argument("businessUnit")
     # return DatabaseService().getDatabaseList(businessUnit)
     return DatabaseService().getDatabaseList()
Ejemplo n.º 11
0
 def getDatabaseInfoById(self):
     databaseId = self.get_argument("id")
     return DatabaseService().getDatabaseInfoById(databaseId)