コード例 #1
0
def history():
    # 获得当前用户的id
    uid = request.args.get('id')
    storeservice = storeService()
    ds = storeservice.history(uid)
    dict = {}
    dict['result'] = ds
    return dict
コード例 #2
0
def shoppingcar():
    # 获得当前用户的id
    uid = request.args.get('id')
    storeservice = storeService()
    ds = storeservice.shoppingcar(uid)
    dict = {}
    dict['result'] = ds
    return dict
コード例 #3
0
def delcollect():
    # 获得需要删除的json数组
    data = json.loads(request.get_data(as_text=True))
    storeservice = storeService()
    ds = storeservice.delcollect(data)
    dict = {}
    dict['result'] = ds
    return dict
コード例 #4
0
def collectlist():
    # 获得当前用户的id
    uid = request.args.get('id')
    storeservice = storeService()
    ds = storeservice.collectlist(uid)
    dict = {}
    dict['result'] = ds
    return dict
コード例 #5
0
def findbyid():
    # 获取传入的药品id 表单数据获取
    id = request.args.get('id')
    storeservice = storeService()
    ds = storeservice.findbyid(id)
    dict = {}
    dict['result'] = ds
    return dict
コード例 #6
0
def search():
    # 获得搜索框的内容
    str = request.args.get('str')
    storeservice = storeService()
    ds = storeservice.search(str)
    dict = {}
    dict['result'] = ds
    return dict
コード例 #7
0
def medcinelist():
    storeservice = storeService()
    ds = storeservice.medcinelist()
    dict = {}
    dict['result'] = ds
    return dict