From 656e59b3d86670da69b7f9e64056aa89f7f8ed5a Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Wed, 8 Oct 2025 13:37:59 +0700 Subject: [PATCH] Deleted internal/operation --- backend/internal/operation/GetAllOperation.go | 83 ------------------- 1 file changed, 83 deletions(-) delete mode 100644 backend/internal/operation/GetAllOperation.go diff --git a/backend/internal/operation/GetAllOperation.go b/backend/internal/operation/GetAllOperation.go deleted file mode 100644 index ffec57b..0000000 --- a/backend/internal/operation/GetAllOperation.go +++ /dev/null @@ -1,83 +0,0 @@ -package operation - -import ( - "backend/model" - "time" -) - -func GetAllOperation() ([]model.Operation, error) { - return []model.Operation{ - { - Title: "Operation 1", - Amount: 100, - Category: model.Category{ - Title: "category 1", - Type: "income", - }, - Subcategory: model.Subcategory{ - Title: "subcategory", - }, - Date: "2022-01-01T00:00:00Z", - Type: "income", - Icon: "😀", - }, - { - Title: "Operation 2", - Amount: 200, - Category: model.Category{ - Title: "Category 2", - Type: "expense", - }, - Date: "2022-01-02T00:00:00Z", - Type: "expense", - Icon: "😂", - }, - { - Title: "Operation 2", - Amount: 200, - Category: model.Category{ - Title: "Category 2", - Type: "expense", - }, - Date: time.Now().Format(time.RFC3339), - Type: "expense", - Icon: "😂", - }, - { - Title: "Operation 1", - Amount: 100, - Category: model.Category{ - Title: "Category 2", - Type: "expense", - }, - Subcategory: model.Subcategory{ - Title: "subcategory", - }, - Date: "2022-01-02T00:00:00Z", - Type: "income", - Icon: "😀", - }, - { - Title: "Operation 2", - Amount: 200, - Category: model.Category{ - Title: "Category 2", - Type: "expense", - }, - Date: "2022-06-02T00:00:00Z", - Type: "expense", - Icon: "😂", - }, - { - Title: "Operation 2", - Amount: 200, - Category: model.Category{ - Title: "Category 2", - Type: "expense", - }, - Date: "2022-06-22T00:00:00Z", - Type: "expense", - Icon: "😂", - }, - }, nil -}