1
from starlette.requests import Request
3
from core.frontend.constructor import ClassView, BaseSchema
6
class OrderView(ClassView):
7
"""Переопределяем модель"""
8
def __init__(self, request: Request, schema: BaseSchema = None):
9
permits = ['order_list']
10
super().__init__(request=request, model='order', permits=permits)
13
class MoveView(ClassView):
14
"""Переопределяем модель"""
15
def __init__(self, request: Request, schema: BaseSchema = None):
16
permits = ['move_list']
17
super().__init__(request=request, model='move', permits=permits)
19
class OrderTypeView(ClassView):
20
"""Переопределяем модель"""
22
def __init__(self, request: Request, schema: BaseSchema = None):
23
permits = ['order_type_list']
24
super().__init__(request=request, model='order_type', permits=permits)
26
class StoreView(ClassView):
27
"""Переопределяем модель"""
29
def __init__(self, request: Request, schema: BaseSchema = None):
30
permits = ['store_list']
31
super().__init__(request=request, model='store', permits=permits)