def post(): print(f'[User Signup Resource Enter]') body = request.get_json() user = OrderDto(**body) OrderDao.save(user) user_id = user.user_id return {'user_id': str(user_id)}, 200
def post(): print(f' =========== Order POST()!!! =========== \n') body = request.get_json() order = OrderDto(**body) OrderDao.save(order) # user_id = order.user_id order_no = order.order_no # return {'user_id': str(user_id)}, 200 return {'order_no': str(order_no)}, 200