def get_schedule(params): """获取schedule Args: params:dict 参数字典 Returns: path, {}: 路径和参数字典 """ schedules = get_all_schedule_class() return "schedule.html", {'schedules': schedules}
def api_get_all_schedule_class(params): schedule_classes_str = json.dumps(get_all_schedule_class(), ensure_ascii=False, encoding="utf-8") return result(200, "success", schedule_classes_str)