def admin_nabigation_lists(): rootPath = getRootPath() verifyEmailJsonArr = ["admin_item_success.json"] jsonFilrIndex = random.randint(0, len(verifyEmailJsonArr) - 1) # print(jsonFilrIndex) filePath = os.path.join(rootPath, "data_json", "function_item_json", verifyEmailJsonArr[jsonFilrIndex]) print(filePath) return operateFile(filePath)
def delete_role(): rootPath = getRootPath() verifyEmailJsonArr = ["delete_role.json"] jsonFilrIndex = random.randint(0, len(verifyEmailJsonArr) - 1) # print(jsonFilrIndex) filePath = os.path.join(rootPath, "data_json", "author_command", verifyEmailJsonArr[jsonFilrIndex]) print(filePath) return operateFile(filePath)
def user_token(): rootPath = getRootPath() verifyEmailJsonArr = ['author_token_success.json'] jsonFilrIndex = random.randint(0, len(verifyEmailJsonArr) - 1) # print(jsonFilrIndex) filePath = os.path.join(rootPath, "data_json", "author_token", verifyEmailJsonArr[jsonFilrIndex]) print(filePath) return operateFile(filePath)
def query_roles_by_user_id(): rootPath = getRootPath() verifyEmailJsonArr = ["role_list.json"] jsonFilrIndex = random.randint(0, len(verifyEmailJsonArr) - 1) # print(jsonFilrIndex) filePath = os.path.join(rootPath, "data_json", "author_command", verifyEmailJsonArr[jsonFilrIndex]) print(filePath) return operateFile(filePath)
def verifyEmailResult(): rootPath = getRootPath() verifyEmailJsonArr = ['verifyEmailFail.json', 'verifyEmailSuccess.json'] jsonFilrIndex = random.randint(0, len(verifyEmailJsonArr) - 1) # filePath = os.path.join(rootPath, "data_json", verifyEmailJsonArr[jsonFilrIndex]) print(filePath) return operateFile(filePath)
def user_profile_data_avatar(): rootPath = getRootPath() verifyEmailJsonArr = ['data.json'] jsonFilrIndex = random.randint(0, len(verifyEmailJsonArr) - 1) # print(jsonFilrIndex) filePath = os.path.join(rootPath, "data_json", "profile", verifyEmailJsonArr[jsonFilrIndex]) print(filePath) return operateFile(filePath)
def influuRegister(): rootPath = getRootPath() verifyEmailJsonArr = [ 'emailAlreadyHas.json', 'registerFail.json', "registeSuccess.json", "userNameAlreadyHas.json" ] jsonFilrIndex = random.randint(0, len(verifyEmailJsonArr) - 1) # print(jsonFilrIndex) filePath = os.path.join(rootPath, "data_json", "registerJsons", verifyEmailJsonArr[jsonFilrIndex]) print(filePath) return operateFile(filePath)