Deleted internal/operation
Build and Test / build-and-test-backend (push) Successful in 26s
Build and Test / build-and-test-frontend (push) Failing after 33s

This commit is contained in:
wt
2025-10-08 13:37:59 +07:00
parent 5706a85631
commit 656e59b3d8
@@ -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
}