def userBind(uuid, userId): url = PrintConfig.baseUrl + '/home/userbind' + createParams() data = {'Uuid': uuid, 'UserId': userId} return sendPost(url, data)
def getPrintTaskState(taskId): url = PrintConfig.baseUrl + '/home/getprinttaskstate' + createParams() data = {'TaskId': taskId} return sendPost(url, data)
def printContent(uuid, content, openUserId): url = PrintConfig.baseUrl + '/home/printcontent2' + createParams() data = {'Uuid': uuid, 'PrintContent': content, 'OpenUserId': openUserId} return sendPost(url, data)
def printHtmlContent(uuid, printUrl, openUserId): url = PrintConfig.baseUrl + '/home/printhtmlcontent' + createParams() data = {'Uuid': uuid, 'PrintUrl': printUrl, 'OpenUserId': openUserId} return sendPost(url, data)
def getServiceState(uuid): url = PrintConfig.baseUrl + '/home/getdevicestate' + createParams() data = {'Uuid': uuid} return sendPost(url, data)