예제 #1
0
    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
예제 #2
0
파일: order.py 프로젝트: soominok/EMP
    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