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