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