Created
March 24, 2020 19:49
-
-
Save Ananto30/15f3a1ca405271333d2f8da450b98d15 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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