def by_grade(): data = to_Data() grade = data['grade'] page = data['page'] if grade and page: info = get_Info(grade=grade) list = to_List(info, page) data = to_Json(list) return data return ("0")
def by_name(): data = to_Data() sname = data['name'] page = data['page'] if sname and page: info = get_Info(sname=sname) list = to_List(info, page) data = to_Json(list) return data return ("0")
def by_group(): data = to_Data() group = data['group'] page = data['page'] if group and page: info = get_Info(group=group) list = to_List(info, page) data = to_Json(list) return data return ("0")
def by_input(): data = to_Data() # 将json转为字典 input = data['input'] page = data['page'] if input and page: info = get_Info(input=input) #从数据库获取成员信息 list = to_List(info, page) #将数据转为列表 data = to_Json(list) #将列表数据转为json return data return ("0")
def by_name_group(): data = to_Data() sname = data['name'] group = data['group'] page = data['page'] if sname and group and page: info = get_Info(sname=sname, group=group) list = to_List(info, page) data = to_Json(list) return data return ("0")