Skip to content

Instantly share code, notes, and snippets.

@Ananto30
Created March 24, 2020 19:49
Show Gist options
  • Select an option

  • Save Ananto30/15f3a1ca405271333d2f8da450b98d15 to your computer and use it in GitHub Desktop.

Select an option

Save Ananto30/15f3a1ca405271333d2f8da450b98d15 to your computer and use it in GitHub Desktop.
from ..serialization_types import Btypes
class CreateOrderReq(Btypes):
def __init__(self, user_id: str, items: list):
self.user_id = user_id
self.items = items
class GetOrderReq(Btypes):
def __init__(self, order_id: str):
self.order_id = order_id
class OrderResp(Btypes):
def __init__(self, order_id: str, status: int, items: list):
self.order_id = order_id
self.status = status
self.items = items
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment