def viewMyGoods(): goodsList = sql.readMyGoods(sql.readLoginUser()) if not goodsList: print u"无已支付商品" return False return utils.printGoods(goodsList)
def viewCard(): goodsList = sql.readCars() if not goodsList: print u"购物车无商品" return False return utils.printGoods(goodsList)
def viewMyGoods(): goodsList = sql.readMyGoods(sql.readLoginUser()) if not goodsList : print u"无已支付商品" return False return utils.printGoods(goodsList)
def listGoods(): goodsInfos = sql.readGoods() utils.printGoods(goodsInfos) return True