Deleted internal/operation
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user