fix: projects editor to selected project editor, moved attributes editor
This commit is contained in:
@@ -9,6 +9,10 @@ class BaseProjectSchema(BaseSchema):
|
|||||||
name: str
|
name: str
|
||||||
|
|
||||||
|
|
||||||
|
class ProjectGeneralInfoSchema(BaseProjectSchema):
|
||||||
|
id: int
|
||||||
|
|
||||||
|
|
||||||
class ModuleSchema(BaseSchema):
|
class ModuleSchema(BaseSchema):
|
||||||
id: int
|
id: int
|
||||||
key: str
|
key: str
|
||||||
@@ -16,8 +20,7 @@ class ModuleSchema(BaseSchema):
|
|||||||
is_deleted: bool
|
is_deleted: bool
|
||||||
|
|
||||||
|
|
||||||
class ProjectSchema(BaseProjectSchema):
|
class ProjectSchema(ProjectGeneralInfoSchema):
|
||||||
id: int
|
|
||||||
attributes: list[AttributeSchema]
|
attributes: list[AttributeSchema]
|
||||||
modules: list[ModuleSchema]
|
modules: list[ModuleSchema]
|
||||||
|
|
||||||
@@ -35,7 +38,7 @@ class CreateProjectRequest(BaseSchema):
|
|||||||
|
|
||||||
|
|
||||||
class UpdateProjectRequest(BaseSchema):
|
class UpdateProjectRequest(BaseSchema):
|
||||||
project: ProjectSchema
|
project: ProjectGeneralInfoSchema
|
||||||
|
|
||||||
|
|
||||||
class UpdateModulesRequest(BaseSchema):
|
class UpdateModulesRequest(BaseSchema):
|
||||||
|
|||||||
Reference in New Issue
Block a user