import app.dao.index_dao as userdao
import json


def rande(id):
    if id:
        pic1 = userdao.rande(id)
        return pic1


# index开始
def getpic1(id):
    if id:
        pic1 = userdao.getpic1(id)
        return pic1

def getpic2(id):
    if id:
        pic2 = userdao.getpic2(id)
        return pic2

def getpic3(id):
    if id:
        pic3 = userdao.getpic3(id)
        return pic3

def getpic4(id):
    if id:
        pic4 = userdao.getpic4(id)
        return pic4

def getpic5(id):
    if id:
        pic5 = userdao.getpic5(id)
        return pic5

def getpic6(id):
    if id:
        pic6 = userdao.getpic6(id)
        return pic6

def getpic7(id):
    if id:
        pic7 = userdao.getpic7(id)
        return pic7

def getpic8(id):
    if id:
        pic8 = userdao.getpic8(id)
        return pic8


def getpic9(id):
    if id:
        pic9 = userdao.getpic9(id)
        return pic9

def getpic10(id):
    if id:
        pic10 = userdao.getpic10(id)
        return pic10




def getwords1(id):
    if id:
        words1 = userdao.getwords1(id)
        return words1

def getwords2(id):
    if id:
        words2 = userdao.getwords2(id)
        return words2

def getwords3(id):
    if id:
        words3 = userdao.getwords3(id)
        return words3

def get1(id):
    if id:
        tj1 = userdao.get1(id)
        return tj1

def get2(id):
    if id:
        tj2 = userdao.get2(id)
        return tj2

def get3(id):
    if id:
        tj3 = userdao.get3(id)
        return tj3