Пример #1
0
class BasicPagerSchema(ModelSchema):
    has_prev = base_fields.Boolean() 
    has_next = base_fields.Boolean() 
    pages = base_fields.Integer() 
    page = base_fields.Integer() 
    lst_size = base_fields.Integer()
    total = base_fields.Integer() 
    items = base_fields.Raw()
    class Meta:
        pass
class AddTeamMemberParameters(PostFormParameters):
    user_id = base_fields.Integer(required=True)
    is_leader = base_fields.Boolean(required=False)
Пример #3
0
class ExtendPagerParameters(PagerParameters):
    articles = base_fields.Integer(required=False)
    books_category_id = base_fields.Integer(required=False)
    nav_category_id = base_fields.Integer(required=False)
    is_book = base_fields.Boolean(required=False)
    is_main = base_fields.Boolean(required=False)
class DepartmentGetAllParams(Parameters):
    isReloadCache = base_fields.Boolean()
Пример #5
0
class ReadStatusParameters(JSONParameters):
    id = base_fields.Integer(required=True)
    status = base_fields.Boolean(required=True)