This commit is contained in:
che
2026-07-27 12:17:17 +05:00
parent c1b24206b9
commit 13362528cd
8 changed files with 482 additions and 32 deletions
+4 -4
View File
@@ -16,25 +16,25 @@ impl AppModule for ContractappModule {
}
fn init(&self, ctx: &mut ModuleContext) {
ctx.mapped_remote_resource::<models::Contract>(
ctx.cached_mapped_remote_resource::<models::Contract>(
"contract",
"/api/contract/",
serializers::contractapp_serializer(),
filters::contractapp_filterset(),
);
ctx.mapped_remote_resource::<models::ContractCategory>(
ctx.cached_mapped_remote_resource::<models::ContractCategory>(
"contract_category",
"/api/cont/category/",
serializers::contract_category_serializer(),
filters::contract_category_filterset(),
);
ctx.mapped_remote_resource::<models::Counterparty>(
ctx.cached_mapped_remote_resource::<models::Counterparty>(
"counterparty",
"/api/catalog/company/",
serializers::counterparty_serializer(),
filters::counterparty_filterset(),
);
ctx.mapped_remote_resource::<models::ContractApplicationFile>(
ctx.cached_mapped_remote_resource::<models::ContractApplicationFile>(
"contract_application_file",
"/api/cont/appfile/",
serializers::contract_application_file_serializer(),
+1 -1
View File
@@ -16,7 +16,7 @@ impl AppModule for FrcModule {
}
fn init(&self, ctx: &mut ModuleContext) {
ctx.mapped_remote_resource::<models::Frc>(
ctx.cached_mapped_remote_resource::<models::Frc>(
"frc",
"/api/frc/frc/",
serializers::frc_serializer(),
@@ -13,6 +13,7 @@ static EMPLOYEE_FILTERS: &[Filter] = &[
static TASK_FILTERS: &[Filter] = &[
Filter::exact("id"),
Filter::contains("text"),
Filter::remote_only("contract"),
Filter::remote_only("doer"),
Filter::remote_only("author"),
Filter::exact("archive"),
+1 -1
View File
@@ -16,7 +16,7 @@ impl AppModule for TaskModule {
}
fn init(&self, ctx: &mut ModuleContext) {
ctx.mapped_remote_resource::<models::Employee>(
ctx.cached_mapped_remote_resource::<models::Employee>(
"employee",
"/api/persone/employee/",
serializers::employee_serializer(),
+1 -1
View File
@@ -16,7 +16,7 @@ impl AppModule for ProjectModule {
}
fn init(&self, ctx: &mut ModuleContext) {
ctx.mapped_remote_resource::<models::Project>(
ctx.cached_mapped_remote_resource::<models::Project>(
"project",
"/api/project/",
serializers::project_serializer(),