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