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 -}