Пример #1
0
def getGnosqlInfo():
    a = request.get_data()
    jsonData = json.loads(a.decode("utf-8"))
    gnosqlId = jsonData['gnosqlId']
    gnosqlUserObj = GnosqlUserService()
    result = gnosqlUserObj.getGnosqlInfo(gnosqlId)
    return ResponseUtil.getCORSResponse(result)
Пример #2
0
def createGnosql():
    a = request.get_data()
    jsonData = json.loads(a.decode("utf-8"))
    gnosqlName = jsonData["gnosqlName"]
    gnosqlUserObj = GnosqlUserService()
    result = gnosqlUserObj.createGnosql(gnosqlName)
    return ResponseUtil.getCORSResponse(result)
Пример #3
0
def generateToken():
    a = request.get_data()
    jsonData = json.loads(a.decode("utf-8"))
    username = jsonData['username']
    gnosqlId = jsonData["gnosqlId"]
    gnosqlUserObj = GnosqlUserService()
    result = gnosqlUserObj.generateToken(username, gnosqlId)
    return ResponseUtil.getCORSResponse(result)
Пример #4
0
def userSignUp():
    a = request.get_data()
    jsonData = json.loads(a.decode("utf-8"))
    username = jsonData['username']
    password = jsonData["password"]
    gnosqlUserObj = GnosqlUserService()
    result = gnosqlUserObj.userSignUp(username, password)
    return ResponseUtil.getCORSResponse(result)
Пример #5
0
def getGnosqlAllDataAnalysis():
    a = request.get_data()
    jsonData = json.loads(a.decode("utf-8"))
    startDate = jsonData['startDate']
    endDate = jsonData['endDate']
    gnosqlUserObj = GnosqlUserService()
    result = gnosqlUserObj.getGnosqlAllDataAnalysis(startDate, endDate)
    return ResponseUtil.getCORSResponse(result)
Пример #6
0
def deleteGnosqlAppName():
    a = request.get_data()
    jsonData = json.loads(a.decode("utf-8"))
    gnosqlId = jsonData['gnosqlId']
    appName = jsonData["appName"]
    gnosqlUserObj = GnosqlUserService()
    result = gnosqlUserObj.deleteGnosqlAppName(gnosqlId, appName)
    return ResponseUtil.getCORSResponse(result)
Пример #7
0
def addGnosqlAppIp():
    a = request.get_data()
    jsonData = json.loads(a.decode("utf-8"))
    gnosqlId = jsonData['gnosqlId']
    appIp = jsonData["appIp"]
    gnosqlUserObj = GnosqlUserService()
    result = gnosqlUserObj.addGnosqlAppIp(gnosqlId, appIp)
    return ResponseUtil.getCORSResponse(result)
Пример #8
0
def getGnosqlDataType():
    a = request.get_data()
    jsonData = json.loads(a.decode("utf-8"))
    gnosqlId = jsonData['gnosqlId']
    startDate = jsonData['startDate']
    endDate = jsonData['endDate']
    gnosqlUserObj = GnosqlUserService()
    result = gnosqlUserObj.getGnosqlDataType(gnosqlId, startDate, endDate)
    return ResponseUtil.getCORSResponse(result)
Пример #9
0
def getUserTableList():
    a = request.get_data()
    jsonData = json.loads(a.decode("utf-8"))
    gnosqlObj = GnosqlService.GnosqlService()
    result = gnosqlObj.getUserTableList(jsonData)
    return ResponseUtil.getCORSResponse(result)
Пример #10
0
def getGnosqlList():
    a = request.get_data()
    gnosqlUserObj = GnosqlUserService()
    result = gnosqlUserObj.getGnosqlList()
    return ResponseUtil.getCORSResponse(result)